Package com.day.crx
Interface CRXSession
- All Superinterfaces:
JackrabbitSession,Session,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_VERSIONINGFields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionReturns the export handlerReturns the import handlergetSession(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, hasPermissionMethods 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, setNamespacePrefixMethods inherited from interface org.apache.jackrabbit.api.XASession
getXAResource
-
Method Details
-
getExportHandler
Returns the export handler- Returns:
- the export handler
- Throws:
RepositoryException
-
getImportHandler
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 WorkspaceNoSuchWorkspaceException- If the named workspace does not exist.RepositoryException- in any other exceptional state
-