public interface WorkspaceAccessManager
WorkspaceAccessManager is responsible for workspace access.
In contrast to Items that are identified, workspaces are named Objects
on different class hierarchy.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Dispose this
WorkspaceAccessManager and its resources. |
boolean |
grants(Set<Principal> principals,
String workspaceName)
Returns
true if access to the workspace with the given name
is granted to the to any of the specified principals. |
void |
init(Session systemSession)
Initialize this
WorkspaceAccessManager. |
void init(Session systemSession) throws RepositoryException
WorkspaceAccessManager.systemSession - Session used to initialize this instance.RepositoryException - if an error occurs.void close()
throws RepositoryException
WorkspaceAccessManager and its resources.RepositoryException - if an error occurs.boolean grants(Set<Principal> principals, String workspaceName) throws RepositoryException
true if access to the workspace with the given name
is granted to the to any of the specified principals.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.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.