Class PrivilegeManagerDelegator
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.delegate.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 ofPrivilegeManager
delegates back to a delegatee wrapping each call into aSessionOperation
closure.
-
-
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)
-
-
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.jackrabbit.api.security.authorization.PrivilegeManager
- Throws:
javax.jcr.RepositoryException
-
-