public class AccessControlEntryImpl extends Object implements javax.jcr.security.AccessControlEntry
Privilege objects with a specific Principal.| Constructor and Description |
|---|
AccessControlEntryImpl(Principal principal,
javax.jcr.security.Privilege[] privileges)
Creates new ACL entry.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addIfNotPresent(javax.jcr.security.Privilege[] privileges)
Adds specified privileges to this entry.
|
protected boolean |
combineRecursively(List<javax.jcr.security.Privilege> list,
javax.jcr.security.Privilege[] privileges)
Adds specified privileges to the given list.
|
boolean |
equals(Object other) |
Principal |
getPrincipal() |
javax.jcr.security.Privilege[] |
getPrivileges() |
int |
hashCode() |
protected boolean |
hasPrivileges(javax.jcr.security.Privilege[] privileges)
Tests given privileges.
|
String |
toString() |
public AccessControlEntryImpl(Principal principal, javax.jcr.security.Privilege[] privileges) throws javax.jcr.security.AccessControlException
principal - principal associated with this entry.privileges - one or more privilege in association with given principal.javax.jcr.security.AccessControlException - if one or more privileges are invalid.public Principal getPrincipal()
getPrincipal in interface javax.jcr.security.AccessControlEntrypublic javax.jcr.security.Privilege[] getPrivileges()
getPrivileges in interface javax.jcr.security.AccessControlEntryprotected boolean hasPrivileges(javax.jcr.security.Privilege[] privileges)
privileges - privileges for testing.protected boolean addIfNotPresent(javax.jcr.security.Privilege[] privileges)
privileges - privileges to add.protected boolean combineRecursively(List<javax.jcr.security.Privilege> list, javax.jcr.security.Privilege[] privileges)
list - the result list of combined privileges.privileges - privileges to add.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.