|
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.AccessControlEntryImpl
public class AccessControlEntryImpl
Implementation for the Access Control entry record.
An AccessControlEntry represents the association of one or more
Privilege objects with a specific Principal.
| Constructor Summary | |
|---|---|
AccessControlEntryImpl(Principal principal,
Privilege[] privileges)
Creates new ACL entry. |
|
| Method Summary | |
|---|---|
protected boolean |
addIfNotPresent(Privilege[] privileges)
Adds specified privileges to this entry. |
protected boolean |
combineRecursively(List<Privilege> list,
Privilege[] privileges)
Adds specified privileges to the given list. |
boolean |
equals(Object other)
|
Principal |
getPrincipal()
|
Privilege[] |
getPrivileges()
|
int |
hashCode()
|
protected boolean |
hasPrivileges(Privilege[] privileges)
Tests given privileges. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessControlEntryImpl(Principal principal,
Privilege[] privileges)
throws AccessControlException
principal - principal associated with this entry.privileges - one or more privilege in association with given principal.
AccessControlException - if one or more privileges are invalid.| Method Detail |
|---|
public Principal getPrincipal()
getPrincipal in interface AccessControlEntrypublic Privilege[] getPrivileges()
getPrivileges in interface AccessControlEntryprotected boolean hasPrivileges(Privilege[] privileges)
privileges - privileges for testing.
protected boolean addIfNotPresent(Privilege[] privileges)
privileges - privileges to add.
protected boolean combineRecursively(List<Privilege> list,
Privilege[] privileges)
list - the result list of combined privileges.privileges - privileges to add.
public boolean equals(Object other)
equals in class Objectpublic 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 | |||||||||