com.liferay.portlet.bookmarks.lar
Class BookmarksPortletDataHandlerImpl

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

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

View Source

Author:
Jorge Ferrer, Bruno Farache, Raymond Augé

Constructor Summary
BookmarksPortletDataHandlerImpl()
           
 
Method Summary
 javax.portlet.PortletPreferences deleteData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs)
           
 java.lang.String exportData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs)
           
protected  void exportEntry(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element foldersEl, org.dom4j.Element entriesEl, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
           
protected  void exportFolder(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element foldersEl, org.dom4j.Element entriesEl, com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
           
protected  void exportParentFolder(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element foldersEl, long folderId)
           
protected  java.lang.String getEntryPath(com.liferay.portal.kernel.lar.PortletDataContext context, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
           
 com.liferay.portal.kernel.lar.PortletDataHandlerControl[] getExportControls()
           
protected  java.lang.String getFolderPath(com.liferay.portal.kernel.lar.PortletDataContext context, com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
           
 com.liferay.portal.kernel.lar.PortletDataHandlerControl[] getImportControls()
           
 javax.portlet.PortletPreferences importData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs, java.lang.String data)
           
protected  void importEntry(com.liferay.portal.kernel.lar.PortletDataContext context, java.util.Map<java.lang.Long,java.lang.Long> folderPKs, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
           
protected  void importFolder(com.liferay.portal.kernel.lar.PortletDataContext context, java.util.Map<java.lang.Long,java.lang.Long> folderPKs, com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
           
 boolean isPublishToLiveByDefault()
           
 
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

deleteData

public javax.portlet.PortletPreferences deleteData(com.liferay.portal.kernel.lar.PortletDataContext context,
                                                   java.lang.String portletId,
                                                   javax.portlet.PortletPreferences prefs)
                                            throws com.liferay.portal.kernel.lar.PortletDataException
Specified by:
deleteData 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

getExportControls

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

getImportControls

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

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

isPublishToLiveByDefault

public boolean isPublishToLiveByDefault()
Specified by:
isPublishToLiveByDefault in interface com.liferay.portal.kernel.lar.PortletDataHandler

exportFolder

protected void exportFolder(com.liferay.portal.kernel.lar.PortletDataContext context,
                            org.dom4j.Element foldersEl,
                            org.dom4j.Element entriesEl,
                            com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportEntry

protected void exportEntry(com.liferay.portal.kernel.lar.PortletDataContext context,
                           org.dom4j.Element foldersEl,
                           org.dom4j.Element entriesEl,
                           com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportParentFolder

protected void exportParentFolder(com.liferay.portal.kernel.lar.PortletDataContext context,
                                  org.dom4j.Element foldersEl,
                                  long folderId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEntryPath

protected java.lang.String getEntryPath(com.liferay.portal.kernel.lar.PortletDataContext context,
                                        com.liferay.portlet.bookmarks.model.BookmarksEntry entry)

getFolderPath

protected java.lang.String getFolderPath(com.liferay.portal.kernel.lar.PortletDataContext context,
                                         com.liferay.portlet.bookmarks.model.BookmarksFolder folder)

importEntry

protected void importEntry(com.liferay.portal.kernel.lar.PortletDataContext context,
                           java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
                           com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
                    throws java.lang.Exception
Throws:
java.lang.Exception

importFolder

protected void importFolder(com.liferay.portal.kernel.lar.PortletDataContext context,
                            java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
                            com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
                     throws java.lang.Exception
Throws:
java.lang.Exception