public interface CmsContextService
Modifier and Type | Method and Description |
---|---|
CmsSessionContext |
attachSessionContext(String ctxId,
javax.servlet.http.HttpSession session)
Creates a new CmsSessionContext attached to an existing (CMS Application HttpSession based) CmsSessionContext and
stores it in the provided HttpSession under attribute
CmsSessionContext.SESSION_KEY . |
String |
getId()
Returns the unique identifier for this service
|
CmsSessionContext |
getSessionContext(String ctxId)
Returns the CmsSessionContext by its unique id
|
String getId()
CmsSessionContext getSessionContext(String ctxId)
ctxId
- The id for the CmsSessionContext to returnCmsSessionContext attachSessionContext(String ctxId, javax.servlet.http.HttpSession session)
CmsSessionContext.SESSION_KEY
.
The attached CmsSessionContext will be automatically destroyed and removed from its HttpSession when the underlying CMS application CmsSessionContext is destroyed.
When the provided HttpSession expires or invalidated OR the attached CmsSessionContext is removed from its HttpSession otherwise, the attached CmsSessionContext is automatically destroyed and detached from the underlying CmsSessionContext.
ctxId
- Id for the CmsSessionContext to attach a new CmsSessionContext tosession
- The HttpSession in which to bind the new attached CmsSessionContextCmsSessionContext.SESSION_KEY
Copyright © 2012–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.