Class AmetysSession
java.lang.Object
org.apache.jackrabbit.commons.AbstractSession
org.apache.jackrabbit.core.SessionImpl
org.apache.jackrabbit.core.XASessionImpl
org.ametys.plugins.repository.provider.AmetysSession
- All Implemented Interfaces:
javax.jcr.Session,XAResource,JackrabbitSession,XASession,IdentifierResolver,NamePathResolver,NameResolver,PathResolver,NamespaceResolver,SessionExtensions
Implementation of a JCR Session that is poolable.
The logout method actually bring the Session back into the pool.
The logout method actually bring the Session back into the pool.
-
Field Summary
Fields inherited from class org.apache.jackrabbit.core.XASessionImpl
SYSTEM_PROPERTY_DEFAULT_TRANSACTION_TIMEOUTFields inherited from class org.apache.jackrabbit.core.SessionImpl
attributes, AUTO_FIX_CORRUPTIONS, context, DISABLE_CLUSTER_SYNC_ON_REFRESH, listeners, loginContext, namePathResolver, repositoryContext, subject, userId, versionMgrFields 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_PROPERTYFields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Constructor Summary
ConstructorsModifierConstructorDescriptionAmetysSession(RepositoryContext repositoryCtx, Subject sub, WorkspaceConfig wspConfig) Create a new Session.protectedAmetysSession(RepositoryContext repositoryCtx, AuthContext loginCtx, WorkspaceConfig wspConfig) Create a new Session. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogout this Session without calling the LogoutManager.voidlogout()Methods inherited from class org.apache.jackrabbit.core.XASessionImpl
associate, commit, createVersionManager, end, forget, getTransactionTimeout, getXAResource, isSameRM, prepare, recover, rollback, setTransactionTimeout, startMethods inherited from class org.apache.jackrabbit.core.SessionImpl
addListener, addLockToken, autoFixCorruptions, checkFormat, checkPermission, clusterSyncOnRefresh, createAccessManager, createDataStoreGarbageCollector, createItemManager, createObservationManager, createSession, createSessionItemStateManager, finalize, getAccessControlManager, getAccessManager, getAttribute, getAttributeNames, getHierarchyManager, getImportContentHandler, getInternalVersionManager, getItem, getItemManager, getItemOrNull, getJCRName, getJCRPath, getLocks, getLockTokens, getNode, getNodeById, getNodeByIdentifier, getNodeByUUID, getNodeOrNull, getNodeTypeManager, getPath, getPrefix, getPrincipalManager, getProperty, getPropertyOrNull, getQName, getQPath, getQPath, getRepository, getRetentionManager, getRetentionRegistry, getRootNode, getSubject, getURI, getUserID, getUserManager, getValueFactory, getWorkspace, hasCapability, hasPendingChanges, hasPermission, hasPermission, impersonate, isAdmin, isLive, isSystem, itemExists, move, nodeExists, notifyLoggedOut, notifyLoggingOut, propertyExists, refresh, removeItem, removeListener, removeLockToken, retrieveUserId, save, setAttribute, setNamespacePrefix, toStringMethods inherited from class org.apache.jackrabbit.commons.AbstractSession
exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, importXMLMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.api.JackrabbitSession
getParentOrNullMethods 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, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
-
Constructor Details
-
AmetysSession
protected AmetysSession(RepositoryContext repositoryCtx, AuthContext loginCtx, WorkspaceConfig wspConfig) throws javax.jcr.AccessDeniedException, javax.jcr.RepositoryException Create a new Session.- Parameters:
repositoryCtx- repository contextloginCtx- login context containing authenticated subjectwspConfig- workspace configuration- Throws:
javax.jcr.AccessDeniedException- if the given subject is not granted access to the specified workspacejavax.jcr.RepositoryException- if another error occurs
-
AmetysSession
public AmetysSession(RepositoryContext repositoryCtx, Subject sub, WorkspaceConfig wspConfig) throws javax.jcr.AccessDeniedException, javax.jcr.RepositoryException Create a new Session.- Parameters:
repositoryCtx- repository contextsub- authenticated subjectwspConfig- workspace configuration- Throws:
javax.jcr.AccessDeniedException- if the given subject is not granted access to the specified workspacejavax.jcr.RepositoryException- if another error occurs
-
-
Method Details
-
logout
- Specified by:
logoutin interfacejavax.jcr.Session- Overrides:
logoutin classXASessionImpl
-
forceLogout
Logout this Session without calling the LogoutManager.
-