public abstract class UserSession
extends org.apache.wicket.protocol.http.WebSession
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.
Constructor and Description |
---|
UserSession(org.apache.wicket.request.Request request) |
Modifier and Type | Method and 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 org.hippoecm.repository.HippoRepository |
getHippoRepository() |
abstract org.hippoecm.repository.api.HippoSession |
getJcrSession() |
abstract javax.jcr.observation.ObservationManager |
getObservationManager() |
abstract javax.jcr.query.QueryManager |
getQueryManager() |
abstract org.hippoecm.repository.api.HippoNode |
getRootNode() |
TimeZone |
getTimeZone() |
abstract org.hippoecm.repository.api.WorkflowManager |
getWorkflowManager() |
abstract void |
login(String username,
String password) |
abstract void |
logout() |
abstract void |
releaseJcrSession() |
getClientInfo, invalidate, newBrowserInfoPage
bind, clear, debug, detach, dirty, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
public static UserSession get()
public abstract ClassLoader getClassLoader()
public abstract javax.jcr.query.QueryManager getQueryManager()
public abstract org.hippoecm.repository.api.WorkflowManager getWorkflowManager()
public abstract javax.jcr.observation.ObservationManager getObservationManager()
public abstract IFacetRootsObserver getFacetRootsObserver()
public abstract org.hippoecm.repository.api.HippoNode getRootNode()
public abstract void login(String username, String password) throws LoginException
LoginException
public abstract void logout()
public abstract org.hippoecm.repository.api.HippoSession getJcrSession()
public abstract void releaseJcrSession()
public abstract String getApplicationName()
public abstract org.hippoecm.repository.HippoRepository getHippoRepository() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public TimeZone getTimeZone()
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.