public interface LazySession
extends org.hippoecm.repository.api.HippoSession
Modifier and Type | Method and Description |
---|---|
javax.jcr.Session |
coupledImpersonate(javax.jcr.Credentials credentials)
Returns a
Session exactly the same as via Session.impersonate(Credentials) , however keeps
a reference to the impersonated session in this LazySession such that when invoking
logoutCoupledImpersonations() 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 mills
|
long |
lastRefreshed()
Returns the last refreshed time millis.
|
void |
logoutCoupledImpersonations()
Logs out any impersonated session impersonated via
coupledImpersonate(javax.jcr.Credentials) from this LazySession |
void |
logoutSession()
Invokes logout() of the underlying session.
|
copy, createSecurityDelegate, disableVirtualLayers, exportDereferencedView, exportDereferencedView, exportEnhancedSystemViewPackage, getSessionClassLoader, getUser, getWorkspace, getXAResource, importEnhancedSystemViewXML, isSystemSession, isUserInRole, localRefresh, pendingChanges, pendingChanges, pendingChanges
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
void logoutSession() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.Session coupledImpersonate(javax.jcr.Credentials credentials)
Returns a Session
exactly the same as via Session.impersonate(Credentials)
, however keeps
a reference to the impersonated session in this LazySession
such that when invoking
logoutCoupledImpersonations()
all the sessions created by this method get logged out.
credentials
- the credentials to impersonate fromSession
void logoutCoupledImpersonations()
coupledImpersonate(javax.jcr.Credentials)
from this LazySession
long lastRefreshed()
long lastLoggedIn()
long getRefreshPendingAfter()
Copyright © 2008–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.