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(Session systemSession)
Initialize this
WorkspaceAccessManager . |
public void init(Session systemSession)
WorkspaceAccessManager
WorkspaceAccessManager
.init
in interface WorkspaceAccessManager
systemSession
- Session used to initialize this instance.WorkspaceAccessManager.init(Session)
public void close() throws RepositoryException
WorkspaceAccessManager
WorkspaceAccessManager
and its resources.close
in interface WorkspaceAccessManager
RepositoryException
- if an error occurs.WorkspaceAccessManager.close()
public boolean grants(Set<Principal> principals, String workspaceName) throws 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.RepositoryException
- If an error occurs.WorkspaceAccessManager.grants(java.util.Set, String)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.