Package org.hippoecm.frontend.session
Class UserSession
- java.lang.Object
-
- org.apache.wicket.Session
-
- org.apache.wicket.protocol.http.WebSession
-
- org.hippoecm.frontend.session.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 WicketSession
that maintains a reference to a JCRSession
. 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 Summary
Constructors Constructor Description UserSession(org.apache.wicket.request.Request request)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static UserSession
get()
Returns the current session, or if there is no current session, creates one.abstract String
getApplicationName()
abstract ClassLoader
getClassLoader()
abstract IFacetRootsObserver
getFacetRootsObserver()
abstract HippoRepository
getHippoRepository()
abstract HippoSession
getJcrSession()
abstract ObservationManager
getObservationManager()
abstract QueryManager
getQueryManager()
abstract HippoNode
getRootNode()
TimeZone
getTimeZone()
abstract WorkflowManager
getWorkflowManager()
abstract void
login(String username, String password)
abstract void
logout()
abstract void
releaseJcrSession()
-
Methods inherited from class org.apache.wicket.protocol.http.WebSession
generateNewSessionId, getClientInfo, invalidate, newBrowserInfoPage
-
Methods inherited from class org.apache.wicket.Session
bind, changeSessionId, clear, debug, detach, dirty, dirty, endRequest, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isRtlLanguage, isRtlLocale, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
-
-
-
-
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 QueryManager getQueryManager()
-
getWorkflowManager
public abstract WorkflowManager getWorkflowManager()
-
getObservationManager
public abstract ObservationManager getObservationManager()
-
getFacetRootsObserver
public abstract IFacetRootsObserver getFacetRootsObserver()
-
getRootNode
public abstract HippoNode getRootNode()
-
login
public abstract void login(String username, String password) throws LoginException
- Throws:
LoginException
-
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 RepositoryException
- Throws:
RepositoryException
-
getTimeZone
public TimeZone getTimeZone()
-
-