@Deprecated public final class DocumentPermissionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
addPermission(ACP acp,
String aclName,
String userName,
String permission,
boolean blockInheritance,
String currentPrincipalName)
Deprecated.
|
static boolean |
addPermission(ACP acp,
String aclName,
String userName,
String permission,
boolean blockInheritance,
String currentPrincipalName,
Calendar begin,
Calendar end,
Map<String,Serializable> contextData)
Deprecated.
|
static boolean |
removePermission(ACP acp,
String aclName,
String principalName)
Deprecated.
|
static boolean |
removePermissionById(ACP acp,
String aclName,
String id)
Deprecated.
Removes an ACE given its id.
|
public static boolean addPermission(ACP acp, String aclName, String userName, String permission, boolean blockInheritance, String currentPrincipalName)
acp
- The ACP to modifyaclName
- the name of the ACL to targetuserName
- the name of the principal (user or group)permission
- the permission of the ACEblockInheritance
- Should we block inheritancecurrentPrincipalName
- the creatorpublic static boolean addPermission(ACP acp, String aclName, String userName, String permission, boolean blockInheritance, String currentPrincipalName, Calendar begin, Calendar end, Map<String,Serializable> contextData)
acp
- The ACP to modifyaclName
- the name of the ACL to targetuserName
- the name of the principal (user or group)permission
- the permission of the ACEblockInheritance
- should we block inheritancecurrentPrincipalName
- the creatorbegin
- the begin date of the ACEend
- the end date of the ACEpublic static boolean removePermission(ACP acp, String aclName, String principalName)
acp
- The ACP to modifyaclName
- the name of the ACL to targetprincipalName
- the name of the principal (user or group)public static boolean removePermissionById(ACP acp, String aclName, String id)
acp
- The ACP to modifyaclName
- the name of the ACL to targetid
- the id of the ACECopyright © 2018 Nuxeo. All rights reserved.