Class AccessControlProviderImpl
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.security.authorization.jackrabbit.acl.AccessControlProviderImpl
-
- All Implemented Interfaces:
AccessControlProvider
public class AccessControlProviderImpl extends Object implements AccessControlProvider
-
-
Constructor Summary
Constructors Constructor Description AccessControlProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlManager
createAccessControlManager(SessionInfo sessionInfo, UpdatableItemStateManager itemStateManager, ItemManager itemManager, ItemDefinitionProvider definitionProvider, HierarchyManager hierarchyManager, NamePathResolver npResolver)
Set<Privilege>
getPrivileges(SessionInfo sessionInfo, NodeId id, NamePathResolver npResolver)
Map<String,Privilege>
getSupportedPrivileges(SessionInfo sessionInfo, NodeId nodeId, NamePathResolver npResolver)
Obtain the privileges supported at the specified path.void
init(RepositoryConfig config)
Privilege
privilegeFromName(SessionInfo sessionInfo, NamePathResolver resolver, String privilegeName)
The privileges corresponding to the specified name.
-
-
-
Method Detail
-
init
public void init(RepositoryConfig config) throws RepositoryException
- Specified by:
init
in interfaceAccessControlProvider
- Throws:
RepositoryException
-
privilegeFromName
public Privilege privilegeFromName(SessionInfo sessionInfo, NamePathResolver resolver, String privilegeName) throws RepositoryException
Description copied from interface:AccessControlProvider
The privileges corresponding to the specified name.- Specified by:
privilegeFromName
in interfaceAccessControlProvider
- Returns:
- Throws:
RepositoryException
- See Also:
AccessControlManager.privilegeFromName(String)
-
getSupportedPrivileges
public Map<String,Privilege> getSupportedPrivileges(SessionInfo sessionInfo, NodeId nodeId, NamePathResolver npResolver) throws RepositoryException
Description copied from interface:AccessControlProvider
Obtain the privileges supported at the specified path.- Specified by:
getSupportedPrivileges
in interfaceAccessControlProvider
nodeId
- The id of an existing node ornull
to obtain privileges that are supported for repository level access.- Returns:
- Throws:
RepositoryException
- See Also:
AccessControlManager.getSupportedPrivileges(String)
-
getPrivileges
public Set<Privilege> getPrivileges(SessionInfo sessionInfo, NodeId id, NamePathResolver npResolver) throws RepositoryException
- Specified by:
getPrivileges
in interfaceAccessControlProvider
- Throws:
RepositoryException
-
createAccessControlManager
public AccessControlManager createAccessControlManager(SessionInfo sessionInfo, UpdatableItemStateManager itemStateManager, ItemManager itemManager, ItemDefinitionProvider definitionProvider, HierarchyManager hierarchyManager, NamePathResolver npResolver) throws RepositoryException
- Specified by:
createAccessControlManager
in interfaceAccessControlProvider
- Throws:
RepositoryException
-
-