com.liferay.portlet.journal.lar
Class JournalContentPortletDataHandlerImpl
java.lang.Object
com.liferay.portal.lar.BasePortletDataHandler
com.liferay.portlet.journal.lar.JournalContentPortletDataHandlerImpl
- All Implemented Interfaces:
- com.liferay.portal.lar.PortletDataHandler
public class JournalContentPortletDataHandlerImpl
- extends com.liferay.portal.lar.BasePortletDataHandler
View Source
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.
- Author:
- Joel Kozikowski, Raymond Augé, Bruno Farache
- See Also:
PortletDataHandler
,
JournalCreationStrategy
,
JournalPortletDataHandlerImpl
Method Summary |
javax.portlet.PortletPreferences |
deleteData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
|
java.lang.String |
exportData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
|
com.liferay.portal.lar.PortletDataHandlerControl[] |
getExportControls()
|
com.liferay.portal.lar.PortletDataHandlerControl[] |
getImportControls()
|
javax.portlet.PortletPreferences |
importData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences,
java.lang.String data)
|
boolean |
isPublishToLiveByDefault()
|
Methods inherited from class com.liferay.portal.lar.BasePortletDataHandler |
isAlwaysExportable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JournalContentPortletDataHandlerImpl
public JournalContentPortletDataHandlerImpl()
deleteData
public javax.portlet.PortletPreferences deleteData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
exportData
public java.lang.String exportData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
getExportControls
public com.liferay.portal.lar.PortletDataHandlerControl[] getExportControls()
getImportControls
public com.liferay.portal.lar.PortletDataHandlerControl[] getImportControls()
importData
public javax.portlet.PortletPreferences importData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences,
java.lang.String data)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
isPublishToLiveByDefault
public boolean isPublishToLiveByDefault()
- Specified by:
isPublishToLiveByDefault
in interface com.liferay.portal.lar.PortletDataHandler
- Overrides:
isPublishToLiveByDefault
in class com.liferay.portal.lar.BasePortletDataHandler