Class AMContext

    • Constructor Detail

      • AMContext

        public AMContext​(File physicalHomeDir,
                         FileSystem fs,
                         Session session,
                         Subject subject,
                         HierarchyManager hierMgr,
                         PrivilegeManager privilegeMgr,
                         NamePathResolver resolver,
                         String workspaceName)
        Creates a new AMContext.
        Parameters:
        physicalHomeDir - the physical home directory
        fs - the virtual jackrabbit filesystem
        session - the session.
        subject - subject whose access rights should be reflected
        hierMgr - hierarchy manager
        privilegeMgr - privilege manager
        resolver - name and path resolver
        workspaceName - 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