com.liferay.portlet.messageboards.lar
Class MBPortletDataHandlerImpl
java.lang.Object
com.liferay.portal.kernel.lar.BasePortletDataHandler
com.liferay.portlet.messageboards.lar.MBPortletDataHandlerImpl
- All Implemented Interfaces:
- PortletDataHandler
public class MBPortletDataHandlerImpl
- extends BasePortletDataHandler
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 |
exportBan(PortletDataContext context,
Element userBansElement,
MBBan ban)
|
protected void |
exportCategory(PortletDataContext context,
Element categoriesElement,
Element messagesElement,
Element messageFlagsElement,
MBCategory category)
|
protected void |
exportMessage(PortletDataContext context,
Element categoriesElement,
Element messagesElement,
Element messageFlagsElement,
MBMessage message)
|
protected void |
exportMessageFlag(PortletDataContext context,
Element messageFlagsElement,
MBMessageFlag messageFlag)
|
protected void |
exportParentCategory(PortletDataContext context,
Element categoriesElement,
long categoryId)
|
protected String |
getCategoryPath(PortletDataContext context,
MBCategory category)
|
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
protected String |
getImportCategoryPath(PortletDataContext context,
long categoryId)
|
PortletDataHandlerControl[] |
getImportControls()
Returns an array of the controls defined for this data handler. |
protected String |
getMessageAttachementBinPath(PortletDataContext context,
MBMessage message,
String attachment)
|
protected String |
getMessageFlagPath(PortletDataContext context,
MBMessageFlag messageFlag)
|
protected String |
getMessagePath(PortletDataContext context,
MBMessage message)
|
protected String |
getUserBanPath(PortletDataContext context,
MBBan ban)
|
protected void |
importBan(PortletDataContext context,
MBBan ban)
|
protected void |
importCategory(PortletDataContext context,
MBCategory category)
|
protected void |
importMessage(PortletDataContext context,
Element messageElement,
MBMessage message)
|
protected void |
importMessageFlag(PortletDataContext context,
MBMessageFlag flag)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBPortletDataHandlerImpl
public MBPortletDataHandlerImpl()
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
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
exportBan
protected void exportBan(PortletDataContext context,
Element userBansElement,
MBBan ban)
throws Exception
- Throws:
Exception
exportCategory
protected void exportCategory(PortletDataContext context,
Element categoriesElement,
Element messagesElement,
Element messageFlagsElement,
MBCategory category)
throws Exception
- Throws:
Exception
exportMessage
protected void exportMessage(PortletDataContext context,
Element categoriesElement,
Element messagesElement,
Element messageFlagsElement,
MBMessage message)
throws Exception
- Throws:
Exception
exportMessageFlag
protected void exportMessageFlag(PortletDataContext context,
Element messageFlagsElement,
MBMessageFlag messageFlag)
throws Exception
- Throws:
Exception
exportParentCategory
protected void exportParentCategory(PortletDataContext context,
Element categoriesElement,
long categoryId)
throws Exception
- Throws:
Exception
getCategoryPath
protected String getCategoryPath(PortletDataContext context,
MBCategory category)
getImportCategoryPath
protected String getImportCategoryPath(PortletDataContext context,
long categoryId)
getMessageAttachementBinPath
protected String getMessageAttachementBinPath(PortletDataContext context,
MBMessage message,
String attachment)
getMessageFlagPath
protected String getMessageFlagPath(PortletDataContext context,
MBMessageFlag messageFlag)
getMessagePath
protected String getMessagePath(PortletDataContext context,
MBMessage message)
getUserBanPath
protected String getUserBanPath(PortletDataContext context,
MBBan ban)
importBan
protected void importBan(PortletDataContext context,
MBBan ban)
throws Exception
- Throws:
Exception
importCategory
protected void importCategory(PortletDataContext context,
MBCategory category)
throws Exception
- Throws:
Exception
importMessage
protected void importMessage(PortletDataContext context,
Element messageElement,
MBMessage message)
throws Exception
- Throws:
Exception
importMessageFlag
protected void importMessageFlag(PortletDataContext context,
MBMessageFlag flag)
throws Exception
- Throws:
Exception