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.
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<String>> |
currentDocDeny |
protected Map<String,List<String>> |
currentDocGrant |
protected List<String> |
currentDocumentUsers |
protected String |
documentType |
protected static Labeler |
labeler |
protected boolean |
needSave |
protected Map<String,List<String>> |
parentDocsDeny |
protected Map<String,List<String>> |
parentDocsGrant |
protected List<String> |
parentDocumentsUsers |
Constructor and Description |
---|
SecurityData() |
protected Map<String,List<String>> currentDocGrant
protected Map<String,List<String>> currentDocDeny
protected Map<String,List<String>> parentDocsGrant
protected Map<String,List<String>> parentDocsDeny
protected final List<String> currentDocumentUsers
protected final List<String> parentDocumentsUsers
protected String documentType
protected boolean needSave
public SecurityData()
public void setNeedSave(boolean needSave)
public boolean getNeedSave()
public Map<String,List<String>> getCurrentDocDeny()
public void setCurrentDocDeny(Map<String,List<String>> deny)
public Map<String,List<String>> getCurrentDocGrant()
public void setCurrentDocGrant(Map<String,List<String>> grant)
public Map<String,List<String>> getParentDocsDenyLabels()
public Map<String,List<String>> getCurrentDocDenyLabels()
public Map<String,List<String>> getParentDocsDeny()
public void setParentDocsDeny(Map<String,List<String>> parentDocsDeny)
public Map<String,List<String>> getParentDocsGrant()
public Map<String,List<String>> getParentDocsGrantLabels()
public Map<String,List<String>> getCurrentDocGrantLabels()
public void setParentDocsGrant(Map<String,List<String>> parentDocsGrant)
public List<String> getCurrentDocumentUsers()
public List<String> getParentDocumentsUsers()
protected Map<String,List<String>> buildLabelMap(Map<String,List<String>> permissions)
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 © 2016 Nuxeo SA. All rights reserved.