Class DocumentPermissionHelper
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.document.DocumentPermissionHelper
-
@Deprecated public final class DocumentPermissionHelper extends Object
Deprecated.since 7.4. Methods to managing permissions are now on ACP / ACL.Helper for AddPermission and RemovePermission operations.- Since:
- 5.8
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
addPermission
public static boolean addPermission(ACP acp, String aclName, String userName, String permission, boolean blockInheritance, String currentPrincipalName)
Deprecated.- Parameters:
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 creator- Returns:
- true if something has changed on the document security
-
addPermission
public static boolean addPermission(ACP acp, String aclName, String userName, String permission, boolean blockInheritance, String currentPrincipalName, Calendar begin, Calendar end, Map<String,Serializable> contextData)
Deprecated.- Parameters:
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 ACE- Returns:
- true if something has changed on the document security
- Since:
- 7.4
-
removePermission
public static boolean removePermission(ACP acp, String aclName, String principalName)
Deprecated.- Parameters:
acp
- The ACP to modifyaclName
- the name of the ACL to targetprincipalName
- the name of the principal (user or group)- Returns:
- true if something has changed on the document security
-
removePermissionById
public static boolean removePermissionById(ACP acp, String aclName, String id)
Deprecated.Removes an ACE given its id.- Parameters:
acp
- The ACP to modifyaclName
- the name of the ACL to targetid
- the id of the ACE- Returns:
- true if something has changed on the document security
- Since:
- 7.3
-
-