org.exoplatform.services.wsrp.consumer.adapters
Class PortletWindowSessionAdapter

java.lang.Object
  extended by org.exoplatform.services.wsrp.consumer.adapters.PortletWindowSessionAdapter
All Implemented Interfaces:
PortletWindowSession

public class PortletWindowSessionAdapter
extends java.lang.Object
implements PortletWindowSession


Constructor Summary
PortletWindowSessionAdapter()
           
 
Method Summary
 MarkupContext getCachedMarkup()
          Get the markup context which has been cached.
 MarkupContext getMarkupContext()
           
 java.lang.String getNavigationalState()
           
 PortletSession getPortletSession()
          Get the portlet session this window session belongs to.
 java.lang.String getWindowID()
          Get the ID of the portlets window this session belongs to.
 void setMarkupContext(MarkupContext markupContext)
           
 void setNavigationalState(java.lang.String navigationalState)
           
 void setPortletSession(PortletSession portletSession)
           
 void setWindowID(java.lang.String windowID)
          Set the ID of the portlets window this sessions belongs to.
 void updateMarkupCache(MarkupContext markupContext)
          Update the cache which holds the markup context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletWindowSessionAdapter

public PortletWindowSessionAdapter()
Method Detail

getWindowID

public java.lang.String getWindowID()
Description copied from interface: PortletWindowSession
Get the ID of the portlets window this session belongs to.

Specified by:
getWindowID in interface PortletWindowSession
Returns:
The ID of the portlet window.

setWindowID

public void setWindowID(java.lang.String windowID)
Description copied from interface: PortletWindowSession
Set the ID of the portlets window this sessions belongs to.

Specified by:
setWindowID in interface PortletWindowSession
Parameters:
windowID - The ID of the portlet window.

getCachedMarkup

public MarkupContext getCachedMarkup()
Description copied from interface: PortletWindowSession
Get the markup context which has been cached. This might be useful to retrieve the markup which was returned performBlockingInteraction calls in order to save an additional getMarkup call.

Specified by:
getCachedMarkup in interface PortletWindowSession
Returns:
The cached markup context or null in case the cache is empty.

updateMarkupCache

public void updateMarkupCache(MarkupContext markupContext)
Description copied from interface: PortletWindowSession
Update the cache which holds the markup context. This might be useful to store the markup which was returned by performBlockingInteraction calls in order to save an additional getMarkup call. Updateing the cache with a null value clears the markup cache.

Specified by:
updateMarkupCache in interface PortletWindowSession

getPortletSession

public PortletSession getPortletSession()
Description copied from interface: PortletWindowSession
Get the portlet session this window session belongs to.

Specified by:
getPortletSession in interface PortletWindowSession
Returns:
The PortletSession this window session belongs to.

setPortletSession

public void setPortletSession(PortletSession portletSession)

getMarkupContext

public MarkupContext getMarkupContext()

setMarkupContext

public void setMarkupContext(MarkupContext markupContext)

getNavigationalState

public java.lang.String getNavigationalState()
Specified by:
getNavigationalState in interface PortletWindowSession

setNavigationalState

public void setNavigationalState(java.lang.String navigationalState)
Specified by:
setNavigationalState in interface PortletWindowSession


Copyright © 2010 eXo Platform SAS. All Rights Reserved.