Interface CmsContextService
public interface CmsContextService
-
Method Summary
Modifier and TypeMethodDescriptionattachSessionContext
(String ctxId, jakarta.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 attributeCmsSessionContext.SESSION_KEY
.getId()
Returns the unique identifier for this servicegetSessionContext
(String ctxId) Returns the CmsSessionContext by its unique id
-
Method Details
-
getId
String getId()Returns the unique identifier for this service -
getSessionContext
Returns the CmsSessionContext by its unique id- Parameters:
ctxId
- The id for the CmsSessionContext to return- Returns:
- the CmsSessionContext
-
attachSessionContext
Creates a new CmsSessionContext attached to an existing (CMS Application HttpSession based) CmsSessionContext and stores it in the provided HttpSession under attributeCmsSessionContext.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.
- Parameters:
ctxId
- Id for the CmsSessionContext to attach a new CmsSessionContext tosession
- The HttpSession in which to bind the new attached CmsSessionContext- Returns:
- the attached CmsSessionContext, also bound to the provided HttpSession attribute
CmsSessionContext.SESSION_KEY
-