| java.lang.Object com.caucho.portal.generic.AbstractUserAttributeStore
AbstractUserAttributeStore | abstract public class AbstractUserAttributeStore implements UserAttributeStore(Code) | | Abstract base class for implementations that load user attributes.
|
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 attributename, the
name that is used with the store is link. | public void | addNameLink(NameLink nameLink) | public void | finish(Map<String, String> userAttributeMap) | public Map<String, String> | getUserAttributeMap(PortletRequest request, Set<String> names) | abstract protected Map<String, String> | load(PortletRequest request) Load the user attributes, called once for each connection. | abstract protected void | save(Map<String, String> storeMap, Map<String, String> updateMap) Called just before unload() if the attributes 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 attributename, the
name that is used with the store is link.
|
load | abstract protected Map<String, String> load(PortletRequest request) throws IOException(Code) | | Load the user attributes, called once for each connection.
Implementing classes use the request to determine the identity
of the user.
a Map of all the user attribute names that areavailable for the user identified by request, nullif no attributes are available. |
save | abstract protected void save(Map<String, String> storeMap, Map<String, String> updateMap) throws IOException(Code) | | Called just before unload() if the attributes 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 user attributes. |
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 |
|
|