com.day.crx
Interface CRXSession

All Superinterfaces:
JackrabbitSession, Session, XASession

public interface CRXSession
extends JackrabbitSession, XASession

This Interface extends the default jcr session by some crx specific methods.


Field Summary
 
Fields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
 
Method Summary
 CRXExportHandler getExportHandler()
          Returns the export handler
 CRXImportHandler getImportHandler()
          Returns the import handler
 CRXSession getSession(String workspaceName)
          Creates a new session with the same subject as this sessions but to a different workspace.
 
Methods inherited from interface org.apache.jackrabbit.api.JackrabbitSession
getPrincipalManager, getUserManager
 
Methods inherited from interface org.apache.jackrabbit.api.XASession
getXAResource
 
Methods inherited from interface javax.jcr.Session
addLockToken, checkPermission, exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getImportContentHandler, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRepository, getRetentionManager, getRootNode, getUserID, getValueFactory, getWorkspace, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
 

Method Detail

getExportHandler

CRXExportHandler getExportHandler()
                                  throws RepositoryException
Returns the export handler

Returns:
the export handler
Throws:
RepositoryException

getImportHandler

CRXImportHandler getImportHandler()
                                  throws RepositoryException
Returns the import handler

Returns:
the import handler
Throws:
RepositoryException

getSession

CRXSession getSession(String workspaceName)
                      throws AccessDeniedException,
                             NoSuchWorkspaceException,
                             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:
AccessDeniedException - in case the current Subject is not allowed to access the requested Workspace
NoSuchWorkspaceException - If the named workspace does not exist.
RepositoryException - in any other exceptional state


Copyright © 1993-2011 Day Management AG. All Rights Reserved.