Class AMContext
- java.lang.Object
-
- org.apache.jackrabbit.core.security.AMContext
-
public class AMContext extends Object
AnAMContext
is used to provideSession
specific 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 FileSystem
getFileSystem()
Returns the virtual filesystemHierarchyManager
getHierarchyManager()
Returns the hierarchy managerFile
getHomeDir()
Returns the physical home directoryNamePathResolver
getNamePathResolver()
Returns the namespace resolverPrivilegeManager
getPrivilegeManager()
Returns the privilege managerSession
getSession()
Returns the sessionSubject
getSubject()
Returns the subjectString
getWorkspaceName()
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
-
-