org.apache.jackrabbit.core.security.authorization
Interface WorkspaceAccessManager


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 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 securitySession)
          Initialize this WorkspaceAccessManager.
 

Method Detail

init

void init(Session securitySession)
          throws RepositoryException
Initialize this WorkspaceAccessManager.

Parameters:
securitySession -
Throws:
RepositoryException - if an error occurs.

close

void close()
           throws RepositoryException
Dispose this WorkspaceAccessManager and its resources.

Throws:
RepositoryException - if an error occurs.

grants

boolean grants(Set principals,
               String workspaceName)
               throws RepositoryException
Returns true if access to the workspace with the given name is granted to the to any of the specified principals.

Parameters:
principals -
workspaceName -
Returns:
true if the given set of principals is allowed to access the workspace with the specified name.
Throws:
RepositoryException


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.