com.liferay.portlet.imagegallery.lar
Class IGPortletDataHandlerImpl

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

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

View Source

Author:
Bruno Farache

Constructor Summary
IGPortletDataHandlerImpl()
           
 
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)
           
 com.liferay.portal.kernel.lar.PortletDataHandlerControl[] getExportControls()
           
protected  java.lang.String getFolderName(long companyId, long groupId, long parentFolderId, java.lang.String name, int count)
           
protected  java.lang.String getIGImageDir(com.liferay.portlet.imagegallery.model.IGImage igImage)
           
 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 importFolder(com.liferay.portal.kernel.lar.PortletDataContext context, java.util.Map<java.lang.Long,java.lang.Long> folderPKs, com.liferay.portlet.imagegallery.model.IGFolder folder)
           
protected  void importIGImage(com.liferay.portal.kernel.lar.PortletDataContext context, java.util.Map<java.lang.Long,java.lang.Long> folderPKs, com.liferay.portlet.imagegallery.model.IGImage igImage)
           
 boolean isPublishToLiveByDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGPortletDataHandlerImpl

public IGPortletDataHandlerImpl()
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()
                                                                            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

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

getFolderName

protected java.lang.String getFolderName(long companyId,
                                         long groupId,
                                         long parentFolderId,
                                         java.lang.String name,
                                         int count)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getIGImageDir

protected java.lang.String getIGImageDir(com.liferay.portlet.imagegallery.model.IGImage igImage)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importFolder

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

importIGImage

protected void importIGImage(com.liferay.portal.kernel.lar.PortletDataContext context,
                             java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
                             com.liferay.portlet.imagegallery.model.IGImage igImage)
                      throws java.lang.Exception
Throws:
java.lang.Exception