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,
Session session,
Subject subject,
HierarchyManager hierMgr,
org.apache.jackrabbit.api.security.authorization.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
|
org.apache.jackrabbit.api.security.authorization.PrivilegeManager |
getPrivilegeManager()
Returns the privilege manager
|
Session |
getSession()
Returns the session
|
Subject |
getSubject()
Returns the subject
|
String |
getWorkspaceName()
Returns the name of the workspace.
|
public AMContext(File physicalHomeDir, FileSystem fs, Session session, Subject subject, HierarchyManager hierMgr, org.apache.jackrabbit.api.security.authorization.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 Session getSession()
public Subject getSubject()
public HierarchyManager getHierarchyManager()
public org.apache.jackrabbit.api.security.authorization.PrivilegeManager getPrivilegeManager()
public NamePathResolver getNamePathResolver()
public String getWorkspaceName()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.