Package com.day.crx

Interface CRXSession

    • Method Detail

      • getExportHandler

        CRXExportHandler getExportHandler()
                                   throws javax.jcr.RepositoryException
        Returns the export handler
        Returns:
        the export handler
        Throws:
        javax.jcr.RepositoryException
      • getImportHandler

        CRXImportHandler getImportHandler()
                                   throws javax.jcr.RepositoryException
        Returns the import handler
        Returns:
        the import handler
        Throws:
        javax.jcr.RepositoryException
      • getSession

        CRXSession getSession​(java.lang.String workspaceName)
                       throws javax.jcr.AccessDeniedException,
                              javax.jcr.NoSuchWorkspaceException,
                              javax.jcr.RepositoryException
        Creates a new session with the same subject as this sessions but to a different workspace. The returned session is a newly logged in session, with the same subject but a different workspace. Even if the given workspace is the same as this sessions one, the implementation must return a new session object.
        Parameters:
        workspaceName - name of the workspace to acquire a session for.
        Returns:
        A session to the requested workspace for the same authenticated subject.
        Throws:
        javax.jcr.AccessDeniedException - in case the current Subject is not allowed to access the requested Workspace
        javax.jcr.NoSuchWorkspaceException - If the named workspace does not exist.
        javax.jcr.RepositoryException - in any other exceptional state