public interface IPermission
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete(java.lang.String ticket,
java.lang.String objectId)
If a user can DELETE in the CMIS sense.
|
boolean |
canGroupRead(java.lang.String ticket,
java.lang.String objectId,
java.lang.String groupName,
boolean flatPermissionChecksOnly)
If a group has READ access on a particular object
|
boolean |
canRead(java.lang.String ticket,
java.lang.String objectId)
If a user can Read in the CMIS sense.
|
boolean |
canReadContent(java.lang.String ticket,
java.lang.String objectId)
If a user can read the content of an object
|
boolean |
canReadProperties(java.lang.String ticket,
java.lang.String objectId)
If a user can read the properties of an object
|
boolean |
canRelate(java.lang.String ticket,
java.lang.String objectId)
If a user can relate an object, as a child, to this document.
|
boolean |
canVersion(java.lang.String ticket,
java.lang.String objectId)
If a user can VERSION a document (not to be confused with WRITE).
|
boolean |
canWrite(java.lang.String ticket,
java.lang.String objectId)
If a user can Write in the CMIS sense.
|
boolean |
canWriteContent(java.lang.String ticket,
java.lang.String objectId)
If a user can Write content to an object.
|
boolean |
canWriteProperties(java.lang.String ticket,
java.lang.String objectId)
If a user can Write properties of an object.
|
void |
clearPermissions(java.lang.String ticket,
java.lang.String objectId)
Clears all permissions on the given object.
|
java.util.List<OCUser> |
getUsersWithPermission(java.lang.String ticket,
java.lang.String objectId,
java.lang.String permission)
Returns a list of OCUsers that have write permission on a specific document, based on groups that have permission on that node
|
boolean |
hasAllPermissions(java.lang.String ticket,
java.lang.String objectId)
If a user has all permissions in the CMIS sense.
|
void |
inheritPermissions(java.lang.String ticket,
java.lang.String objectId)
Inherit permissions from the parent
|
void |
setPermissions(java.lang.String ticket,
java.lang.String objectId,
java.lang.String authority,
java.lang.String permission)
Additive - Adds new permissions to the object..
|
boolean canRead(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canReadProperties(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canReadContent(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canGroupRead(java.lang.String ticket, java.lang.String objectId, java.lang.String groupName, boolean flatPermissionChecksOnly)
ticket
- objectId
- - string used to identify the object in questiongroupName
- - string used to identify the group in questionflatPermissionChecksOnly
- - boolean used as a flag for doing flat permission checks onlyboolean canVersion(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canRelate(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canWrite(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canDelete(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canWriteProperties(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean canWriteContent(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionboolean hasAllPermissions(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionjava.util.List<OCUser> getUsersWithPermission(java.lang.String ticket, java.lang.String objectId, java.lang.String permission)
ticket
- objectId
- - string used to identify the object in questionpermission
- - permission level to grant users ex. OCConstants.PERMISSION_READ_PROPERTIESvoid clearPermissions(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in questionvoid setPermissions(java.lang.String ticket, java.lang.String objectId, java.lang.String authority, java.lang.String permission)
ticket
- objectId
- - string used to identify the object in questionauthority
- - string used to identify authority group or userpermission
- - string used to identify security level allowedvoid inheritPermissions(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- - string used to identify the object in question