com.liferay.portlet.journal.lar
Class JournalPortletDataHandlerImpl

java.lang.Object
  extended bycom.liferay.portlet.journal.lar.JournalPortletDataHandlerImpl
All Implemented Interfaces:
com.liferay.portal.kernel.lar.PortletDataHandler

public class JournalPortletDataHandlerImpl
extends java.lang.Object
implements com.liferay.portal.kernel.lar.PortletDataHandler

View Source

Provides the Journal portlet export and import functionality, which is to clone all articles, structures, and templates associated with the layout's group. Upon import, new instances of the corresponding articles, structures, and templates are created or updated. The author of the newly created objects are determined by the JournalCreationStrategy class defined in portal.properties.

This PortletDataHandler differs from JournalContentPortletDataHandlerImpl in that it exports all articles owned by the group whether or not they are actually displayed in a portlet in the layout set.

Author:
Raymond Augé, Joel Kozikowski, Brian Wing Shun Chan
See Also:
JournalContentPortletDataHandlerImpl, JournalCreationStrategy

Constructor Summary
JournalPortletDataHandlerImpl()
           
 
Method Summary
 java.lang.String exportData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs)
           
 com.liferay.portal.kernel.lar.PortletDataHandlerControl[] getExportControls()
           
 com.liferay.portal.kernel.lar.PortletDataHandlerControl[] getImportControls()
           
protected  java.lang.String getPrimaryKey(long groupId, java.lang.String key)
           
 javax.portlet.PortletPreferences importData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs, java.lang.String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalPortletDataHandlerImpl

public JournalPortletDataHandlerImpl()
Method Detail

getExportControls

public com.liferay.portal.kernel.lar.PortletDataHandlerControl[] getExportControls()
                                                                            throws com.liferay.portal.kernel.lar.PortletDataException
Specified by:
getExportControls in interface com.liferay.portal.kernel.lar.PortletDataHandler
Throws:
com.liferay.portal.kernel.lar.PortletDataException

getImportControls

public com.liferay.portal.kernel.lar.PortletDataHandlerControl[] getImportControls()
                                                                            throws com.liferay.portal.kernel.lar.PortletDataException
Specified by:
getImportControls in interface com.liferay.portal.kernel.lar.PortletDataHandler
Throws:
com.liferay.portal.kernel.lar.PortletDataException

exportData

public java.lang.String exportData(com.liferay.portal.kernel.lar.PortletDataContext context,
                                   java.lang.String portletId,
                                   javax.portlet.PortletPreferences prefs)
                            throws com.liferay.portal.kernel.lar.PortletDataException
Specified by:
exportData in interface com.liferay.portal.kernel.lar.PortletDataHandler
Throws:
com.liferay.portal.kernel.lar.PortletDataException

importData

public javax.portlet.PortletPreferences importData(com.liferay.portal.kernel.lar.PortletDataContext context,
                                                   java.lang.String portletId,
                                                   javax.portlet.PortletPreferences prefs,
                                                   java.lang.String data)
                                            throws com.liferay.portal.kernel.lar.PortletDataException
Specified by:
importData in interface com.liferay.portal.kernel.lar.PortletDataHandler
Throws:
com.liferay.portal.kernel.lar.PortletDataException

getPrimaryKey

protected java.lang.String getPrimaryKey(long groupId,
                                         java.lang.String key)