public class AMContext extends Object
AMContext
is used to provide Session
specific
context information for an AccessManager
.Constructor and Description |
---|
AMContext(File physicalHomeDir,
FileSystem fs,
javax.jcr.Session session,
Subject subject,
HierarchyManager hierMgr,
PrivilegeManager privilegeMgr,
NamePathResolver resolver,
String workspaceName)
Creates a new
AMContext . |
Modifier and Type | Method and Description |
---|---|
FileSystem |
getFileSystem()
Returns the virtual filesystem
|
HierarchyManager |
getHierarchyManager()
Returns the hierarchy manager
|
File |
getHomeDir()
Returns the physical home directory
|
NamePathResolver |
getNamePathResolver()
Returns the namespace resolver
|
PrivilegeManager |
getPrivilegeManager()
Returns the privilege manager
|
javax.jcr.Session |
getSession()
Returns the session
|
Subject |
getSubject()
Returns the subject
|
String |
getWorkspaceName()
Returns the name of the workspace.
|
public AMContext(File physicalHomeDir, FileSystem fs, javax.jcr.Session session, Subject subject, HierarchyManager hierMgr, PrivilegeManager privilegeMgr, NamePathResolver resolver, String workspaceName)
AMContext
.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 namepublic File getHomeDir()
public FileSystem getFileSystem()
public javax.jcr.Session getSession()
public Subject getSubject()
public HierarchyManager getHierarchyManager()
public PrivilegeManager getPrivilegeManager()
public NamePathResolver getNamePathResolver()
public String getWorkspaceName()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.