public class AmetysSession extends XASessionImpl
Modifier and Type | Field and Description |
---|---|
private AmetysRepository |
_repository |
SYSTEM_PROPERTY_DEFAULT_TRANSACTION_TIMEOUT
attributes, AUTO_FIX_CORRUPTIONS, context, DISABLE_CLUSTER_SYNC_ON_REFRESH, listeners, loginContext, namePathResolver, repositoryContext, subject, userId, versionMgr
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
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
Modifier | Constructor and Description |
---|---|
protected |
AmetysSession(RepositoryContext repositoryCtx,
AuthContext loginCtx,
WorkspaceConfig wspConfig)
Create a new Session.
|
|
AmetysSession(RepositoryContext repositoryCtx,
Subject sub,
WorkspaceConfig wspConfig)
Create a new Session.
|
Modifier and Type | Method and Description |
---|---|
void |
forceLogout()
Logout this Session without calling the LogoutManager.
|
void |
logout() |
associate, commit, createVersionManager, end, forget, getTransactionTimeout, getXAResource, isSameRM, prepare, recover, rollback, setTransactionTimeout, start
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
exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, importXML
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
private AmetysRepository _repository
protected AmetysSession(RepositoryContext repositoryCtx, AuthContext loginCtx, WorkspaceConfig wspConfig) throws AccessDeniedException, RepositoryException
repositoryCtx
- repository contextloginCtx
- login context containing authenticated subjectwspConfig
- workspace configurationAccessDeniedException
- if the given subject is not granted access
to the specified workspaceRepositoryException
- if another error occurspublic AmetysSession(RepositoryContext repositoryCtx, Subject sub, WorkspaceConfig wspConfig) throws AccessDeniedException, RepositoryException
repositoryCtx
- repository contextsub
- authenticated subjectwspConfig
- workspace configurationAccessDeniedException
- if the given subject is not granted access
to the specified workspaceRepositoryException
- if another error occurspublic void logout()
logout
in interface Session
logout
in class XASessionImpl
public void forceLogout()