public class Permission extends Resource
Constructor and Description |
---|
Permission()
Initialize a permission object.
|
Permission(String jsonString)
Initialize a permission object from json string.
|
Modifier and Type | Method and Description |
---|---|
PermissionMode |
getPermissionMode()
Gets the permission mode.
|
String |
getResourceLink()
Gets the self-link of resource to which the permission applies.
|
PartitionKey |
getResourcePartitionKey()
Gets the resource partition key associated with this permission object.
|
String |
getToken()
Gets the access token granting the defined permission.
|
void |
setPermissionMode(PermissionMode permissionMode)
Sets the permission mode.
|
void |
setResourceLink(String resourceLink)
Sets the self-link of resource to which the permission applies.
|
void |
setResourcePartitionKey(PartitionKey partitionkey)
Sets the resource partition key associated with this permission object.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp, setId, setResourceId
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getList, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public Permission()
public Permission(String jsonString)
jsonString
- the json string that represents the permission.public String getResourceLink()
public void setResourceLink(String resourceLink)
resourceLink
- the resource link.public PermissionMode getPermissionMode()
public void setPermissionMode(PermissionMode permissionMode)
permissionMode
- the permission mode.public String getToken()
public PartitionKey getResourcePartitionKey()
public void setResourcePartitionKey(PartitionKey partitionkey)
partitionkey
- the partition key.Copyright © 2019. All rights reserved.