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.UnsupportedEncodingException
de.innovationgate.webgate.api.WGAPIException
public void readStates(WGACore core) throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
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 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
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
public java.util.Set<java.lang.String> getProcessIdsSentByClient()
public TMLPortletState deserializePortletState(java.lang.String str) throws java.io.IOException
java.io.IOException
public java.lang.String serializePortletState(TMLPortletState state) throws java.io.IOException
java.io.IOException
public boolean isStoreSessionVarsAtState()
TMLPortletStateStorage
TMLPortletState
object.
Otherwise they are stored at accompanying TMLFormProcessContext
objects on the server.isStoreSessionVarsAtState
in interface TMLPortletStateStorage