public class TMLPortletStateSessionStorage extends java.lang.Object implements TMLPortletStateStorage
Constructor and Description |
---|
TMLPortletStateSessionStorage(javax.servlet.http.HttpSession ses) |
Modifier and Type | Method and Description |
---|---|
void |
disposeChildState(java.lang.String appDb,
java.lang.String portletKey,
java.lang.String childName)
Removes the state of a child portlet of addressed portlet from the storage, based on its name.
|
void |
disposeState(java.lang.String appDb,
java.lang.String portletKey)
Removes the state of the addressed portlet from the storage
|
TMLPortletState |
getState(TMLPortlet portlet)
Retrieves the state for the given portlet
|
boolean |
isStoreSessionVarsAtState()
Returns if portlet states in this storage should store their session vars at the
TMLPortletState object. |
public TMLPortletStateSessionStorage(javax.servlet.http.HttpSession ses)
public TMLPortletState getState(TMLPortlet portlet) throws de.innovationgate.webgate.api.WGAPIException
TMLPortletStateStorage
getState
in interface TMLPortletStateStorage
de.innovationgate.webgate.api.WGAPIException
public void disposeState(java.lang.String appDb, java.lang.String portletKey)
TMLPortletStateStorage
disposeState
in interface TMLPortletStateStorage
appDb
- App id of the portlet, like given from the portlet registryportletKey
- Key of the portletpublic boolean isStoreSessionVarsAtState()
TMLPortletStateStorage
TMLPortletState
object.
Otherwise they are stored at accompanying TMLFormProcessContext
objects on the server.isStoreSessionVarsAtState
in interface TMLPortletStateStorage
public void disposeChildState(java.lang.String appDb, java.lang.String portletKey, java.lang.String childName) throws de.innovationgate.webgate.api.WGAPIException
TMLPortletStateStorage
disposeChildState
in interface TMLPortletStateStorage
appDb
- App id of the portlet, like given from the portlet registryportletKey
- Key of the parent portletchildName
- Name of the child portlet whose state is to be droppedde.innovationgate.webgate.api.WGAPIException