com.liferay.portlet.wiki.lar
Class WikiPortletDataHandler
java.lang.Object
com.liferay.portal.kernel.lar.BasePortletDataHandler
com.liferay.portlet.wiki.lar.WikiPortletDataHandler
- All Implemented Interfaces:
- PortletDataHandler
- Direct Known Subclasses:
- WikiDisplayPortletDataHandler
public class WikiPortletDataHandler
- extends BasePortletDataHandler
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 |
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
WikiPortletDataHandler
public WikiPortletDataHandler()
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 importportletId
- the portlet ID of the portletportletPreferences
- the portlet preferences of the portletdata
- 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