Package org.onehippo.repository.security
Class DomainInfoPrivilege
- java.lang.Object
-
- org.onehippo.repository.security.DomainInfoPrivilege
-
- All Implemented Interfaces:
Privilege
public class DomainInfoPrivilege extends Object implements Privilege
DomainInfoPrivilege
is a simple wrapper class for aPrivilege
supporting extra information. It supports information about all the security domain paths (getDomainPaths()
) that contributed to this specificPrivilege
. Because of how the security domains are set up, a single privilege on aNode
, eg jcr:read, can be the result of multiple security domains all giving jcr:read on the node. HencegetDomainPaths()
returns aTreeSet
and not a single domain path (Treeset such that the domains paths are sorted alphabetically).
-
-
Field Summary
-
Fields inherited from interface javax.jcr.security.Privilege
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 Summary
Constructors Constructor Description DomainInfoPrivilege(Privilege delegatee)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDomainPath(String domainPath)
Privilege[]
getAggregatePrivileges()
Privilege[]
getDeclaredAggregatePrivileges()
TreeSet<String>
getDomainPaths()
String
getName()
boolean
isAbstract()
boolean
isAggregate()
-
-
-
Constructor Detail
-
DomainInfoPrivilege
public DomainInfoPrivilege(Privilege delegatee)
-
-
Method Detail
-
getDomainPaths
public TreeSet<String> getDomainPaths()
- Returns:
- All the security domain node paths providing this privilege, sorted alphabetically on the domain path
-
addDomainPath
public void addDomainPath(String domainPath)
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfacePrivilege
-
isAggregate
public boolean isAggregate()
- Specified by:
isAggregate
in interfacePrivilege
-
getDeclaredAggregatePrivileges
public Privilege[] getDeclaredAggregatePrivileges()
- Specified by:
getDeclaredAggregatePrivileges
in interfacePrivilege
-
getAggregatePrivileges
public Privilege[] getAggregatePrivileges()
- Specified by:
getAggregatePrivileges
in interfacePrivilege
-
-