public class DomainInfoPrivilege extends Object implements javax.jcr.security.Privilege
DomainInfoPrivilege
is a simple wrapper class for a Privilege
supporting extra information. It
supports information about all the security domain paths (getDomainPaths()
)
that contributed to this specific Privilege
. Because of how the security domains are set up, a single
privilege on a Node
, eg jcr:read, can be the result of multiple security domains all giving
jcr:read on the node. Hence getDomainPaths()
returns a TreeSet
and not a single
domain path (Treeset such that the domains paths are sorted alphabetically).
JCR_ADD_CHILD_NODES, JCR_ALL, JCR_LIFECYCLE_MANAGEMENT, JCR_LOCK_MANAGEMENT, JCR_MODIFY_ACCESS_CONTROL, JCR_MODIFY_PROPERTIES, JCR_NODE_TYPE_MANAGEMENT, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_REMOVE_CHILD_NODES, JCR_REMOVE_NODE, JCR_RETENTION_MANAGEMENT, JCR_VERSION_MANAGEMENT, JCR_WRITE
Constructor and Description |
---|
DomainInfoPrivilege(javax.jcr.security.Privilege delegatee) |
Modifier and Type | Method and Description |
---|---|
void |
addDomainPath(String domainPath) |
javax.jcr.security.Privilege[] |
getAggregatePrivileges() |
javax.jcr.security.Privilege[] |
getDeclaredAggregatePrivileges() |
TreeSet<String> |
getDomainPaths() |
String |
getName() |
boolean |
isAbstract() |
boolean |
isAggregate() |
public DomainInfoPrivilege(javax.jcr.security.Privilege delegatee)
public TreeSet<String> getDomainPaths()
public void addDomainPath(String domainPath)
public String getName()
getName
in interface javax.jcr.security.Privilege
public boolean isAbstract()
isAbstract
in interface javax.jcr.security.Privilege
public boolean isAggregate()
isAggregate
in interface javax.jcr.security.Privilege
public javax.jcr.security.Privilege[] getDeclaredAggregatePrivileges()
getDeclaredAggregatePrivileges
in interface javax.jcr.security.Privilege
public javax.jcr.security.Privilege[] getAggregatePrivileges()
getAggregatePrivileges
in interface javax.jcr.security.Privilege
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.