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)
WorkspaceAccessManagerWorkspaceAccessManager.init in interface WorkspaceAccessManagersystemSession - Session used to initialize this instance.WorkspaceAccessManager.init(Session)public void close()
throws RepositoryException
WorkspaceAccessManagerWorkspaceAccessManager and its resources.close in interface WorkspaceAccessManagerRepositoryException - 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 WorkspaceAccessManagerprincipals - 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–2022 The Apache Software Foundation. All rights reserved.