Class AuthorizableWrapper

  • Direct Known Subclasses:
    GroupWrapper, ServiceUserWrapper, UserWrapper

    public class AuthorizableWrapper
    extends Object
    Authorizable wrapper, Authorizable interface is not a ConsumerType and so should not be implemented. See OAK-10252
    • Constructor Detail

      • AuthorizableWrapper

        public AuthorizableWrapper​(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
    • Method Detail

      • getID

        public String getID()
                     throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • isGroup

        public boolean isGroup()
      • getPrincipal

        public Principal getPrincipal()
                               throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • declaredMemberOf

        public Iterator<GroupWrapper> declaredMemberOf()
                                                throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • memberOf

        public Iterator<GroupWrapper> memberOf()
                                        throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • remove

        public void remove()
                    throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getPropertyNames

        public Iterator<String> getPropertyNames()
                                          throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getPropertyNames

        public Iterator<String> getPropertyNames​(String relPath)
                                          throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • hasProperty

        public boolean hasProperty​(String relPath)
                            throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • setProperty

        public void setProperty​(String relPath,
                                javax.jcr.Value value)
                         throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • setProperty

        public void setProperty​(String relPath,
                                javax.jcr.Value[] value)
                         throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getProperty

        public javax.jcr.Value[] getProperty​(String relPath)
                                      throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • removeProperty

        public boolean removeProperty​(String relPath)
                               throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getPath

        public String getPath()
                       throws javax.jcr.UnsupportedRepositoryOperationException,
                              javax.jcr.RepositoryException
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException
        javax.jcr.RepositoryException
      • getGroupWrapperIterator

        @NotNull
        protected static @NotNull Iterator<GroupWrapper> getGroupWrapperIterator​(Iterator<org.apache.jackrabbit.api.security.user.Group> jcrGroupIterator)
      • getAuthorizableWrapperIterator

        @NotNull
        protected static @NotNull Iterator<AuthorizableWrapper> getAuthorizableWrapperIterator​(Iterator<org.apache.jackrabbit.api.security.user.Authorizable> jcrAuthorizableIterator)
      • getAuthorizable

        public org.apache.jackrabbit.api.security.user.Authorizable getAuthorizable()