org.exoplatform.services.wsrp.consumer
Interface PortletDriver

All Known Implementing Classes:
PortletDriverImpl

public interface PortletDriver

The portlet driver is a wrapper for all action which can be performed on an portlet. There is one portlet driver for all instances of an portlet.

Author:
Benjamin Mestrallet

Method Summary
 org.exoplatform.services.wsrp.type.PortletContext clonePortlet(UserSessionMgr userSession)
          Clone the portlet
 org.exoplatform.services.wsrp.type.DestroyPortletsResponse destroyPortlets(String[] portletHandles, UserSessionMgr userSession)
          Destroy the producer portlets specified in the entiyHandles array.
 org.exoplatform.services.wsrp.type.MarkupResponse getMarkup(WSRPMarkupRequest markupRequest, UserSessionMgr userSession, 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.
 org.exoplatform.services.wsrp.type.PortletDescriptionResponse getPortletDescription(UserSessionMgr userSession, String[] desiredLocales)
           
 org.exoplatform.services.wsrp.type.PropertyList getPortletProperties(String[] names, UserSessionMgr userSession)
           
 org.exoplatform.services.wsrp.type.PortletPropertyDescriptionResponse getPortletPropertyDescription(UserSessionMgr userSession)
           
 void initCookie()
           
 org.exoplatform.services.wsrp.type.BlockingInteractionResponse performBlockingInteraction(WSRPInteractionRequest actionRequest, UserSessionMgr userSession, String path)
          This method is used to perform a blocking interaction on the portlet instance.
 org.exoplatform.services.wsrp.type.ReturnAny releaseSessions(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.
 org.exoplatform.services.wsrp.type.PortletContext setPortletProperties(org.exoplatform.services.wsrp.type.PropertyList properties, UserSessionMgr userSession)
           
 

Method Detail

getPortlet

WSRPPortlet getPortlet()
Get the portlet this driver is bound to.

Returns:
The enity

getMarkup

org.exoplatform.services.wsrp.type.MarkupResponse getMarkup(WSRPMarkupRequest markupRequest,
                                                            UserSessionMgr userSession,
                                                            String path)
                                                            throws WSRPException
This method is used to retrieve the markup generated by the portlet instance.

Returns:
The markup response generated by portlet
Throws:
WSRPException

performBlockingInteraction

org.exoplatform.services.wsrp.type.BlockingInteractionResponse performBlockingInteraction(WSRPInteractionRequest actionRequest,
                                                                                          UserSessionMgr userSession,
                                                                                          String path)
                                                                                          throws WSRPException
This method is used to perform a blocking interaction on the portlet instance.

Throws:
WSRPException

clonePortlet

org.exoplatform.services.wsrp.type.PortletContext clonePortlet(UserSessionMgr userSession)
                                                               throws WSRPException
Clone the portlet

Returns:
The new portlet context
Throws:
WSRPException

initCookie

void initCookie()
                throws WSRPException
Throws:
WSRPException

destroyPortlets

org.exoplatform.services.wsrp.type.DestroyPortletsResponse destroyPortlets(String[] portletHandles,
                                                                           UserSessionMgr userSession)
                                                                           throws WSRPException
Destroy the producer portlets specified in the entiyHandles array.

Throws:
WSRPException

releaseSessions

org.exoplatform.services.wsrp.type.ReturnAny releaseSessions(String[] sessionIDs,
                                                             UserSessionMgr userSession)
                                                             throws WSRPException
Inform the producer that the sessions specified in the sessionIDs array will no longer be used by the consumer and can therefor be released.

Throws:
WSRPException

getPortletDescription

org.exoplatform.services.wsrp.type.PortletDescriptionResponse getPortletDescription(UserSessionMgr userSession,
                                                                                    String[] desiredLocales)
                                                                                    throws WSRPException
Throws:
WSRPException

getPortletPropertyDescription

org.exoplatform.services.wsrp.type.PortletPropertyDescriptionResponse getPortletPropertyDescription(UserSessionMgr userSession)
                                                                                                    throws WSRPException
Throws:
WSRPException

getPortletProperties

org.exoplatform.services.wsrp.type.PropertyList getPortletProperties(String[] names,
                                                                     UserSessionMgr userSession)
                                                                     throws WSRPException
Throws:
WSRPException

setPortletProperties

org.exoplatform.services.wsrp.type.PortletContext setPortletProperties(org.exoplatform.services.wsrp.type.PropertyList properties,
                                                                       UserSessionMgr userSession)
                                                                       throws WSRPException
Throws:
WSRPException


Copyright © 2009 eXo Platform SAS. All Rights Reserved.