Class AddPermission
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.document.AddPermission
-
public class AddPermission extends Object
Operation that adds a permission to a given ACL for a given user.- Since:
- 5.7.3
-
-
Field Summary
Fields Modifier and Type Field Description protected StringaclNamestatic StringALLOW_VIRTUAL_USERConfiguration property name, which defines whether virtual user (non-existent user) is allowed in Nuxeo automation.protected Calendarbeginprotected booleanblockInheritanceprotected Stringcommentstatic StringCOMMENT_KEYprotected Stringemailprotected Calendarendstatic StringIDprotected booleannotifystatic StringNOTIFY_KEYprotected Stringpermissionprotected CoreSessionsessionprotected StringuserDeprecated.since 10.3, useusersinstead.protected StringListusers
-
Constructor Summary
Constructors Constructor Description AddPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPermission(DocumentModel doc)protected voidensureUserListIsUsed()Method to help deprecatinguserparameter.DocumentModelrun(DocumentModel doc)DocumentModelrun(DocumentRef docRef)protected voidvalidateParameters()
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
NOTIFY_KEY
public static final String NOTIFY_KEY
- See Also:
- Constant Field Values
-
COMMENT_KEY
public static final String COMMENT_KEY
- See Also:
- Constant Field Values
-
ALLOW_VIRTUAL_USER
public static final String ALLOW_VIRTUAL_USER
Configuration property name, which defines whether virtual user (non-existent user) is allowed in Nuxeo automation. If allowed, Nuxeo server will not check the user existence during automation execution. Set this property to true if you use Nuxeo computed user or computed group.- Since:
- 9.1
- See Also:
- Constant Field Values
-
session
protected CoreSession session
-
users
protected StringList users
- Since:
- 10.3
-
user
@Deprecated protected String user
Deprecated.since 10.3, useusersinstead.
-
email
protected String email
- Since:
- 8.1
-
permission
protected String permission
-
aclName
protected String aclName
-
begin
protected Calendar begin
-
end
protected Calendar end
-
blockInheritance
protected boolean blockInheritance
-
notify
protected boolean notify
-
comment
protected String comment
-
-
Method Detail
-
run
public DocumentModel run(DocumentModel doc)
-
run
public DocumentModel run(DocumentRef docRef)
-
addPermission
protected void addPermission(DocumentModel doc)
-
validateParameters
protected void validateParameters()
-
ensureUserListIsUsed
protected void ensureUserListIsUsed()
Method to help deprecatinguserparameter.
-
-