共用方式為


IVssIdentityService interface

方法

addMruIdentitiesAsync(IIdentity[])

將身分清單新增至 MRU

getConnections(IIdentity, boolean)

取得指定身分的連線清單

getIdentityMruAsync()

取得最近使用的 (MRU) 身分識別清單

removeMruIdentitiesAsync(IIdentity[])

從 MRU 中移除身分清單

searchIdentitiesAsync(string, string[], string[], string, any, (returnedEntities: IIdentity[]) => IIdentity[])

給定搜尋要求模型,傳回實體清單。 如果已新增 filterIdentity 回呼,請在傳回之前額外篩選值

方法詳細資料

addMruIdentitiesAsync(IIdentity[])

將身分清單新增至 MRU

function addMruIdentitiesAsync(identities: IIdentity[]): Promise<boolean>

參數

identities

IIdentity[]

要新增至 MRU 的 IdentityRef 清單

傳回

Promise<boolean>

如果已新增項目,則為 true,否則為 false

getConnections(IIdentity, boolean)

取得指定身分的連線清單

function getConnections(identity: IIdentity, getDirectReports?: boolean): Promise<IdentitiesGetConnectionsResponseModel>

參數

identity
IIdentity

要查詢連線的實體

getDirectReports

boolean

傳回

指定身分的連線

getIdentityMruAsync()

取得最近使用的 (MRU) 身分識別清單

function getIdentityMruAsync(): Promise<IIdentity[]>

傳回

Promise<IIdentity[]>

最近使用的 (MRU) 身分清單

removeMruIdentitiesAsync(IIdentity[])

從 MRU 中移除身分清單

function removeMruIdentitiesAsync(identity: IIdentity[]): Promise<boolean>

參數

identity

IIdentity[]

傳回

Promise<boolean>

如果項目已移除,則為 true,否則為 false

searchIdentitiesAsync(string, string[], string[], string, any, (returnedEntities: IIdentity[]) => IIdentity[])

給定搜尋要求模型,傳回實體清單。 如果已新增 filterIdentity 回呼,請在傳回之前額外篩選值

function searchIdentitiesAsync(query: string, identityTypes?: string[], operationScopes?: string[], queryTypeHint?: string, options?: any, filterIdentity?: (returnedEntities: IIdentity[]) => IIdentity[]): Promise<IIdentity[]>

參數

query

string

要搜尋身分型別的查詢。

identityTypes

string[]

要搜尋的身分類型(預設為「使用者」和「群組」)

operationScopes

string[]

您要搜尋的範圍(預設為「ims」、「source」)

queryTypeHint

string

查詢嘗試搜尋的屬性提示

options

any

要傳遞到搜尋的其他選項

filterIdentity

(returnedEntities: IIdentity[]) => IIdentity[]

傳入的篩選器,以變更找到的身分識別結果

傳回

Promise<IIdentity[]>

從搜尋篩選的身分清單。