public class JournalContentPortletDataHandler
extends com.liferay.exportimport.kernel.lar.BasePortletDataHandler
Provides the Journal Content portlet export and import functionality, which is to clone the article, structure, and template referenced in the Journal Content portlet if the article is associated with the layout's group. Upon import, a new instance of the corresponding article, structure, and template will be created or updated. The author of the newly created objects are determined by the JournalCreationStrategy class defined in portal.properties.
This PortletDataHandler differs from from
JournalPortletDataHandlerImpl in that it only exports articles
referenced in Journal Content portlets. Articles not displayed in Journal
Content portlets will not be exported unless
JournalPortletDataHandlerImpl is activated.
com.liferay.journal.lar.JournalCreationStrategy,
PortletDataHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SCHEMA_VERSION |
| Constructor and Description |
|---|
JournalContentPortletDataHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected javax.portlet.PortletPreferences |
doDeleteData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
java.lang.String portletId,
javax.portlet.PortletPreferences portletPreferences) |
java.lang.String |
getSchemaVersion() |
protected void |
setModuleServiceLifecycle(com.liferay.portal.kernel.module.framework.ModuleServiceLifecycle moduleServiceLifecycle) |
addDefaultData, addExportDataRootElement, addImportDataRootElement, addUncheckedModelAdditionCount, deleteData, doAddDefaultData, doExportData, doImportData, doPrepareManifestSummary, doProcessExportPortletPreferences, doProcessImportPortletPreferences, doValidateSchemaVersion, exportData, getDataLevel, getDataPortletPreferences, getDeletionSystemEventStagedModelTypes, getExportConfigurationControls, getExportConfigurationControls, getExportControls, getExportDataRootElementString, getExportMetadataControls, getExportModelCount, getExportModelCount, getImportConfigurationControls, getImportConfigurationControls, getImportControls, getImportMetadataControls, getPortletId, getRank, getServiceName, importData, isDataAlwaysStaged, isDataLocalized, isDataPortalLevel, isDataPortletInstanceLevel, isDataSiteLevel, isDisplayPortlet, isPublishToLiveByDefault, isRollbackOnException, isSupportsDataStrategyCopyAsNew, prepareManifestSummary, prepareManifestSummary, processExportPortletPreferences, processImportPortletPreferences, setDataAlwaysStaged, setDataLevel, setDataLocalized, setDataPortletPreferences, setDeletionSystemEventStagedModelTypes, setExportControls, setExportMetadataControls, setImportControls, setImportMetadataControls, setPortletId, setPublishToLiveByDefault, setRank, setSupportsDataStrategyCopyAsNew, validateSchemaVersionpublic static final java.lang.String SCHEMA_VERSION
public java.lang.String getSchemaVersion()
getSchemaVersion in interface com.liferay.exportimport.kernel.lar.PortletDataHandlergetSchemaVersion in class com.liferay.exportimport.kernel.lar.BasePortletDataHandlerprotected void activate()
protected javax.portlet.PortletPreferences doDeleteData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
java.lang.String portletId,
javax.portlet.PortletPreferences portletPreferences)
throws java.lang.Exception
doDeleteData in class com.liferay.exportimport.kernel.lar.BasePortletDataHandlerjava.lang.Exceptionprotected void setModuleServiceLifecycle(com.liferay.portal.kernel.module.framework.ModuleServiceLifecycle moduleServiceLifecycle)