|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 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)
|
String[] |
getDataPortletPreferences()
Returns an array of the portlet preferences that reference data. |
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
PortletDataHandlerControl[] |
getExportMetadataControls()
Returns an array of the metadata controls defined for this data handler. |
PortletDataHandlerControl[] |
getImportControls()
Returns an array of the controls defined for this data handler. |
PortletDataHandlerControl[] |
getImportMetadataControls()
Returns an array of the metadata controls defined for this data handler. |
boolean |
isAlwaysExportable()
Returns true to allow the user to export data for this
portlet even though it may not belong to any pages. |
boolean |
isAlwaysStaged()
|
boolean |
isDataLocalized()
|
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 |
| 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 String[] getDataPortletPreferences()
PortletDataHandler
getDataPortletPreferences in interface PortletDataHandlergetDataPortletPreferences in class BasePortletDataHandlerpublic PortletDataHandlerControl[] getExportControls()
PortletDataHandler
getExportControls in interface PortletDataHandlergetExportControls in class BasePortletDataHandlerpublic PortletDataHandlerControl[] getExportMetadataControls()
PortletDataHandler
getExportMetadataControls in interface PortletDataHandlergetExportMetadataControls in class BasePortletDataHandlerpublic PortletDataHandlerControl[] getImportControls()
PortletDataHandler
getImportControls in interface PortletDataHandlergetImportControls in class BasePortletDataHandlerpublic PortletDataHandlerControl[] getImportMetadataControls()
PortletDataHandler
getImportMetadataControls in interface PortletDataHandlergetImportMetadataControls in class BasePortletDataHandlerpublic boolean isAlwaysExportable()
PortletDataHandlertrue to allow the user to export data for this
portlet even though it may not belong to any pages. See LPS-1624.
isAlwaysExportable in interface PortletDataHandlerisAlwaysExportable in class BasePortletDataHandlertrue to allow the user to export data for this
portlet even though it may not belong to any pagespublic boolean isAlwaysStaged()
isAlwaysStaged in interface PortletDataHandlerisAlwaysStaged in class BasePortletDataHandlerpublic boolean isDataLocalized()
isDataLocalized in interface PortletDataHandlerisDataLocalized in class BasePortletDataHandlerpublic boolean isPublishToLiveByDefault()
PortletDataHandlertrue
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 PortletDataHandlerisPublishToLiveByDefault in class BasePortletDataHandlertrue to publish to live by default
protected PortletPreferences doDeleteData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
throws Exception
doDeleteData in class BasePortletDataHandlerException
protected String doExportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
throws Exception
doExportData in class BasePortletDataHandlerException
protected PortletPreferences doImportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences,
String data)
throws Exception
doImportData in class BasePortletDataHandlerException
|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||