Class UserSession

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.event.IEventSink, org.apache.wicket.feedback.IFeedbackContributor, org.apache.wicket.IMetadataContext<Serializable,​org.apache.wicket.Session>, org.apache.wicket.util.io.IClusterable

    public abstract class UserSession
    extends org.apache.wicket.protocol.http.WebSession
    A Wicket Session that maintains a reference to a JCR Session. It is available to plugins as a threadlocal variable during request processing.

    When the Wicket session is no longer referenced, the JCR session model is detached.

    See Also:
    Serialized Form
    • Constructor Detail

      • UserSession

        public UserSession​(org.apache.wicket.request.Request request)
    • Method Detail

      • get

        public static UserSession get()
        Returns the current session, or if there is no current session, creates one.
      • getClassLoader

        public abstract ClassLoader getClassLoader()
      • getQueryManager

        public abstract javax.jcr.query.QueryManager getQueryManager()
      • getWorkflowManager

        public abstract WorkflowManager getWorkflowManager()
      • getObservationManager

        public abstract javax.jcr.observation.ObservationManager getObservationManager()
      • getRootNode

        public abstract HippoNode getRootNode()
      • logout

        public abstract void logout()
      • getJcrSession

        public abstract HippoSession getJcrSession()
      • releaseJcrSession

        public abstract void releaseJcrSession()
      • getApplicationName

        public abstract String getApplicationName()
      • getHippoRepository

        public abstract HippoRepository getHippoRepository()
                                                    throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getTimeZone

        public TimeZone getTimeZone()