com.liferay.portlet.wiki.lar
Class WikiDisplayPortletDataHandlerImpl
java.lang.Object
com.liferay.portal.kernel.lar.BasePortletDataHandler
com.liferay.portlet.wiki.lar.WikiDisplayPortletDataHandlerImpl
- All Implemented Interfaces:
- PortletDataHandler
public class WikiDisplayPortletDataHandlerImpl
- 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)
|
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 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiDisplayPortletDataHandlerImpl
public WikiDisplayPortletDataHandlerImpl()
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.
- Specified by:
getExportControls in interface PortletDataHandler- Overrides:
getExportControls in class BasePortletDataHandler
- 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.
- Specified by:
getImportControls in interface PortletDataHandler- Overrides:
getImportControls in class BasePortletDataHandler
- Returns:
- An array of PortletDataHandlerControls
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
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