|
ModeShape Distribution 3.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.security.acl.JcrAccessControlList
public class JcrAccessControlList
Resources based Access Control List implementation.
ACLs are stored per node in a special child node called
Constructor Summary | |
---|---|
JcrAccessControlList(AccessControlManagerImpl acm,
String path)
Creates new empty access control list. |
Method Summary | |
---|---|
boolean |
addAccessControlEntry(Principal principal,
Privilege[] privileges)
|
static JcrAccessControlList |
defaultAcl(AccessControlManagerImpl acm)
Creates default Access Control List. |
boolean |
equals(Object other)
|
AccessControlEntry[] |
getAccessControlEntries()
|
Privilege[] |
getPrivileges(String username)
Lists all privileges defined by this access list for the given user. |
boolean |
hasEntry(String name)
|
int |
hashCode()
|
boolean |
hasPrivileges(String username,
Privilege[] privileges)
Tests privileges for the given user. |
boolean |
isEmpty()
Checks entries of this access control list. |
void |
removeAccessControlEntry(AccessControlEntry accessControlEntry)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JcrAccessControlList(AccessControlManagerImpl acm, String path)
acm
- Access Control Manager managing this access list.path
- the path to which this access list is applied.Method Detail |
---|
public static JcrAccessControlList defaultAcl(AccessControlManagerImpl acm)
acm
- access control manager instance
public boolean isEmpty()
public AccessControlEntry[] getAccessControlEntries()
getAccessControlEntries
in interface AccessControlList
public boolean addAccessControlEntry(Principal principal, Privilege[] privileges) throws AccessControlException, RepositoryException
addAccessControlEntry
in interface AccessControlList
AccessControlException
RepositoryException
public void removeAccessControlEntry(AccessControlEntry accessControlEntry) throws AccessControlException, RepositoryException
removeAccessControlEntry
in interface AccessControlList
AccessControlException
RepositoryException
public boolean hasPrivileges(String username, Privilege[] privileges)
username
- the name of the userprivileges
- privileges for testing
public Privilege[] getPrivileges(String username)
username
- the name of the user
public boolean hasEntry(String name)
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
ModeShape Distribution 3.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |