| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletSession
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 concrete portlet instance.
Method Summary | |
---|---|
java.lang.Object | getAttribute(java.lang.String name)
Deprecated. Returns the value of the attribute with the given name, or null if no attribute with the given name exists. |
java.util.Enumeration | getAttributeNames()
Deprecated. Returns an enumeration of names of all attributes available to this session. |
long | getCreationTime()
Deprecated. Returns the point of time that this session was created. |
long | getLastAccessedTime()
Deprecated. Returns the point of time that this session was last accessed. |
User | getUser()
Deprecated. use portletRequest.getUser() since version 1.1 |
void | invalidate()
Deprecated. This method is inherited from the HttpSession interface, but exhibits a different behavior for a portlet session. |
void | removeAttribute(java.lang.String name)
Deprecated. Removes the attribute with the given name. |
void | setAttribute(java.lang.String name,
java.lang.Object value)
Deprecated. Associates an attribute with the given name and value with this session. |
Method Detail |
---|
User getUser()
If the user has not logged in or does not grant access to the portlet, this method returns null.
long getCreationTime()
long getLastAccessedTime()
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.
java.lang.Object getAttribute(java.lang.String name)
java.util.Enumeration getAttributeNames()
void removeAttribute(java.lang.String name)
void invalidate()
This method removes all session attributes of the portlet and calls the PortletSessionListener.logout method, but does not actually invalidate the session object; later access to the session is not guaranteed to cause an exception. Within the same user session, the login and logout methods of the portlet will not be called again, even if a new PortletSession is created.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |