Liferay 6.2-ce-ga5

com.liferay.portlet.wiki.lar
Class WikiPortletDataHandler

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BasePortletDataHandler
      extended by com.liferay.portlet.wiki.lar.WikiPortletDataHandler
All Implemented Interfaces:
PortletDataHandler
Direct Known Subclasses:
WikiDisplayPortletDataHandler

public class WikiPortletDataHandler
extends BasePortletDataHandler


Field Summary
static String NAMESPACE
           
 
Constructor Summary
WikiPortletDataHandler()
           
 
Method Summary
protected  PortletPreferences doDeleteData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
protected  String doExportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
protected  PortletPreferences doImportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences, String data)
           
protected  void doPrepareManifestSummary(PortletDataContext portletDataContext, PortletPreferences portletPreferences)
           
protected  PortletPreferences doProcessExportPortletPreferences(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
protected  PortletPreferences doProcessImportPortletPreferences(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
 PortletPreferences importData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences, 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
addExportDataRootElement, addImportDataRootElement, addUncheckedModelAdditionCount, deleteData, exportData, getDataLevel, getDataPortletPreferences, getDeletionSystemEventStagedModelTypes, getDisplayTemplate, getDisplayTemplateGroupId, getExportConfigurationControls, getExportConfigurationControls, getExportControls, getExportDataRootElementString, getExportMetadataControls, getExportModelCount, getExportModelCount, getImportConfigurationControls, getImportConfigurationControls, getImportControls, getImportMetadataControls, getPortletId, isDataLocalized, isDataPortalLevel, isDataPortletInstanceLevel, isDataSiteLevel, isDisplayPortlet, isPublishToLiveByDefault, isSupportsDataStrategyCopyAsNew, prepareManifestSummary, prepareManifestSummary, processExportPortletPreferences, processImportPortletPreferences, setAlwaysExportable, setAlwaysStaged, setDataLevel, setDataLocalized, setDataPortletPreferences, setDeletionSystemEventStagedModelTypes, setExportControls, setExportMetadataControls, setImportControls, setImportMetadataControls, setPortletId, setPublishToLiveByDefault, setSupportsDataStrategyCopyAsNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

WikiPortletDataHandler

public WikiPortletDataHandler()
Method Detail

importData

public PortletPreferences importData(PortletDataContext portletDataContext,
                                     String portletId,
                                     PortletPreferences portletPreferences,
                                     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:
portletDataContext - the context of the data import
portletId - the portlet ID of the portlet
portletPreferences - the portlet preferences of the portlet
data - the string data that was returned by exportData()
Returns:
A modified version of portlet preferences that should be saved. Null if the portlet preferences were unmodified by this data handler.
Throws:
PortletDataException - if a portlet data exception occurred

doDeleteData

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

doExportData

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

doImportData

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

doPrepareManifestSummary

protected void doPrepareManifestSummary(PortletDataContext portletDataContext,
                                        PortletPreferences portletPreferences)
                                 throws Exception
Overrides:
doPrepareManifestSummary in class BasePortletDataHandler
Throws:
Exception

doProcessExportPortletPreferences

protected PortletPreferences doProcessExportPortletPreferences(PortletDataContext portletDataContext,
                                                               String portletId,
                                                               PortletPreferences portletPreferences)
                                                        throws Exception
Overrides:
doProcessExportPortletPreferences in class BasePortletDataHandler
Throws:
Exception

doProcessImportPortletPreferences

protected PortletPreferences doProcessImportPortletPreferences(PortletDataContext portletDataContext,
                                                               String portletId,
                                                               PortletPreferences portletPreferences)
                                                        throws Exception
Overrides:
doProcessImportPortletPreferences in class BasePortletDataHandler
Throws:
Exception

Liferay 6.2-ce-ga5