Interface EditerLockClient

interface EditerLockClient {
    editerForceUnlock(editerType, id): EditerLockInfo;
    editerLock(editerType, id): EditerLockInfo;
    editerLockState(editerType, id): EditerLockInfo;
    editerLocksState(editerType, ids): EditerLockInfo[];
    editerUnlock(editerType, id): void;
    refreshLock(editerType, id): boolean;
}

Methods

  • 元数据编辑锁的强制解锁操作

    Parameters

    • editerType: string
    • id: string

    Returns EditerLockInfo

    Example

    import * as editerClient from 'editer';
    let client = editerClient.newEditerLockClient();
    client.editerForceUnlock("bp","001L000000ruvmA2KCno")

    @param editerType editer lock type like bp
    @param id the editer lock source id
  • 元数据编辑锁的锁定操作

    Parameters

    • editerType: string
    • id: string

    Returns EditerLockInfo

    Example

    import * as editerClient from 'editer';
    let client = editerClient.newEditerLockClient();
    client.editerLock("bp","001L000000ruvmA2KCno")

    @param editerType editer lock type like bp
    @param id the editer lock source id
  • 查询元数据编辑锁状态操作

    Parameters

    • editerType: string
    • id: string

    Returns EditerLockInfo

    Example

    import * as editerClient from 'editer';
    let client = editerClient.newEditerLockClient();
    client.editerLockState("bp","001L000000ruvmA2KCno")

    @param editerType editer lock type like bp
    @param id the editer lock source id
  • 查询多个元数据编辑锁的状态操作

    Parameters

    • editerType: string
    • ids: string[]

    Returns EditerLockInfo[]

    Example

    import * as editerClient from 'editer';
    let client = editerClient.newEditerLockClient();
    client.editerLocksState("bp",["001L000000ruvmA2KCno"])

    @param editerType editer lock type like bp
    @param id the editer lock source id
  • 元数据编辑锁的解锁操作

    Parameters

    • editerType: string
    • id: string

    Returns void

    Example

    import * as editerClient from 'editer';
    let client = editerClient.newEditerLockClient();
    client.editerUnlock("bp","001L000000ruvmA2KCno")

    @param editerType editer lock type like bp
    @param id the editer lock source id
  • 元数据编辑锁的刷新操作

    Parameters

    • editerType: string
    • id: string

    Returns boolean

    Example

    import * as editerClient from 'editer';
    let client = editerClient.newEditerLockClient();
    client.refreshLock("bp","001L000000ruvmA2KCno")

    @param editerType editer lock type like bp
    @param id the editer lock source id