Class AMContext
- java.lang.Object
-
- org.apache.jackrabbit.core.security.AMContext
-
public class AMContext extends Object
AnAMContextis used to provideSessionspecific context information for anAccessManager.
-
-
Constructor Summary
Constructors Constructor Description AMContext(File physicalHomeDir, FileSystem fs, Session session, Subject subject, HierarchyManager hierMgr, PrivilegeManager privilegeMgr, NamePathResolver resolver, String workspaceName)Creates a newAMContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSystemgetFileSystem()Returns the virtual filesystemHierarchyManagergetHierarchyManager()Returns the hierarchy managerFilegetHomeDir()Returns the physical home directoryNamePathResolvergetNamePathResolver()Returns the namespace resolverPrivilegeManagergetPrivilegeManager()Returns the privilege managerSessiongetSession()Returns the sessionSubjectgetSubject()Returns the subjectStringgetWorkspaceName()Returns the name of the workspace.
-
-
-
Constructor Detail
-
AMContext
public AMContext(File physicalHomeDir, FileSystem fs, Session session, Subject subject, HierarchyManager hierMgr, PrivilegeManager privilegeMgr, NamePathResolver resolver, String workspaceName)
Creates a newAMContext.- Parameters:
physicalHomeDir- the physical home directoryfs- the virtual jackrabbit filesystemsession- the session.subject- subject whose access rights should be reflectedhierMgr- hierarchy managerprivilegeMgr- privilege managerresolver- name and path resolverworkspaceName- workspace name
-
-
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
-
getSession
public Session getSession()
Returns the session- Returns:
- the session
-
getSubject
public Subject getSubject()
Returns the subject- Returns:
- the subject
-
getHierarchyManager
public HierarchyManager getHierarchyManager()
Returns the hierarchy manager- Returns:
- the hierarchy manager
-
getPrivilegeManager
public PrivilegeManager getPrivilegeManager()
Returns the privilege manager- Returns:
- the privilege manager
-
getNamePathResolver
public NamePathResolver getNamePathResolver()
Returns the namespace resolver- Returns:
- the namespace resolver
-
getWorkspaceName
public String getWorkspaceName()
Returns the name of the workspace.- Returns:
- the name of the workspace
-
-