org.apache.jackrabbit.core.security.simple
Class SimpleWorkspaceAccessManager

java.lang.Object
  extended by org.apache.jackrabbit.core.security.simple.SimpleWorkspaceAccessManager
All Implemented Interfaces:
WorkspaceAccessManager

public class SimpleWorkspaceAccessManager
extends Object
implements WorkspaceAccessManager

SimpleWorkspaceAccessManager always allows any set of principals to access any workspace.


Constructor Summary
SimpleWorkspaceAccessManager()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleWorkspaceAccessManager

public SimpleWorkspaceAccessManager()
Method Detail

init

public void init(Session systemSession)
Description copied from interface: WorkspaceAccessManager
Initialize this WorkspaceAccessManager.

Specified by:
init in interface WorkspaceAccessManager
Parameters:
systemSession - Session used to initialize this instance.
See Also:
WorkspaceAccessManager.init(Session)

close

public void close()
           throws RepositoryException
Description copied from interface: WorkspaceAccessManager
Dispose this WorkspaceAccessManager and its resources.

Specified by:
close in interface WorkspaceAccessManager
Throws:
RepositoryException - if an error occurs.
See Also:
WorkspaceAccessManager.close()

grants

public boolean grants(Set<Principal> principals,
                      String workspaceName)
               throws RepositoryException
Always returns true allowing any set of principals to access all workspaces.

Specified by:
grants in interface WorkspaceAccessManager
Parameters:
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.
Returns:
true if the given set of principals is allowed to access the workspace with the specified name.
Throws:
RepositoryException - If an error occurs.
See Also:
WorkspaceAccessManager.grants(java.util.Set, String)


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