Liferay 6.2-ce-ga5

com.liferay.portlet.journal.lar
Class JournalContentPortletDataHandler

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BasePortletDataHandler
      extended by com.liferay.portlet.journal.lar.JournalPortletDataHandler
          extended by com.liferay.portlet.journal.lar.JournalContentPortletDataHandler
All Implemented Interfaces:
PortletDataHandler

public class JournalContentPortletDataHandler
extends JournalPortletDataHandler

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.

See Also:
PortletDataHandler, JournalCreationStrategy, JournalPortletDataHandler

Field Summary
static String NAMESPACE
           
 
Constructor Summary
JournalContentPortletDataHandler()
           
 
Method Summary
protected  PortletPreferences doDeleteData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
protected  PortletPreferences doProcessExportPortletPreferences(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
protected  PortletPreferences doProcessImportPortletPreferences(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
 
Methods inherited from class com.liferay.portlet.journal.lar.JournalPortletDataHandler
doExportData, doImportData, doPrepareManifestSummary, getArticleActionableDynamicQuery, getDDMStructureActionableDynamicQuery, getDDMStructureDefaultValuesActionableDynamicQuery, getDDMTemplateActionableDynamicQuery, getDDMTemplateActionableDynamicQuery
 
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler
addExportDataRootElement, addImportDataRootElement, addUncheckedModelAdditionCount, deleteData, 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
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

JournalContentPortletDataHandler

public JournalContentPortletDataHandler()
Method Detail

doDeleteData

protected PortletPreferences doDeleteData(PortletDataContext portletDataContext,
                                          String portletId,
                                          PortletPreferences portletPreferences)
                                   throws Exception
Overrides:
doDeleteData in class JournalPortletDataHandler
Throws:
Exception

doProcessExportPortletPreferences

protected PortletPreferences doProcessExportPortletPreferences(PortletDataContext portletDataContext,
                                                               String portletId,
                                                               PortletPreferences portletPreferences)
                                                        throws Exception
Overrides:
doProcessExportPortletPreferences in class BasePortletDataHandler
Throws:
Exception

doProcessImportPortletPreferences

protected PortletPreferences doProcessImportPortletPreferences(PortletDataContext portletDataContext,
                                                               String portletId,
                                                               PortletPreferences portletPreferences)
                                                        throws Exception
Overrides:
doProcessImportPortletPreferences in class BasePortletDataHandler
Throws:
Exception

Liferay 6.2-ce-ga5