Interface WorkspaceAccessManager
-
- All Known Implementing Classes:
SimpleWorkspaceAccessManager
public interface WorkspaceAccessManagerTheWorkspaceAccessManageris responsible for workspace access. In contrast to Items that are identified, workspaces are named Objects on different class hierarchy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Dispose thisWorkspaceAccessManagerand its resources.booleangrants(Set<Principal> principals, String workspaceName)Returnstrueif access to the workspace with the given name is granted to the to any of the specified principals.voidinit(Session systemSession)Initialize thisWorkspaceAccessManager.
-
-
-
Method Detail
-
init
void init(Session systemSession) throws RepositoryException
Initialize thisWorkspaceAccessManager.- Parameters:
systemSession- Session used to initialize this instance.- Throws:
RepositoryException- if an error occurs.
-
close
void close() throws RepositoryExceptionDispose thisWorkspaceAccessManagerand its resources.- Throws:
RepositoryException- if an error occurs.
-
grants
boolean grants(Set<Principal> principals, String workspaceName) throws RepositoryException
Returnstrueif access to the workspace with the given name is granted to the to any of the specified principals.- Parameters:
principals- A set of principals to be tested for being allowed to access workspace identified byworkspaceName.workspaceName- Name of the workspace to be tested.- Returns:
- true if the given set of principals is allowed to access the workspace with the specified name.
- Throws:
RepositoryException- If an error occurs.
-
-