com.ibm.wps.portlets.struts
Class PortletDataUserConfigurationDataStore
java.lang.Object
com.ibm.wps.portlets.struts.PortletDataUserConfigurationDataStore
- All Implemented Interfaces:
- com.ibm.struts.data.IUserConfigurationDataStore
- public class PortletDataUserConfigurationDataStore
- extends java.lang.Object
- implements com.ibm.struts.data.IUserConfigurationDataStore
PortletDataUserConfigurationDataStore is an IUserConfigurationDataStore
implementation for use within WebSphere Portal. This implementation will use the
PortletData for storing and retrieving attributes.
- Since:
- 4.2
Fields inherited from interface com.ibm.struts.data.IUserConfigurationDataStore
|
KEY
|
Method Summary
java.util.Map
| get(javax.servlet.http.HttpServletRequest request)
Gets the UserConfigurationData from the data store.
void
| java.util.Map)">put(javax.servlet.http.HttpServletRequest request,
java.util.Map data)
Stores the given user configuration data in the data store.
| | |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
PortletDataUserConfigurationDataStore
public PortletDataUserConfigurationDataStore()
- PortletDataUserConfigurationDataStore constructor.
java.util.Map)">
put
public void put(javax.servlet.http.HttpServletRequest request,
java.util.Map data)
throws java.io.IOException
- Stores the given user configuration data in the data store. This implementation
uses PortletData. The map will be iterated and the map keys will be
set as portlet data.
- Specified by:
- put in interface com.ibm.struts.data.IUserConfigurationDataStore
- Parameters:
- request - the request object
- data - the attributes to save
- Throws:
- java.io.IOException - if data cannot be saved
get
public java.util.Map get(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
- Gets the UserConfigurationData from the data store. All of the portlet
preferences that have been set are returned in the map as name-value pairs.
Changes to the map do not affect the portlet data values.
- Specified by:
- get in interface com.ibm.struts.data.IUserConfigurationDataStore
- Parameters:
- request - used as context object
- Returns:
- returns the stored data map, an empty map is returned if no data was stored
- Throws:
- java.io.IOException - if data cannot be retrieved
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.