Liferay 6.0.5

com.liferay.portlet.wiki.lar
Class WikiDisplayPortletDataHandlerImpl

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BasePortletDataHandler
      extended by com.liferay.portlet.wiki.lar.WikiDisplayPortletDataHandlerImpl
All Implemented Interfaces:
PortletDataHandler

public class WikiDisplayPortletDataHandlerImpl
extends BasePortletDataHandler


Constructor Summary
WikiDisplayPortletDataHandlerImpl()
           
 
Method Summary
protected  PortletPreferences doDeleteData(PortletDataContext context, String portletId, PortletPreferences preferences)
           
protected  String doExportData(PortletDataContext context, String portletId, PortletPreferences preferences)
           
protected  PortletPreferences doImportData(PortletDataContext context, String portletId, PortletPreferences preferences, String data)
           
 PortletDataHandlerControl[] getExportControls()
          Returns an array of the controls defined for this data handler.
 PortletDataHandlerControl[] getImportControls()
          Returns an array of the controls defined for this data handler.
 PortletPreferences importData(PortletDataContext context, String portletId, PortletPreferences preferences, String data)
          Handles any special processing of the data when the portlet is imported into a new layout.
 
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler
deleteData, exportData, isAlwaysExportable, isPublishToLiveByDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiDisplayPortletDataHandlerImpl

public WikiDisplayPortletDataHandlerImpl()
Method Detail

getExportControls

public PortletDataHandlerControl[] getExportControls()
Description copied from interface: PortletDataHandler
Returns an array of the controls defined for this data handler. These controls enable the developer to create fine grained controls over export behavior. The controls are rendered in the export UI.

Returns:
an array of PortletDataHandlerControls

getImportControls

public PortletDataHandlerControl[] getImportControls()
Description copied from interface: PortletDataHandler
Returns an array of the controls defined for this data handler. These controls enable the developer to create fine grained controls over import behavior. The controls are rendered in the import UI.

Returns:
An array of PortletDataHandlerControls

importData

public PortletPreferences importData(PortletDataContext context,
                                     String portletId,
                                     PortletPreferences preferences,
                                     String data)
                              throws PortletDataException
Description copied from interface: PortletDataHandler
Handles any special processing of the data when the portlet is imported into a new layout. Can optionally return a modified version of preferences to be saved in the new portlet.

Specified by:
importData in interface PortletDataHandler
Overrides:
importData in class BasePortletDataHandler
Parameters:
context - the context of the data import
portletId - the portlet id of the portlet
preferences - the portlet preferences of the portlet
data - the string data that was returned by exportData()
Returns:
A modified version of preferences that should be saved. Null if the preferences were unmodified by this data handler.
Throws:
PortletDataException

doDeleteData

protected PortletPreferences doDeleteData(PortletDataContext context,
                                          String portletId,
                                          PortletPreferences preferences)
                                   throws Exception
Overrides:
doDeleteData in class BasePortletDataHandler
Throws:
Exception

doExportData

protected String doExportData(PortletDataContext context,
                              String portletId,
                              PortletPreferences preferences)
                       throws Exception
Overrides:
doExportData in class BasePortletDataHandler
Throws:
Exception

doImportData

protected PortletPreferences doImportData(PortletDataContext context,
                                          String portletId,
                                          PortletPreferences preferences,
                                          String data)
                                   throws Exception
Overrides:
doImportData in class BasePortletDataHandler
Throws:
Exception

Liferay 6.0.5