RoleDefinitions.getByScopeAndRoleNameAsync 方法

定义

重载

getByScopeAndRoleNameAsync(String scope, String roleName)

Gets the information about a role definition based on scope and name.

getByScopeAndRoleNameAsync(String scope, String roleName, ServiceCallback<RoleDefinition> callback)

Gets the information about a role definition based on scope and name.

getByScopeAndRoleNameAsync(String scope, String roleName)

Gets the information about a role definition based on scope and name.

public Observable<RoleDefinition> getByScopeAndRoleNameAsync(String scope, String roleName)

参数

scope
String

the scope of the role definition

roleName
String

the name of the role

返回

Observable<RoleDefinition>

an immutable representation of the role definition

getByScopeAndRoleNameAsync(String scope, String roleName, ServiceCallback<RoleDefinition> callback)

Gets the information about a role definition based on scope and name.

public ServiceFuture<RoleDefinition> getByScopeAndRoleNameAsync(String scope, String roleName, ServiceCallback<RoleDefinition> callback)

参数

scope
String

the scope of the role definition

roleName
String

the name of the role

callback
ServiceCallback<RoleDefinition>

the callback when the operation finishes

返回

ServiceFuture<RoleDefinition>

an immutable representation of the role definition

适用于