Package org.hippoecm.hst.core.jcr
Interface LazySession
-
- All Superinterfaces:
HippoSession
,javax.jcr.Session
public interface LazySession extends HippoSession
LazySession interface.- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.jcr.Session
coupledImpersonate(javax.jcr.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
getRefreshPendingAfter()
Returns the pending time millis after when the session should be refreshed.long
lastLoggedIn()
Returns the last logged in time millslong
lastRefreshed()
Returns the last refreshed time millis.void
logoutCoupledImpersonations()
Logs out any impersonated session impersonated viacoupledImpersonate(javax.jcr.Credentials)
from thisLazySession
void
logoutSession()
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 Detail
-
logoutSession
void logoutSession() throws javax.jcr.RepositoryException
Invokes logout() of the underlying session.- Throws:
javax.jcr.RepositoryException
-
coupledImpersonate
javax.jcr.Session coupledImpersonate(javax.jcr.Credentials credentials)
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.
-
-