Permission 类

定义

Represents a per-User Permission to access a specific resource e.g. Document or Collection in the Azure Cosmos DB database service.

public class Permission extends Resource
继承
java.lang.Object
Serializable
Permission

继承成员

构造函数

Permission()

Initialize a permission object.

Permission(JSONObject jsonObject)

Initialize a permission object from json object.

Permission(String jsonString)

Initialize a permission object from json string.

方法

getPermissionMode()

Gets the permission mode.

getResourceLink()

Gets the self-link of resource to which the permission applies.

getResourcePartitionKey()

Gets the resource partition key associated with this permission object.

getToken()

Gets the access token granting the defined permission.

setPermissionMode(PermissionMode permissionMode)

Sets the permission mode.

setResourceLink(String resourceLink)

Sets the self-link of resource to which the permission applies.

setResourcePartitionKey(PartitionKey partitionkey)

Sets the resource partition key associated with this permission object.

适用于