|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkspaceAccessManager
The WorkspaceAccessManager is responsible for workspace access.
In contrast to Items that are identified, workspaces are named Objects
on different class hierarchy.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||