Defines a session object at the consumer-side
to store remote portlet related information that
are needed to interact with the portlet.
Since a session context is not mandatory in WSRP
a consumer portlet instance key is taken to
uniquely identify a portlet session.
getPortletWindowSession(String windowID) Get the SimplePortletWindowSession of the portlet window with the given ID.
Parameters: windowID - The ID of the portlet window The PorletWindowSession with the given ID.
removePortletWindowSession(String windowID) Remove the porlet window session with the given window id.
Parameters: windowID - The ObjectID of the portlet window whichs session shoul dbe removed The portlet window session which has been removed or null if the session did not exist.
public void
setPortletHandle(String portletHandle) Set the portlet handle of the portlet
this session belongs to.
Get the SimplePortletWindowSession of the portlet window with the given ID.
Parameters: windowID - The ID of the portlet window The PorletWindowSession with the given ID.
Get the WSRP session context of
the portlet instance. If no session context was set
from the producer this method returns null.
The the session context if set from the producer or null otherwise.
removeAllPortletWindowSessions
public void removeAllPortletWindowSessions()(Code)
Remove all portlet window sessions which belong to this portlet session.
Remove the porlet window session with the given window id.
Parameters: windowID - The ObjectID of the portlet window whichs session shoul dbe removed The portlet window session which has been removed or null if the session did not exist.
setPortletHandle
public void setPortletHandle(String portletHandle)(Code)
Set the portlet handle of the portlet
this session belongs to.
Parameters: portletHandle - The portlet handle