Liferay 6.0.5

com.liferay.portlet.bookmarks.lar
Class BookmarksPortletDataHandlerImpl

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BasePortletDataHandler
      extended by com.liferay.portlet.bookmarks.lar.BookmarksPortletDataHandlerImpl
All Implemented Interfaces:
PortletDataHandler

public class BookmarksPortletDataHandlerImpl
extends BasePortletDataHandler


Constructor Summary
BookmarksPortletDataHandlerImpl()
           
 
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)
           
protected  void exportEntry(PortletDataContext context, Element foldersElement, Element entriesElement, BookmarksEntry entry)
           
protected  void exportFolder(PortletDataContext context, Element foldersElement, Element entriesElement, BookmarksFolder folder)
           
protected  void exportParentFolder(PortletDataContext context, Element foldersElement, long folderId)
           
protected  String getEntryPath(PortletDataContext context, BookmarksEntry entry)
           
 PortletDataHandlerControl[] getExportControls()
          Returns an array of the controls defined for this data handler.
protected  String getFolderPath(PortletDataContext context, BookmarksFolder folder)
           
 PortletDataHandlerControl[] getImportControls()
          Returns an array of the controls defined for this data handler.
protected  String getImportFolderPath(PortletDataContext context, long folderId)
           
protected  void importEntry(PortletDataContext context, BookmarksEntry entry)
           
protected  void importFolder(PortletDataContext context, BookmarksFolder folder)
           
 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

BookmarksPortletDataHandlerImpl

public BookmarksPortletDataHandlerImpl()
Method Detail

getExportControls

public PortletDataHandlerControl[] getExportControls()
Description copied from interface: PortletDataHandler
Returns an array of the controls defined for this data handler. These controls enable the developer to create fine grained controls over export behavior. The controls are rendered in the export UI.

Returns:
an array of PortletDataHandlerControls

getImportControls

public PortletDataHandlerControl[] getImportControls()
Description copied from interface: PortletDataHandler
Returns an array of the controls defined for this data handler. These controls enable the developer to create fine grained controls over import behavior. The controls are rendered in the import UI.

Returns:
An array of PortletDataHandlerControls

isPublishToLiveByDefault

public boolean isPublishToLiveByDefault()
Description copied from interface: PortletDataHandler
Returns whether the data exported by this handler should be included by default when publishing to live. This should only be 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.

Specified by:
isPublishToLiveByDefault in interface PortletDataHandler
Overrides:
isPublishToLiveByDefault in class BasePortletDataHandler
Returns:
true to publish to live by default

doDeleteData

protected PortletPreferences doDeleteData(PortletDataContext context,
                                          String portletId,
                                          PortletPreferences preferences)
                                   throws Exception
Overrides:
doDeleteData in class BasePortletDataHandler
Throws:
Exception

doExportData

protected String doExportData(PortletDataContext context,
                              String portletId,
                              PortletPreferences preferences)
                       throws Exception
Overrides:
doExportData in class BasePortletDataHandler
Throws:
Exception

doImportData

protected PortletPreferences doImportData(PortletDataContext context,
                                          String portletId,
                                          PortletPreferences preferences,
                                          String data)
                                   throws Exception
Overrides:
doImportData in class BasePortletDataHandler
Throws:
Exception

exportFolder

protected void exportFolder(PortletDataContext context,
                            Element foldersElement,
                            Element entriesElement,
                            BookmarksFolder folder)
                     throws Exception
Throws:
Exception

exportEntry

protected void exportEntry(PortletDataContext context,
                           Element foldersElement,
                           Element entriesElement,
                           BookmarksEntry entry)
                    throws Exception
Throws:
Exception

exportParentFolder

protected void exportParentFolder(PortletDataContext context,
                                  Element foldersElement,
                                  long folderId)
                           throws Exception
Throws:
Exception

getEntryPath

protected String getEntryPath(PortletDataContext context,
                              BookmarksEntry entry)

getFolderPath

protected String getFolderPath(PortletDataContext context,
                               BookmarksFolder folder)

getImportFolderPath

protected String getImportFolderPath(PortletDataContext context,
                                     long folderId)

importEntry

protected void importEntry(PortletDataContext context,
                           BookmarksEntry entry)
                    throws Exception
Throws:
Exception

importFolder

protected void importFolder(PortletDataContext context,
                            BookmarksFolder folder)
                     throws Exception
Throws:
Exception

Liferay 6.0.5