|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.core.api.security.impl.ACPImpl
public class ACPImpl
The ACP implementation uses a cache used when calling getAccess().
| Constructor Summary | |
|---|---|
ACPImpl()
|
|
| Method Summary | |
|---|---|
void |
addAccessRule(String aclName,
ACE ace)
|
void |
addACL(ACL acl)
This method must append the ACL and not insert it since it is used to append the inherited ACL which is the less signifiant ACL. |
void |
addACL(int pos,
ACL acl)
|
void |
addACL(String afterMe,
ACL acl)
|
void |
addOwner(String owner)
|
static Access |
getAccess(ACE ace,
String[] principals,
String[] permissions)
|
Access |
getAccess(String[] principals,
String[] permissions)
Check the access on the ACLs for each set of the given permissions and principals. |
Access |
getAccess(String principal,
String permission)
Check whether this ACP grant the given permission on the given user, denies it or doesn't specifiy a rule. |
ACL |
getACL(String name)
|
ACL[] |
getACLs()
|
ACL |
getMergedACLs(String name)
|
ACL |
getOrCreateACL()
|
ACL |
getOrCreateACL(String name)
|
String[] |
getOwners()
|
boolean |
isOwner(String username)
|
String[] |
listUsernamesForAnyPermission(Set<String> perms)
Returns the usernames granted to perform an operation based on a list of permissions. |
String[] |
listUsernamesForPermission(String perm)
Returns the usernames having a given permission. |
static ACL |
newACL(String name)
|
ACL |
removeACL(String name)
|
void |
removeOwner(String owner)
|
void |
setOwners(String[] owners)
|
void |
setRules(String aclName,
UserEntry[] userEntries)
Replaces the modifiable user entries (associated with the currentDocument) related to the ACP. |
void |
setRules(String aclName,
UserEntry[] userEntries,
boolean overwrite)
Replaces the modifiable user entries (associated with the currentDocument) related to the ACP. |
void |
setRules(UserEntry[] userEntries)
Replaces the modifiable user entries (associated with the currentDocument) related to the current ACP. |
void |
setRules(UserEntry[] userEntries,
boolean overwrite)
Replaces the modifiable user entries (associated with the currentDocument) related to the current ACP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACPImpl()
| Method Detail |
|---|
public String[] getOwners()
getOwners in interface ACPpublic boolean isOwner(String username)
isOwner in interface ACPpublic void addOwner(String owner)
addOwner in interface ACPpublic void removeOwner(String owner)
removeOwner in interface ACPpublic void setOwners(String[] owners)
setOwners in interface ACPpublic void addACL(ACL acl)
addACL in interface ACP
public void addACL(int pos,
ACL acl)
addACL in interface ACP
public void addACL(String afterMe,
ACL acl)
addACL in interface ACPpublic ACL getACL(String name)
getACL in interface ACPpublic ACL[] getACLs()
getACLs in interface ACPpublic ACL getMergedACLs(String name)
getMergedACLs in interface ACPpublic static ACL newACL(String name)
public ACL removeACL(String name)
removeACL in interface ACP
public Access getAccess(String principal,
String permission)
ACPThis is checking only the ACLs on that ACP. Parents if any are not checked.
getAccess in interface ACPprincipal - the pricipal to checkpermission - the permission to check
ACP#checkPermission(String, String)
public Access getAccess(String[] principals,
String[] permissions)
ACP
getAccess in interface ACP
public static Access getAccess(ACE ace,
String[] principals,
String[] permissions)
public void addAccessRule(String aclName,
ACE ace)
public ACL getOrCreateACL(String name)
getOrCreateACL in interface ACPpublic ACL getOrCreateACL()
getOrCreateACL in interface ACP
public void setRules(String aclName,
UserEntry[] userEntries)
ACP
setRules in interface ACP
public void setRules(String aclName,
UserEntry[] userEntries,
boolean overwrite)
ACP
setRules in interface ACPoverwrite - overwrite the whole ACLpublic void setRules(UserEntry[] userEntries)
ACP
setRules in interface ACP
public void setRules(UserEntry[] userEntries,
boolean overwrite)
ACPThe current behavior reset completely the current ACL.
setRules in interface ACPoverwrite - overwrite the whole current ACLpublic String[] listUsernamesForPermission(String perm)
ACP
listUsernamesForPermission in interface ACPperm - : the permission name.
public String[] listUsernamesForAnyPermission(Set<String> perms)
ACP
listUsernamesForAnyPermission in interface ACP
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||