Class SimpleWorkspaceAccessManager
- java.lang.Object
-
- org.apache.jackrabbit.core.security.simple.SimpleWorkspaceAccessManager
-
- All Implemented Interfaces:
WorkspaceAccessManager
public class SimpleWorkspaceAccessManager extends Object implements WorkspaceAccessManager
SimpleWorkspaceAccessManageralways allows any set of principals to access any workspace.
-
-
Constructor Summary
Constructors Constructor Description SimpleWorkspaceAccessManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Dispose thisWorkspaceAccessManagerand its resources.booleangrants(Set<Principal> principals, String workspaceName)Always returnstrueallowing any set of principals to access all workspaces.voidinit(Session systemSession)Initialize thisWorkspaceAccessManager.
-
-
-
Method Detail
-
init
public void init(Session systemSession)
Description copied from interface:WorkspaceAccessManagerInitialize thisWorkspaceAccessManager.- Specified by:
initin interfaceWorkspaceAccessManager- Parameters:
systemSession- Session used to initialize this instance.- See Also:
WorkspaceAccessManager.init(Session)
-
close
public void close() throws RepositoryExceptionDescription copied from interface:WorkspaceAccessManagerDispose thisWorkspaceAccessManagerand its resources.- Specified by:
closein interfaceWorkspaceAccessManager- Throws:
RepositoryException- if an error occurs.- See Also:
WorkspaceAccessManager.close()
-
grants
public boolean grants(Set<Principal> principals, String workspaceName) throws RepositoryException
Always returnstrueallowing any set of principals to access all workspaces.- Specified by:
grantsin interfaceWorkspaceAccessManager- 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.- See Also:
WorkspaceAccessManager.grants(java.util.Set, String)
-
-