org.apache.jetspeed.portal
Interface PortletSession


public interface PortletSession

The PortletSession interface allows the portlet to access information across more than one request. Allows, the session provides access to the user profile .

The attributes should be prefixed by the portlet container with a unique indentifier of the portlet.


Method Summary
 java.lang.Object getAttribute(java.lang.String aName)
          Returns the value of the attribute with the given name.
 UserProfile getUserProfile()
          Returns the user profile.
 void removeAttribute(java.lang.String aName)
          Removes the attribute with the given name.
 void setAttribute(java.lang.String aName, java.lang.Object aValue)
          Sets the an attribute with the given name and value.
 

Method Detail

getUserProfile

public UserProfile getUserProfile()
Returns the user profile.
Returns:
the user profile

setAttribute

public void setAttribute(java.lang.String aName,
                         java.lang.Object aValue)
Sets the an attribute with the given name and value.
Parameters:
aName - the attribute name
aName - the attribute value

getAttribute

public java.lang.Object getAttribute(java.lang.String aName)
Returns the value of the attribute with the given name.
Parameters:
aName - the attribute name
Returns:
the attribute value

removeAttribute

public void removeAttribute(java.lang.String aName)
Removes the attribute with the given name.
Parameters:
aName - the attribute name