com.liferay.portlet.mobiledevicerules.lar
Class MDRPortletDataHandlerImpl
java.lang.Object
com.liferay.portal.kernel.lar.BasePortletDataHandler
com.liferay.portlet.mobiledevicerules.lar.MDRPortletDataHandlerImpl
- All Implemented Interfaces:
- PortletDataHandler
public class MDRPortletDataHandlerImpl
- 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 |
exportAction(PortletDataContext portletDataContext,
Element actionsElement,
MDRAction action)
|
protected void |
exportRule(PortletDataContext portletDataContext,
Element rulesElement,
MDRRule rule)
|
protected void |
exportRuleGroup(PortletDataContext portletDataContext,
Element ruleGroupsElement,
MDRRuleGroup ruleGroup)
|
protected void |
exportRuleGroupInstance(PortletDataContext portletDataContext,
Element ruleGroupInstancesElement,
MDRRuleGroupInstance ruleGroupInstance)
|
protected String |
getActionPath(PortletDataContext portletDataContext,
MDRAction action)
|
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
protected String |
getRuleGroupInstancePath(PortletDataContext portletDataContext,
MDRRuleGroupInstance ruleGroupInstance)
|
protected String |
getRuleGroupPath(PortletDataContext portletDataContext,
MDRRuleGroup ruleGroup)
|
protected String |
getRulePath(PortletDataContext portletDataContext,
MDRRule rule)
|
protected void |
importAction(PortletDataContext portletDataContext,
Element actionElement,
MDRRuleGroupInstance ruleGroupInstance,
MDRAction action)
|
protected void |
importRule(PortletDataContext portletDataContext,
Element ruleElement,
MDRRuleGroup ruleGroup,
MDRRule rule)
|
protected void |
importRuleGroup(PortletDataContext portletDataContext,
Element ruleGroupElement,
MDRRuleGroup ruleGroup)
|
protected void |
importRuleGroupInstance(PortletDataContext portletDataContext,
Element ruleGroupInstanceElement,
MDRRuleGroupInstance ruleGroupInstance)
|
boolean |
isAlwaysExportable()
Returns true to allow the user to export data for this
portlet even though it may not belong to any pages. |
boolean |
isAlwaysStaged()
|
boolean |
isPublishToLiveByDefault()
Returns whether the data exported by this handler should be included by
default when publishing to live. |
protected void |
validateTargetLayoutPlid(Element actionElement,
MDRAction action)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MDRPortletDataHandlerImpl
public MDRPortletDataHandlerImpl()
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
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
isAlwaysStaged
public boolean isAlwaysStaged()
- Specified by:
isAlwaysStaged
in interface PortletDataHandler
- Overrides:
isAlwaysStaged
in class BasePortletDataHandler
isPublishToLiveByDefault
public boolean isPublishToLiveByDefault()
- Description copied from interface:
PortletDataHandler
- Returns whether the data exported by this handler should be included by
default when publishing to live. This should only be
true
for data that is meant to be managed in an staging environment such as
CMS content, but not for data meant to be input by users such as wiki
pages or message board posts.
- Specified by:
isPublishToLiveByDefault
in interface PortletDataHandler
- Overrides:
isPublishToLiveByDefault
in class BasePortletDataHandler
- Returns:
true
to publish to live by default
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
exportAction
protected void exportAction(PortletDataContext portletDataContext,
Element actionsElement,
MDRAction action)
throws Exception
- Throws:
Exception
exportRule
protected void exportRule(PortletDataContext portletDataContext,
Element rulesElement,
MDRRule rule)
throws Exception
- Throws:
Exception
exportRuleGroup
protected void exportRuleGroup(PortletDataContext portletDataContext,
Element ruleGroupsElement,
MDRRuleGroup ruleGroup)
throws Exception
- Throws:
Exception
exportRuleGroupInstance
protected void exportRuleGroupInstance(PortletDataContext portletDataContext,
Element ruleGroupInstancesElement,
MDRRuleGroupInstance ruleGroupInstance)
throws Exception
- Throws:
Exception
getActionPath
protected String getActionPath(PortletDataContext portletDataContext,
MDRAction action)
getRuleGroupInstancePath
protected String getRuleGroupInstancePath(PortletDataContext portletDataContext,
MDRRuleGroupInstance ruleGroupInstance)
getRuleGroupPath
protected String getRuleGroupPath(PortletDataContext portletDataContext,
MDRRuleGroup ruleGroup)
getRulePath
protected String getRulePath(PortletDataContext portletDataContext,
MDRRule rule)
importAction
protected void importAction(PortletDataContext portletDataContext,
Element actionElement,
MDRRuleGroupInstance ruleGroupInstance,
MDRAction action)
throws Exception
- Throws:
Exception
importRule
protected void importRule(PortletDataContext portletDataContext,
Element ruleElement,
MDRRuleGroup ruleGroup,
MDRRule rule)
throws Exception
- Throws:
Exception
importRuleGroup
protected void importRuleGroup(PortletDataContext portletDataContext,
Element ruleGroupElement,
MDRRuleGroup ruleGroup)
throws Exception
- Throws:
Exception
importRuleGroupInstance
protected void importRuleGroupInstance(PortletDataContext portletDataContext,
Element ruleGroupInstanceElement,
MDRRuleGroupInstance ruleGroupInstance)
throws Exception
- Throws:
Exception
validateTargetLayoutPlid
protected void validateTargetLayoutPlid(Element actionElement,
MDRAction action)