public class SimpleWorkspaceAccessManager extends Object implements WorkspaceAccessManager
SimpleWorkspaceAccessManager
always allows any set of principals
to access any workspace.Constructor and Description |
---|
SimpleWorkspaceAccessManager() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Dispose this
WorkspaceAccessManager and its resources. |
boolean |
grants(Set<Principal> principals,
String workspaceName)
Always returns
true allowing any set of principals to
access all workspaces. |
void |
init(javax.jcr.Session systemSession)
Initialize this
WorkspaceAccessManager . |
public void init(javax.jcr.Session systemSession)
WorkspaceAccessManager
WorkspaceAccessManager
.init
in interface WorkspaceAccessManager
systemSession
- Session used to initialize this instance.WorkspaceAccessManager.init(Session)
public void close() throws javax.jcr.RepositoryException
WorkspaceAccessManager
WorkspaceAccessManager
and its resources.close
in interface WorkspaceAccessManager
javax.jcr.RepositoryException
- if an error occurs.WorkspaceAccessManager.close()
public boolean grants(Set<Principal> principals, String workspaceName) throws javax.jcr.RepositoryException
true
allowing any set of principals to
access all workspaces.grants
in interface WorkspaceAccessManager
principals
- A set of principals to be tested for being allowed to
access workspace identified by workspaceName
.workspaceName
- Name of the workspace to be tested.javax.jcr.RepositoryException
- If an error occurs.WorkspaceAccessManager.grants(java.util.Set, String)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.