Package 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 org.apache.jackrabbit.api.JackrabbitSession
ACTION_ADD_PROPERTY, ACTION_LOCKING, ACTION_MODIFY_ACCESS_CONTROL, ACTION_MODIFY_PROPERTY, ACTION_NODE_TYPE_MANAGEMENT, ACTION_READ_ACCESS_CONTROL, ACTION_REMOVE_NODE, ACTION_REMOVE_PROPERTY, ACTION_USER_MANAGEMENT, ACTION_VERSIONING
-
Fields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CRXExportHandler
getExportHandler()
Returns the export handlerCRXImportHandler
getImportHandler()
Returns the import handlerCRXSession
getSession(java.lang.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
getItemOrNull, getNodeOrNull, getParentOrNull, getPrincipalManager, getPropertyOrNull, getUserManager, hasPermission
-
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
-
Methods inherited from interface org.apache.jackrabbit.api.XASession
getXAResource
-
-
-
-
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(java.lang.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 WorkspaceNoSuchWorkspaceException
- If the named workspace does not exist.RepositoryException
- in any other exceptional state
-
-