Interface LazySession

  • All Superinterfaces:
    HippoSession, javax.jcr.Session

    public interface LazySession
    extends HippoSession
    LazySession interface.
    Version:
    $Id$
    • 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 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.

        Parameters:
        credentials - the credentials to impersonate from
        Returns:
        new impersonated Session
      • 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.