|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The PortletData contains information about the concrete portlet
instance for a given user. Also, it is through the data that the portlet has
access to the personalized data.
| Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of an attribute or null if no such attribute exists |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
Returns the value of an attribute |
java.util.Enumeration |
getAttributeNames()
Returns the names of all the attribute |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the given name. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attribute with the given name and value |
void |
store()
Store all the attributes |
| Method Detail |
public java.lang.String getAttribute(java.lang.String name)
null if no such attribute exists
name - name of the attribute
public java.lang.String getAttribute(java.lang.String name,
java.lang.String defaultValue)
name - name of the attributedefaultValue - value to return the attribute doesn't exists
public java.util.Enumeration getAttributeNames()
public void removeAttribute(java.lang.String name)
throws AccessDeniedException
name - name of the attribute to remove
AccessDeniedException
public void setAttribute(java.lang.String name,
java.lang.String value)
name - name of the attributevalue - value
public void store()
throws AccessDeniedException,
PortletException
AccessDeniedException - if the caller isn't authorized to access this data object
PortletException - if any other error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||