|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortletSession
holds the user-specific data that
the portlet needs to personalize the one global portlet instance.
Together with the portlet, the portlet session constitutes the
virtual instance of the portlet.
Portlet
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the attribute with the given name, or null if no attribute with the given name exists. |
java.util.Enumeration |
getAttributeNames()
Returns an enumeration of names of all attributes available to this session. |
long |
getCreationTime()
Returns the point of time that this session was created. |
long |
getLastAccessedTime()
Returns the point of time that this session was last accessed. |
User |
getUser()
Returns the user object. |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the given name. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Associates an attribute with the given name and value with this session. |
Method Detail |
public User getUser()
public long getCreationTime()
public long getLastAccessedTime()
public void setAttribute(java.lang.String name, java.lang.Object value)
The portlet provider should take care that the the namespace of attribute names is not unnecessarily polluted. It is recommended to prefix all attributes the package and class name of the portlet that makes use of this method.
name
- the attribute namevalue
- the attribute valuepublic java.lang.Object getAttribute(java.lang.String name)
null
if no attribute with the given name exists.
name
- the attribute name
public java.util.Enumeration getAttributeNames()
public void removeAttribute(java.lang.String name)
name
- the name of attribute to be removed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |