Package org.hippoecm.hst.core.jcr
Interface LazySession
- All Superinterfaces:
HippoSession,Session
LazySession interface.
- Version:
- $Id$
-
Field Summary
Fields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptioncoupledImpersonate(Credentials credentials) Returns aSessionexactly the same as viaSession.impersonate(Credentials), however keeps a reference to the impersonated session in thisLazySessionsuch that when invokinglogoutCoupledImpersonations()all the sessions created by this method get logged out.longReturns the pending time millis after when the session should be refreshed.longReturns the last logged in time millslongReturns the last refreshed time millis.voidLogs out any impersonated session impersonated viacoupledImpersonate(javax.jcr.Credentials)from thisLazySessionvoidInvokes logout() of the underlying session.Methods inherited from interface org.hippoecm.repository.api.HippoSession
copy, createSecurityDelegate, disableVirtualLayers, exportDereferencedView, exportDereferencedView, exportEnhancedSystemViewPackage, getSessionClassLoader, getUser, getWorkspace, getXAResource, importEnhancedSystemViewXML, isSystemSession, isUserInRole, localRefresh, pendingChanges, pendingChanges, pendingChangesMethods 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, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
-
Method Details
-
logoutSession
Invokes logout() of the underlying session.- Throws:
RepositoryException
-
coupledImpersonate
Returns a
Sessionexactly the same as viaSession.impersonate(Credentials), however keeps a reference to the impersonated session in thisLazySessionsuch that when invokinglogoutCoupledImpersonations()all the sessions created by this method get logged out.- Parameters:
credentials- the credentials to impersonate from- Returns:
- new impersonated
Session
-
logoutCoupledImpersonations
void logoutCoupledImpersonations()Logs out any impersonated session impersonated viacoupledImpersonate(javax.jcr.Credentials)from thisLazySession -
lastRefreshed
long lastRefreshed()Returns the last refreshed time millis. -
lastLoggedIn
long lastLoggedIn()Returns the last logged in time mills -
getRefreshPendingAfter
long getRefreshPendingAfter()Returns the pending time millis after when the session should be refreshed.
-