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:
Session
,XAResource
,JackrabbitSession
,XASession
,IdentifierResolver
,NamePathResolver
,NameResolver
,PathResolver
,NamespaceResolver
,SessionExtensions
public class AmetysSession extends XASessionImpl
Implementation of a JCR Session that is poolable.
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_TIMEOUT
-
Fields inherited from class org.apache.jackrabbit.core.SessionImpl
attributes, AUTO_FIX_CORRUPTIONS, context, DISABLE_CLUSTER_SYNC_ON_REFRESH, listeners, loginContext, namePathResolver, repositoryContext, subject, userId, versionMgr
-
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
-
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
-
Constructor Summary
Constructors Modifier Constructor Description AmetysSession(RepositoryContext repositoryCtx, Subject sub, WorkspaceConfig wspConfig)
Create a new Session.protected
AmetysSession(RepositoryContext repositoryCtx, AuthContext loginCtx, WorkspaceConfig wspConfig)
Create a new Session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceLogout()
Logout this Session without calling the LogoutManager.void
logout()
-
Methods inherited from class org.apache.jackrabbit.core.XASessionImpl
associate, commit, createVersionManager, end, forget, getTransactionTimeout, getXAResource, isSameRM, prepare, recover, rollback, setTransactionTimeout, start
-
Methods 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, toString
-
Methods inherited from class org.apache.jackrabbit.commons.AbstractSession
exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, importXML
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
-
-
-
-
Constructor Detail
-
AmetysSession
protected AmetysSession(RepositoryContext repositoryCtx, AuthContext loginCtx, WorkspaceConfig wspConfig) throws AccessDeniedException, RepositoryException
Create a new Session.- Parameters:
repositoryCtx
- repository contextloginCtx
- login context containing authenticated subjectwspConfig
- workspace configuration- Throws:
AccessDeniedException
- if the given subject is not granted access to the specified workspaceRepositoryException
- if another error occurs
-
AmetysSession
public AmetysSession(RepositoryContext repositoryCtx, Subject sub, WorkspaceConfig wspConfig) throws AccessDeniedException, RepositoryException
Create a new Session.- Parameters:
repositoryCtx
- repository contextsub
- authenticated subjectwspConfig
- workspace configuration- Throws:
AccessDeniedException
- if the given subject is not granted access to the specified workspaceRepositoryException
- if another error occurs
-
-
Method Detail
-
logout
public void logout()
- Specified by:
logout
in interfaceSession
- Overrides:
logout
in classXASessionImpl
-
forceLogout
public void forceLogout()
Logout this Session without calling the LogoutManager.
-
-