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 HippoRepository |
getHippoRepository() |
abstract javax.jcr.Session |
getJcrSession() |
abstract javax.jcr.observation.ObservationManager |
getObservationManager() |
abstract javax.jcr.query.QueryManager |
getQueryManager() |
abstract HippoNode |
getRootNode() |
TimeZone |
getTimeZone() |
abstract WorkflowManager |
getWorkflowManager() |
abstract void |
login(String username,
String password) |
abstract void |
logout() |
abstract void |
releaseJcrSession() |
getClientInfo, invalidate, newBrowserInfoPage
bind, cleanupFeedbackMessages, 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, isCurrentRequestValid, 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 WorkflowManager getWorkflowManager()
public abstract javax.jcr.observation.ObservationManager getObservationManager()
public abstract IFacetRootsObserver getFacetRootsObserver()
public abstract HippoNode getRootNode()
public abstract void login(String username, String password) throws LoginException
LoginException
public abstract void logout()
public abstract javax.jcr.Session getJcrSession()
public abstract void releaseJcrSession()
public abstract String getApplicationName()
public abstract HippoRepository getHippoRepository() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public TimeZone getTimeZone()
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.