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 aSession
exactly the same as viaSession.impersonate(Credentials)
, however keeps a reference to the impersonated session in thisLazySession
such that when invokinglogoutCoupledImpersonations()
all the sessions created by this method get logged out.long
Returns the pending time millis after when the session should be refreshed.long
Returns the last logged in time millslong
Returns the last refreshed time millis.void
Logs out any impersonated session impersonated viacoupledImpersonate(javax.jcr.Credentials)
from thisLazySession
void
Invokes 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, pendingChanges
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, 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
Session
exactly the same as viaSession.impersonate(Credentials)
, however keeps a reference to the impersonated session in thisLazySession
such 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.
-