public class AclSummaryExtractor extends Object
Modifier and Type | Field and Description |
---|---|
protected IContentFilter |
filter |
Constructor and Description |
---|
AclSummaryExtractor(IContentFilter filter) |
Modifier and Type | Method and Description |
---|---|
protected void |
fillAceByUser(com.google.common.collect.Multimap<String,Pair<String,Boolean>> aclByUser,
ACL acl) |
com.google.common.collect.Multimap<String,Pair<String,Boolean>> |
getAclByUser(ACL acl) |
com.google.common.collect.Multimap<String,Pair<String,Boolean>> |
getAclByUser(ACL[] acls) |
com.google.common.collect.Multimap<String,Pair<String,Boolean>> |
getAclInheritedByUser(DocumentModel doc) |
com.google.common.collect.Multimap<String,Pair<String,Boolean>> |
getAclLocalByUser(DocumentModel doc) |
Pair<HashSet<String>,HashSet<String>> |
getAclSummary(DocumentModel doc)
Return the set of users and permissions mentionned in this document's ACLs.
|
com.google.common.collect.Multimap<String,Pair<String,Boolean>> |
getAllAclByUser(DocumentModel doc)
Return a compact version of a document ACLs, e.g.:
user1 -> [(READ,true), (WRITE,false), (ADD_CHILDREN,false), ...]
user2 -> [(READ,true), (WRITE,true), (ADD_CHILDREN,true), ...]
Remark: content might be ignored according to the policy implemented by
IContentFilter . |
boolean |
hasLockInheritanceACE(DocumentModel doc)
Returns true if this document owns an ACE locking inheritance Remark: content might be ignored according to the
policy implemented by
IContentFilter . |
boolean |
hasLockInheritanceACE(com.google.common.collect.Multimap<String,Pair<String,Boolean>> acls) |
boolean |
isLockInheritance(ACE ace)
Return true if this ACE locks inheritance, in other word:
EVERYONE
EVERYTHING
deny
|
boolean |
isLockInheritance(String user,
Pair<String,Boolean> ace) |
protected Pair<HashSet<String>,HashSet<String>> |
newSummary() |
void |
printAce(DocumentModel doc) |
protected IContentFilter filter
public AclSummaryExtractor(IContentFilter filter)
public com.google.common.collect.Multimap<String,Pair<String,Boolean>> getAllAclByUser(DocumentModel doc)
IContentFilter
.doc
- public com.google.common.collect.Multimap<String,Pair<String,Boolean>> getAclLocalByUser(DocumentModel doc)
public com.google.common.collect.Multimap<String,Pair<String,Boolean>> getAclInheritedByUser(DocumentModel doc)
public com.google.common.collect.Multimap<String,Pair<String,Boolean>> getAclByUser(ACL[] acls)
public com.google.common.collect.Multimap<String,Pair<String,Boolean>> getAclByUser(ACL acl)
protected void fillAceByUser(com.google.common.collect.Multimap<String,Pair<String,Boolean>> aclByUser, ACL acl)
public boolean hasLockInheritanceACE(DocumentModel doc)
IContentFilter
.doc
- isLockInheritance(ACE)
public boolean hasLockInheritanceACE(com.google.common.collect.Multimap<String,Pair<String,Boolean>> acls)
public boolean isLockInheritance(ACE ace)
public boolean isLockInheritance(String user, Pair<String,Boolean> ace)
public Pair<HashSet<String>,HashSet<String>> getAclSummary(DocumentModel doc)
IContentFilter
.doc
- public void printAce(DocumentModel doc)
Copyright © 2015 Nuxeo SA. All rights reserved.