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) |
static boolean |
removePermission(ACP acp,
String aclName,
String principalName) |
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)permissionName
- blockInheritance
- Should we block inheritanceCopyright © 2015 Nuxeo SA. All rights reserved.