| java.lang.Object com.caucho.portal.generic.AbstractPreferencesStore
AbstractPreferencesStore | abstract public class AbstractPreferencesStore implements PreferencesStore(Code) | | Abstract base class for implementations that load and save preferences.
|
Method Summary | |
public void | addDefault(String name, String value) | public void | addDefault(NameValuePair nameValuePair) | public void | addNameLink(String name, String link) Add a link such that when the portlet uses the preferences name,
the name that is used with the store is link. | public void | addNameLink(NameLink nameLink) | public void | finish(Map<String, String[]> preferencesMap) | public Map<String, String[]> | getPreferencesMap(PortletRequest request, String namespace) | abstract protected Map<String, String[]> | load(PortletRequest request, String namespace) Load the user preferences, called once for each connection. | abstract protected void | save(Map<String, String[]> storeMap, Map<String, String[]> updateMap) Called just before unload() if the preferences have been updated.
The updateMap contains only entries that have changed. | abstract protected void | unload(Map<String, String[]> map) Called when the connection is complete. |
addNameLink | public void addNameLink(String name, String link)(Code) | | Add a link such that when the portlet uses the preferences name,
the name that is used with the store is link.
|
load | abstract protected Map<String, String[]> load(PortletRequest request, String namespace) throws IOException(Code) | | Load the user preferences, called once for each connection.
Implementing classes use the request to determine the identity
of the user.
a Map of all the user preferences that areavailable for the user identified by request, nullif no preferences are available. |
save | abstract protected void save(Map<String, String[]> storeMap, Map<String, String[]> updateMap) throws IOException(Code) | | Called just before unload() if the preferences have been updated.
The updateMap contains only entries that have changed. Entries with a
value of DELETE are meant to be deleted from the store.
Parameters: storeMap - the map returned by load() Parameters: updateMap - the map containing the updates throws: UnsupportedOperationException - if the implementation does notsupport updates to preferences. |
unload | abstract protected void unload(Map<String, String[]> map)(Code) | | Called when the connection is complete.
A call to unload() is not guaranteed to occur for every connection,
if an error occurs when processing a request unload() may never be called.
Parameters: isModified - true if the map has been changed |
|
|