org.apache.jackrabbit.core.security
Class AMContext

java.lang.Object
  extended byorg.apache.jackrabbit.core.security.AMContext

public class AMContext
extends Object

An AMContext is used to provide context information for an AccessManager.

See Also:
AccessManager.init(AMContext)

Constructor Summary
AMContext(File homeDir, FileSystem fs, Subject subject, HierarchyManager hierMgr, String workspaceName)
          Creates a new AMContext.
 
Method Summary
 FileSystem getFileSystem()
          Returns the virtual filesystem
 HierarchyManager getHierarchyManager()
          Returns the hierarchy manager
 File getHomeDir()
          Returns the physical home directory
 Subject getSubject()
          Returns the subject
 String getWorkspaceName()
          Returns the name of the workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AMContext

public AMContext(File homeDir,
                 FileSystem fs,
                 Subject subject,
                 HierarchyManager hierMgr,
                 String workspaceName)
Creates a new AMContext.

Parameters:
homeDir - the physical home directory
fs - the virtual jackrabbit filesystem
subject - subject whose access rights should be reflected
hierMgr - hierarchy manager
Method Detail

getHomeDir

public File getHomeDir()
Returns the physical home directory

Returns:
the physical home directory

getFileSystem

public FileSystem getFileSystem()
Returns the virtual filesystem

Returns:
the virtual filesystem

getSubject

public Subject getSubject()
Returns the subject

Returns:
the subject

getHierarchyManager

public HierarchyManager getHierarchyManager()
Returns the hierarchy manager

Returns:
the hierarchy manager

getWorkspaceName

public String getWorkspaceName()
Returns the name of the workspace.

Returns:
the name of the workspace


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