public interface WGPortletItemStorage
WGTransientPortlet
sModifier 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
- WGAPIException
java.util.List<java.lang.String> getItemNames(WGTransientPortlet portlet) throws WGAPIException
portlet
- WGAPIException
boolean hasItem(WGTransientPortlet portlet, java.lang.String name) throws WGAPIException
portlet
- name
- WGAPIException
java.lang.Object getItemValue(WGTransientPortlet portlet, java.lang.String name) throws WGAPIException
portlet
- name
- WGAPIException
void setItemValue(WGTransientPortlet portlet, java.lang.String name, java.lang.Object value) throws WGAPIException
portlet
- name
- value
- WGAPIException
void removeItem(WGTransientPortlet portlet, java.lang.String name) throws WGAPIException
portlet
- name
- WGAPIException
void prepareNewProfile(WGUserProfile profile) throws WGAPIException
profile
- WGAPIException
void pushData(WGPortletItemStorage targetStorage) throws WGAPIException
targetStorage
- WGAPIException
void receiveData(PortletItemStorageData p) throws WGAPIException
p
- WGAPIException