public interface WGPortletItemStorage
WGTransientPortlets| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getItemNames(WGTransientPortlet portlet)
Returns all names of items stored for this portlet
|
java.lang.Object |
getItemValue(WGTransientPortlet portlet,
java.lang.String name)
Returns the value of a stored item for this portlet
|
boolean |
hasItem(WGTransientPortlet portlet,
java.lang.String name)
Returns if an item of the given name is stored for this portlet
|
void |
prepareNewProfile(WGUserProfile profile)
Callback after a new user profile is created
|
void |
preSaveProfile(WGUserProfile profile)
Callback before the user profile is saved
|
void |
pushData(WGPortletItemStorage targetStorage)
Pushes all persistent item storage data from all portlets to the given target storage
|
void |
receiveData(PortletItemStorageData p)
Receives the item storage data for a single portlet and stores it to its own storage
|
void |
removeItem(WGTransientPortlet portlet,
java.lang.String name)
Removes a stored item from this portlet
|
void |
setItemValue(WGTransientPortlet portlet,
java.lang.String name,
java.lang.Object value)
Sets stored item for this portlet
|
void preSaveProfile(WGUserProfile profile) throws WGAPIException
profile - WGAPIExceptionjava.util.List<java.lang.String> getItemNames(WGTransientPortlet portlet) throws WGAPIException
portlet - WGAPIExceptionboolean hasItem(WGTransientPortlet portlet, java.lang.String name) throws WGAPIException
portlet - name - WGAPIExceptionjava.lang.Object getItemValue(WGTransientPortlet portlet, java.lang.String name) throws WGAPIException
portlet - name - WGAPIExceptionvoid setItemValue(WGTransientPortlet portlet, java.lang.String name, java.lang.Object value) throws WGAPIException
portlet - name - value - WGAPIExceptionvoid removeItem(WGTransientPortlet portlet, java.lang.String name) throws WGAPIException
portlet - name - WGAPIExceptionvoid prepareNewProfile(WGUserProfile profile) throws WGAPIException
profile - WGAPIExceptionvoid pushData(WGPortletItemStorage targetStorage) throws WGAPIException
targetStorage - WGAPIExceptionvoid receiveData(PortletItemStorageData p) throws WGAPIException
p - WGAPIException