public class SecurityData extends Object implements Serializable
current doc grants:
user 1 - perm1, perm2
user 2 - perm1, perm2
user 3 - perm2
current doc denies:
...
parent doc grants:
...
parent doc denies:
...
Also has methods that allow manipulation of the contained data, such as add/remove security privileges. The end result after add/remove has been called will be converted to a backend security DTO and then submitted on backend.
Constructor and Description |
---|
SecurityData() |
public void setNeedSave(boolean needSave)
public boolean getNeedSave()
public void rebuildUserLists()
public void addModifiablePrivilege(String principalName, String permissionName, boolean grant)
public boolean removeModifiablePrivilege(String principalName, String permissionName, boolean grant)
public void removeModifiablePrivilege(String principalName)
public void addUnModifiablePrivilege(String principalName, String permissionName, boolean grant)
public void clear()
public String getDocumentType()
public void setDocumentType(String documentType)
Copyright © 2015 Nuxeo SA. All rights reserved.