public class TMLPortletStateTransientStorage extends java.lang.Object implements TMLPortletStateStorage
| Modifier and Type | Class and Description |
|---|---|
static class |
TMLPortletStateTransientStorage.TMLPortletStateTypeAdapterFactory |
| Constructor and Description |
|---|
TMLPortletStateTransientStorage(WGACore core,
de.innovationgate.webgate.api.WGUserProfile wgUserProfile,
javax.servlet.http.HttpServletRequest req,
TMLForm.MultipartFormData formData,
boolean ajaxRequest) |
| Modifier and Type | Method and Description |
|---|---|
TMLPortletState |
deserializePortletState(java.lang.String str) |
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
|
java.util.Collection<TMLPortletState> |
getAllStates() |
java.util.Set<java.lang.String> |
getDisposedStates() |
java.util.Set<java.lang.String> |
getProcessIdsSentByClient() |
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. |
boolean |
isTransient() |
void |
readStates(WGACore core) |
java.lang.String |
serializePortletState(TMLPortletState state) |
public TMLPortletStateTransientStorage(WGACore core, de.innovationgate.webgate.api.WGUserProfile wgUserProfile, javax.servlet.http.HttpServletRequest req, TMLForm.MultipartFormData formData, boolean ajaxRequest) throws java.io.UnsupportedEncodingException, de.innovationgate.webgate.api.WGAPIException
java.io.UnsupportedEncodingExceptionde.innovationgate.webgate.api.WGAPIExceptionpublic void readStates(WGACore core) throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGExceptionpublic TMLPortletState getState(TMLPortlet portlet) throws de.innovationgate.webgate.api.WGAPIException
TMLPortletStateStoragegetState in interface TMLPortletStateStoragede.innovationgate.webgate.api.WGAPIExceptionpublic void disposeState(java.lang.String appDb,
java.lang.String portletKey)
TMLPortletStateStoragedisposeState in interface TMLPortletStateStorageappDb - App id of the portlet, like given from the portlet registryportletKey - Key of the portletpublic java.util.Collection<TMLPortletState> getAllStates()
public boolean isTransient()
public java.util.Set<java.lang.String> getDisposedStates()
public void disposeChildState(java.lang.String appDb,
java.lang.String portletKey,
java.lang.String childName)
throws de.innovationgate.webgate.api.WGAPIException
TMLPortletStateStoragedisposeChildState in interface TMLPortletStateStorageappDb - 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.WGAPIExceptionpublic java.util.Set<java.lang.String> getProcessIdsSentByClient()
public TMLPortletState deserializePortletState(java.lang.String str) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String serializePortletState(TMLPortletState state) throws java.io.IOException
java.io.IOExceptionpublic boolean isStoreSessionVarsAtState()
TMLPortletStateStorageTMLPortletState object.
Otherwise they are stored at accompanying TMLFormProcessContext objects on the server.isStoreSessionVarsAtState in interface TMLPortletStateStorage