|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.kernel.lar.BasePortletDataHandler com.liferay.portlet.journal.lar.JournalContentPortletDataHandlerImpl
public class JournalContentPortletDataHandlerImpl
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.
PortletDataHandler
,
JournalCreationStrategy
,
JournalPortletDataHandlerImpl
Constructor Summary | |
---|---|
JournalContentPortletDataHandlerImpl()
|
Method Summary | |
---|---|
protected PortletPreferences |
doDeleteData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
|
protected String |
doExportData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
|
protected PortletPreferences |
doImportData(PortletDataContext context,
String portletId,
PortletPreferences preferences,
String data)
|
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
PortletDataHandlerControl[] |
getImportControls()
Returns an array of the controls defined for this data handler. |
boolean |
isPublishToLiveByDefault()
Returns whether the data exported by this handler should be included by default when publishing to live. |
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler |
---|
deleteData, exportData, importData, isAlwaysExportable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JournalContentPortletDataHandlerImpl()
Method Detail |
---|
public PortletDataHandlerControl[] getExportControls()
PortletDataHandler
public PortletDataHandlerControl[] getImportControls()
PortletDataHandler
public boolean isPublishToLiveByDefault()
PortletDataHandler
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.
isPublishToLiveByDefault
in interface PortletDataHandler
isPublishToLiveByDefault
in class BasePortletDataHandler
true
to publish to live by defaultprotected PortletPreferences doDeleteData(PortletDataContext context, String portletId, PortletPreferences preferences) throws Exception
doDeleteData
in class BasePortletDataHandler
Exception
protected String doExportData(PortletDataContext context, String portletId, PortletPreferences preferences) throws Exception
doExportData
in class BasePortletDataHandler
Exception
protected PortletPreferences doImportData(PortletDataContext context, String portletId, PortletPreferences preferences, String data) throws Exception
doImportData
in class BasePortletDataHandler
Exception
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |