Class DomainInfoPrivilege

  • All Implemented Interfaces:
    javax.jcr.security.Privilege

    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).

    • Constructor Detail

      • DomainInfoPrivilege

        public DomainInfoPrivilege​(javax.jcr.security.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)
      • getName

        public String getName()
        Specified by:
        getName in interface javax.jcr.security.Privilege
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface javax.jcr.security.Privilege
      • isAggregate

        public boolean isAggregate()
        Specified by:
        isAggregate in interface javax.jcr.security.Privilege
      • getDeclaredAggregatePrivileges

        public javax.jcr.security.Privilege[] getDeclaredAggregatePrivileges()
        Specified by:
        getDeclaredAggregatePrivileges in interface javax.jcr.security.Privilege
      • getAggregatePrivileges

        public javax.jcr.security.Privilege[] getAggregatePrivileges()
        Specified by:
        getAggregatePrivileges in interface javax.jcr.security.Privilege