com.liferay.portlet.dynamicdatamapping.lar
Class DDMPortletDataHandlerImpl
java.lang.Object
com.liferay.portal.kernel.lar.BasePortletDataHandler
com.liferay.portlet.dynamicdatamapping.lar.DDMPortletDataHandlerImpl
- All Implemented Interfaces:
- PortletDataHandler
public class DDMPortletDataHandlerImpl
- 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)
|
static void |
exportStructure(PortletDataContext portletDataContext,
Element structuresElement,
DDMStructure structure)
|
protected static void |
exportTemplate(PortletDataContext portletDataContext,
Element templatesElement,
DDMTemplate template)
|
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. |
protected static String |
getStructurePath(PortletDataContext portletDataContext,
DDMStructure structure)
|
protected static String |
getTemplatePath(PortletDataContext portletDataContext,
DDMTemplate template)
|
static void |
importStructure(PortletDataContext portletDataContext,
Element structureElement)
|
protected static void |
importTemplate(PortletDataContext portletDataContext,
Element templateElement)
|
boolean |
isAlwaysExportable()
Returns true to allow the user to export data for this
portlet even though it may not belong to any pages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMPortletDataHandlerImpl
public DDMPortletDataHandlerImpl()
exportStructure
public static void exportStructure(PortletDataContext portletDataContext,
Element structuresElement,
DDMStructure structure)
throws Exception
- Throws:
Exception
importStructure
public static void importStructure(PortletDataContext portletDataContext,
Element structureElement)
throws Exception
- Throws:
Exception
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
isAlwaysExportable
public boolean isAlwaysExportable()
- Description copied from interface:
PortletDataHandler
- Returns
true
to allow the user to export data for this
portlet even though it may not belong to any pages. See LPS-1624.
- Specified by:
isAlwaysExportable
in interface PortletDataHandler
- Overrides:
isAlwaysExportable
in class BasePortletDataHandler
- Returns:
true
to allow the user to export data for this
portlet even though it may not belong to any pages
exportTemplate
protected static void exportTemplate(PortletDataContext portletDataContext,
Element templatesElement,
DDMTemplate template)
throws Exception
- Throws:
Exception
getStructurePath
protected static String getStructurePath(PortletDataContext portletDataContext,
DDMStructure structure)
getTemplatePath
protected static String getTemplatePath(PortletDataContext portletDataContext,
DDMTemplate template)
importTemplate
protected static void importTemplate(PortletDataContext portletDataContext,
Element templateElement)
throws Exception
- Throws:
Exception
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