com.liferay.portlet.messageboards.lar
Class MBPortletDataHandlerImpl
java.lang.Object
com.liferay.portal.lar.BasePortletDataHandler
com.liferay.portlet.messageboards.lar.MBPortletDataHandlerImpl
- All Implemented Interfaces:
- com.liferay.portal.lar.PortletDataHandler
public class MBPortletDataHandlerImpl
- extends com.liferay.portal.lar.BasePortletDataHandler
View Source
- Author:
- Bruno Farache, Raymond Augé
Method Summary |
javax.portlet.PortletPreferences |
deleteData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
|
protected void |
exportCategory(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element categoriesEl,
com.liferay.portal.kernel.xml.Element messagesEl,
com.liferay.portal.kernel.xml.Element messageFlagsEl,
com.liferay.portlet.messageboards.model.MBCategory category)
|
java.lang.String |
exportData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
|
protected void |
exportMessage(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element categoriesEl,
com.liferay.portal.kernel.xml.Element messagesEl,
com.liferay.portal.kernel.xml.Element messageFlagsEl,
com.liferay.portlet.messageboards.model.MBMessage message)
|
protected void |
exportMessageFlag(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element messageFlagsEl,
com.liferay.portlet.messageboards.model.MBMessageFlag messageFlag)
|
protected void |
exportParentCategory(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element categoriesEl,
long categoryId)
|
protected void |
exportUserBan(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element userBansEl,
com.liferay.portlet.messageboards.model.MBBan ban)
|
protected java.lang.String |
getCategoryPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBCategory category)
|
com.liferay.portal.lar.PortletDataHandlerControl[] |
getExportControls()
|
protected java.lang.String |
getImportCategoryPath(com.liferay.portal.lar.PortletDataContext context,
long categoryId)
|
com.liferay.portal.lar.PortletDataHandlerControl[] |
getImportControls()
|
protected java.lang.String |
getMessageAttachementBinPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBMessage message,
java.lang.String attachment)
|
protected java.lang.String |
getMessageFlagPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBMessageFlag messageFlag)
|
protected java.lang.String |
getMessagePath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBMessage message)
|
protected java.lang.String |
getUserBanPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBBan ban)
|
protected void |
importBan(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBBan ban)
|
protected void |
importCategory(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> categoryPKs,
com.liferay.portlet.messageboards.model.MBCategory category)
|
javax.portlet.PortletPreferences |
importData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences,
java.lang.String data)
|
protected void |
importFlag(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> messagePKs,
com.liferay.portlet.messageboards.model.MBMessageFlag flag)
|
protected void |
importMessage(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> categoryPKs,
java.util.Map<java.lang.Long,java.lang.Long> threadPKs,
java.util.Map<java.lang.Long,java.lang.Long> messagePKs,
com.liferay.portal.kernel.xml.Element messageEl,
com.liferay.portlet.messageboards.model.MBMessage message)
|
Methods inherited from class com.liferay.portal.lar.BasePortletDataHandler |
isAlwaysExportable, isPublishToLiveByDefault |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBPortletDataHandlerImpl
public MBPortletDataHandlerImpl()
deleteData
public javax.portlet.PortletPreferences deleteData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
exportData
public java.lang.String exportData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
getExportControls
public com.liferay.portal.lar.PortletDataHandlerControl[] getExportControls()
getImportControls
public com.liferay.portal.lar.PortletDataHandlerControl[] getImportControls()
importData
public javax.portlet.PortletPreferences importData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences,
java.lang.String data)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
exportCategory
protected void exportCategory(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element categoriesEl,
com.liferay.portal.kernel.xml.Element messagesEl,
com.liferay.portal.kernel.xml.Element messageFlagsEl,
com.liferay.portlet.messageboards.model.MBCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportMessage
protected void exportMessage(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element categoriesEl,
com.liferay.portal.kernel.xml.Element messagesEl,
com.liferay.portal.kernel.xml.Element messageFlagsEl,
com.liferay.portlet.messageboards.model.MBMessage message)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportMessageFlag
protected void exportMessageFlag(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element messageFlagsEl,
com.liferay.portlet.messageboards.model.MBMessageFlag messageFlag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportParentCategory
protected void exportParentCategory(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element categoriesEl,
long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportUserBan
protected void exportUserBan(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element userBansEl,
com.liferay.portlet.messageboards.model.MBBan ban)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
importBan
protected void importBan(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBBan ban)
throws java.lang.Exception
- Throws:
java.lang.Exception
importCategory
protected void importCategory(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> categoryPKs,
com.liferay.portlet.messageboards.model.MBCategory category)
throws java.lang.Exception
- Throws:
java.lang.Exception
importFlag
protected void importFlag(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> messagePKs,
com.liferay.portlet.messageboards.model.MBMessageFlag flag)
throws java.lang.Exception
- Throws:
java.lang.Exception
importMessage
protected void importMessage(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> categoryPKs,
java.util.Map<java.lang.Long,java.lang.Long> threadPKs,
java.util.Map<java.lang.Long,java.lang.Long> messagePKs,
com.liferay.portal.kernel.xml.Element messageEl,
com.liferay.portlet.messageboards.model.MBMessage message)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCategoryPath
protected java.lang.String getCategoryPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBCategory category)
getImportCategoryPath
protected java.lang.String getImportCategoryPath(com.liferay.portal.lar.PortletDataContext context,
long categoryId)
getMessageAttachementBinPath
protected java.lang.String getMessageAttachementBinPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBMessage message,
java.lang.String attachment)
getMessageFlagPath
protected java.lang.String getMessageFlagPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBMessageFlag messageFlag)
getMessagePath
protected java.lang.String getMessagePath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBMessage message)
getUserBanPath
protected java.lang.String getUserBanPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.messageboards.model.MBBan ban)