Class SimpleWorkspaceAccessManager
- java.lang.Object
-
- org.apache.jackrabbit.core.security.simple.SimpleWorkspaceAccessManager
-
- All Implemented Interfaces:
WorkspaceAccessManager
public class SimpleWorkspaceAccessManager extends Object implements WorkspaceAccessManager
SimpleWorkspaceAccessManager
always 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 void
close()
Dispose thisWorkspaceAccessManager
and its resources.boolean
grants(Set<Principal> principals, String workspaceName)
Always returnstrue
allowing any set of principals to access all workspaces.void
init(Session systemSession)
Initialize thisWorkspaceAccessManager
.
-
-
-
Method Detail
-
init
public void init(Session systemSession)
Description copied from interface:WorkspaceAccessManager
Initialize thisWorkspaceAccessManager
.- Specified by:
init
in interfaceWorkspaceAccessManager
- Parameters:
systemSession
- Session used to initialize this instance.- See Also:
WorkspaceAccessManager.init(Session)
-
close
public void close() throws RepositoryException
Description copied from interface:WorkspaceAccessManager
Dispose thisWorkspaceAccessManager
and its resources.- Specified by:
close
in interfaceWorkspaceAccessManager
- Throws:
RepositoryException
- if an error occurs.- See Also:
WorkspaceAccessManager.close()
-
grants
public boolean grants(Set<Principal> principals, String workspaceName) throws RepositoryException
Always returnstrue
allowing any set of principals to access all workspaces.- Specified by:
grants
in 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)
-
-