com.liferay.portlet.journal.lar
Class JournalPortletDataHandler
java.lang.Object
com.liferay.portal.kernel.lar.BasePortletDataHandler
com.liferay.portlet.journal.lar.JournalPortletDataHandler
- All Implemented Interfaces:
- PortletDataHandler
- Direct Known Subclasses:
- JournalContentPortletDataHandler
public class JournalPortletDataHandler
- extends BasePortletDataHandler
Provides the Journal portlet export and import functionality, which is to
clone all articles, structures, and templates associated with the layout's
group. Upon import, new instances of the corresponding articles, structures,
and templates are created or updated according to the DATA_MIRROW strategy
The author of the newly created objects are determined by the
JournalCreationStrategy class defined in portal.properties. That
strategy also allows the text of the journal article to be modified prior to
import.
This PortletDataHandler
differs from
JournalContentPortletDataHandlerImpl
in that it exports all
articles owned by the group whether or not they are actually displayed in a
portlet in the layout set.
- See Also:
PortletDataHandler
,
JournalContentPortletDataHandler
,
JournalCreationStrategy
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 ActionableDynamicQuery |
getArticleActionableDynamicQuery(PortletDataContext portletDataContext)
|
protected ActionableDynamicQuery |
getDDMStructureActionableDynamicQuery(PortletDataContext portletDataContext,
boolean export)
|
protected ActionableDynamicQuery |
getDDMStructureDefaultValuesActionableDynamicQuery(PortletDataContext portletDataContext)
|
protected ActionableDynamicQuery |
getDDMTemplateActionableDynamicQuery(PortletDataContext portletDataContext)
Deprecated. As of 7.0.0, replaced by #getDDMTemplateActionableDynamicQuery(PortletDataContext,
List, boolean) |
protected ActionableDynamicQuery |
getDDMTemplateActionableDynamicQuery(PortletDataContext portletDataContext,
boolean export)
|
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler |
addExportDataRootElement, addImportDataRootElement, addUncheckedModelAdditionCount, deleteData, doProcessExportPortletPreferences, doProcessImportPortletPreferences, exportData, getDataLevel, getDataPortletPreferences, getDeletionSystemEventStagedModelTypes, getDisplayTemplate, getDisplayTemplateGroupId, getExportConfigurationControls, getExportConfigurationControls, getExportControls, getExportDataRootElementString, getExportMetadataControls, getExportModelCount, getExportModelCount, getImportConfigurationControls, getImportConfigurationControls, getImportControls, getImportMetadataControls, getPortletId, importData, 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
JournalPortletDataHandler
public JournalPortletDataHandler()
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
getArticleActionableDynamicQuery
protected ActionableDynamicQuery getArticleActionableDynamicQuery(PortletDataContext portletDataContext)
throws SystemException
- Throws:
SystemException
getDDMStructureActionableDynamicQuery
protected ActionableDynamicQuery getDDMStructureActionableDynamicQuery(PortletDataContext portletDataContext,
boolean export)
throws SystemException
- Throws:
SystemException
getDDMStructureDefaultValuesActionableDynamicQuery
protected ActionableDynamicQuery getDDMStructureDefaultValuesActionableDynamicQuery(PortletDataContext portletDataContext)
throws SystemException
- Throws:
SystemException
getDDMTemplateActionableDynamicQuery
protected ActionableDynamicQuery getDDMTemplateActionableDynamicQuery(PortletDataContext portletDataContext)
throws SystemException
- Deprecated. As of 7.0.0, replaced by
#getDDMTemplateActionableDynamicQuery(PortletDataContext,
List, boolean)
- Throws:
SystemException
getDDMTemplateActionableDynamicQuery
protected ActionableDynamicQuery getDDMTemplateActionableDynamicQuery(PortletDataContext portletDataContext,
boolean export)
throws SystemException
- Throws:
SystemException