Interface AccessControlProvider
-
- All Known Implementing Classes:
AccessControlProviderImpl
public interface AccessControlProvider
AccessControlProvider... TODO
-
-
Method Summary
All Methods Instance Methods Abstract 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
void init(RepositoryConfig config) throws RepositoryException
- Throws:
RepositoryException
-
privilegeFromName
Privilege privilegeFromName(SessionInfo sessionInfo, NamePathResolver resolver, String privilegeName) throws RepositoryException
The privileges corresponding to the specified name.- Parameters:
sessionInfo
-resolver
-- Returns:
- Throws:
RepositoryException
- See Also:
AccessControlManager.privilegeFromName(String)
-
getSupportedPrivileges
Map<String,Privilege> getSupportedPrivileges(SessionInfo sessionInfo, NodeId nodeId, NamePathResolver npResolver) throws RepositoryException
Obtain the privileges supported at the specified path.- Parameters:
sessionInfo
-nodeId
- The id of an existing node ornull
to obtain privileges that are supported for repository level access.npResolver
-- Returns:
- Throws:
RepositoryException
- See Also:
AccessControlManager.getSupportedPrivileges(String)
-
getPrivileges
Set<Privilege> getPrivileges(SessionInfo sessionInfo, NodeId id, NamePathResolver npResolver) throws RepositoryException
- Throws:
RepositoryException
-
createAccessControlManager
AccessControlManager createAccessControlManager(SessionInfo sessionInfo, UpdatableItemStateManager itemStateManager, ItemManager itemManager, ItemDefinitionProvider definitionProvider, HierarchyManager hierarchyManager, NamePathResolver npResolver) throws RepositoryException
- Throws:
RepositoryException
-
-