org.exoplatform.services.wsrp.consumer.impl
Class PortletDriverImpl

java.lang.Object
  extended by org.exoplatform.services.wsrp.consumer.impl.PortletDriverImpl
All Implemented Interfaces:
PortletDriver

public class PortletDriverImpl
extends java.lang.Object
implements PortletDriver

The implementation of this class is based on the WSRP4J project


Constructor Summary
PortletDriverImpl(org.exoplatform.container.ExoContainer cont, WSRPPortlet portlet)
           
 
Method Summary
 PortletContext clonePortlet(UserSessionMgr userSession)
          Clone the portlet
 DestroyPortletsResponse destroyPortlets(java.lang.String[] portletHandles, UserSessionMgr userSession)
          Destroy the producer portlets specified in the entiyHandles array.
 MarkupResponse getMarkup(WSRPMarkupRequest markupRequest, UserSessionMgr userSession, java.lang.String path)
          This method is used to retrieve the markup generated by the portlet instance.
 WSRPPortlet getPortlet()
          Get the portlet this driver is bound to.
 PortletDescriptionResponse getPortletDescription(UserSessionMgr userSession, java.lang.String[] desiredLocales)
           
 PropertyList getPortletProperties(java.lang.String[] names, UserSessionMgr userSession)
           
 PortletPropertyDescriptionResponse getPortletPropertyDescription(UserSessionMgr userSession)
           
 void initCookie()
           
 BlockingInteractionResponse performBlockingInteraction(WSRPInteractionRequest actionRequest, UserSessionMgr userSession, java.lang.String path)
          This method is used to perform a blocking interaction on the portlet instance.
 ReturnAny releaseSessions(java.lang.String[] sessionIDs, UserSessionMgr userSession)
          Inform the producer that the sessions specified in the sessionIDs array will no longer be used by the consumer and can therefor be released.
 PortletContext setPortletProperties(PropertyList properties, UserSessionMgr userSession)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletDriverImpl

public PortletDriverImpl(org.exoplatform.container.ExoContainer cont,
                         WSRPPortlet portlet)
                  throws WSRPException
Throws:
WSRPException
Method Detail

getPortlet

public WSRPPortlet getPortlet()
Description copied from interface: PortletDriver
Get the portlet this driver is bound to.

Specified by:
getPortlet in interface PortletDriver
Returns:
The enity

getMarkup

public MarkupResponse getMarkup(WSRPMarkupRequest markupRequest,
                                UserSessionMgr userSession,
                                java.lang.String path)
                         throws WSRPException
Description copied from interface: PortletDriver
This method is used to retrieve the markup generated by the portlet instance.

Specified by:
getMarkup in interface PortletDriver
Returns:
The markup response generated by portlet
Throws:
WSRPException

performBlockingInteraction

public BlockingInteractionResponse performBlockingInteraction(WSRPInteractionRequest actionRequest,
                                                              UserSessionMgr userSession,
                                                              java.lang.String path)
                                                       throws WSRPException
Description copied from interface: PortletDriver
This method is used to perform a blocking interaction on the portlet instance.

Specified by:
performBlockingInteraction in interface PortletDriver
Throws:
WSRPException

clonePortlet

public PortletContext clonePortlet(UserSessionMgr userSession)
                            throws WSRPException
Description copied from interface: PortletDriver
Clone the portlet

Specified by:
clonePortlet in interface PortletDriver
Returns:
The new portlet context
Throws:
WSRPException

destroyPortlets

public DestroyPortletsResponse destroyPortlets(java.lang.String[] portletHandles,
                                               UserSessionMgr userSession)
                                        throws WSRPException
Description copied from interface: PortletDriver
Destroy the producer portlets specified in the entiyHandles array.

Specified by:
destroyPortlets in interface PortletDriver
Throws:
WSRPException

releaseSessions

public ReturnAny releaseSessions(java.lang.String[] sessionIDs,
                                 UserSessionMgr userSession)
                          throws WSRPException
Description copied from interface: PortletDriver
Inform the producer that the sessions specified in the sessionIDs array will no longer be used by the consumer and can therefor be released.

Specified by:
releaseSessions in interface PortletDriver
Throws:
WSRPException

initCookie

public void initCookie()
                throws WSRPException
Specified by:
initCookie in interface PortletDriver
Throws:
WSRPException

getPortletDescription

public PortletDescriptionResponse getPortletDescription(UserSessionMgr userSession,
                                                        java.lang.String[] desiredLocales)
                                                 throws WSRPException
Specified by:
getPortletDescription in interface PortletDriver
Throws:
WSRPException

getPortletPropertyDescription

public PortletPropertyDescriptionResponse getPortletPropertyDescription(UserSessionMgr userSession)
                                                                 throws WSRPException
Specified by:
getPortletPropertyDescription in interface PortletDriver
Throws:
WSRPException

getPortletProperties

public PropertyList getPortletProperties(java.lang.String[] names,
                                         UserSessionMgr userSession)
                                  throws WSRPException
Specified by:
getPortletProperties in interface PortletDriver
Throws:
WSRPException

setPortletProperties

public PortletContext setPortletProperties(PropertyList properties,
                                           UserSessionMgr userSession)
                                    throws WSRPException
Specified by:
setPortletProperties in interface PortletDriver
Throws:
WSRPException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.