Class PrivilegeManagerDelegator

  • All Implemented Interfaces:
    org.apache.jackrabbit.api.security.authorization.PrivilegeManager

    public class PrivilegeManagerDelegator
    extends java.lang.Object
    implements org.apache.jackrabbit.api.security.authorization.PrivilegeManager
    This implementation of PrivilegeManager delegates back to a delegatee wrapping each call into a SessionOperation closure.
    See Also:
    SessionDelegate.perform(SessionOperation)
    • Constructor Summary

      Constructors 
      Constructor Description
      PrivilegeManagerDelegator​(@NotNull SessionDelegate delegate, @NotNull org.apache.jackrabbit.api.security.authorization.PrivilegeManager pm)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull javax.jcr.security.Privilege getPrivilege​(@NotNull java.lang.String privilegeName)  
      @NotNull javax.jcr.security.Privilege[] getRegisteredPrivileges()  
      @NotNull javax.jcr.security.Privilege registerPrivilege​(@NotNull java.lang.String privilegeName, boolean isAbstract, @Nullable java.lang.String[] declaredAggregateNames)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrivilegeManagerDelegator

        public PrivilegeManagerDelegator​(@NotNull
                                         @NotNull SessionDelegate delegate,
                                         @NotNull
                                         @NotNull org.apache.jackrabbit.api.security.authorization.PrivilegeManager pm)
    • Method Detail

      • getRegisteredPrivileges

        @NotNull
        public @NotNull javax.jcr.security.Privilege[] getRegisteredPrivileges()
                                                                        throws javax.jcr.RepositoryException
        Specified by:
        getRegisteredPrivileges in interface org.apache.jackrabbit.api.security.authorization.PrivilegeManager
        Throws:
        javax.jcr.RepositoryException
      • getPrivilege

        @NotNull
        public @NotNull javax.jcr.security.Privilege getPrivilege​(@NotNull
                                                                  @NotNull java.lang.String privilegeName)
                                                           throws javax.jcr.RepositoryException
        Specified by:
        getPrivilege in interface org.apache.jackrabbit.api.security.authorization.PrivilegeManager
        Throws:
        javax.jcr.RepositoryException
      • registerPrivilege

        @NotNull
        public @NotNull javax.jcr.security.Privilege registerPrivilege​(@NotNull
                                                                       @NotNull java.lang.String privilegeName,
                                                                       boolean isAbstract,
                                                                       @Nullable
                                                                       @Nullable java.lang.String[] declaredAggregateNames)
                                                                throws javax.jcr.RepositoryException
        Specified by:
        registerPrivilege in interface org.apache.jackrabbit.api.security.authorization.PrivilegeManager
        Throws:
        javax.jcr.RepositoryException