com.liferay.portlet.messageboards.lar
Class MBMessageStagedModelDataHandler
java.lang.Object
com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler<MBMessage>
com.liferay.portlet.messageboards.lar.MBMessageStagedModelDataHandler
- All Implemented Interfaces:
- StagedModelDataHandler<MBMessage>
public class MBMessageStagedModelDataHandler
- extends BaseStagedModelDataHandler<MBMessage>
|
Method Summary |
protected MBMessage |
addDiscussionMessage(PortletDataContext portletDataContext,
long userId,
long threadId,
long parentMessageId,
MBMessage message,
ServiceContext serviceContext)
|
void |
deleteStagedModel(MBMessage message)
|
void |
deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
|
protected void |
doExportStagedModel(PortletDataContext portletDataContext,
MBMessage message)
|
protected void |
doImportStagedModel(PortletDataContext portletDataContext,
MBMessage message)
|
protected void |
doRestoreStagedModel(PortletDataContext portletDataContext,
MBMessage message)
|
MBMessage |
fetchStagedModelByUuidAndGroupId(String uuid,
long groupId)
|
List<MBMessage> |
fetchStagedModelsByUuidAndCompanyId(String uuid,
long companyId)
|
protected List<ObjectValuePair<String,InputStream>> |
getAttachments(PortletDataContext portletDataContext,
Element messageElement,
MBMessage message)
|
String[] |
getClassNames()
|
String |
getDisplayName(MBMessage message)
|
| Methods inherited from class com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler |
countStagedModel, doImportMissingReference, exportAssetCategories, exportAssetTags, exportComments, exportRatings, exportStagedModel, fetchMissingReference, getExportableStatuses, getProcessFlag, getReferenceAttributes, importAssetCategories, importAssetTags, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, isStagedModelInTrash, restoreStagedModel, validateExport, validateMissingGroupReference, validateMissingReference, validateReference |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAMES
public static final String[] CLASS_NAMES
MBMessageStagedModelDataHandler
public MBMessageStagedModelDataHandler()
deleteStagedModel
public void deleteStagedModel(MBMessage message)
throws PortalException
- Throws:
PortalException
deleteStagedModel
public void deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
throws PortalException
- Specified by:
deleteStagedModel in interface StagedModelDataHandler<MBMessage>- Specified by:
deleteStagedModel in class BaseStagedModelDataHandler<MBMessage>
- Throws:
PortalException
fetchStagedModelByUuidAndGroupId
public MBMessage fetchStagedModelByUuidAndGroupId(String uuid,
long groupId)
- Specified by:
fetchStagedModelByUuidAndGroupId in interface StagedModelDataHandler<MBMessage>- Overrides:
fetchStagedModelByUuidAndGroupId in class BaseStagedModelDataHandler<MBMessage>
fetchStagedModelsByUuidAndCompanyId
public List<MBMessage> fetchStagedModelsByUuidAndCompanyId(String uuid,
long companyId)
- Specified by:
fetchStagedModelsByUuidAndCompanyId in interface StagedModelDataHandler<MBMessage>- Specified by:
fetchStagedModelsByUuidAndCompanyId in class BaseStagedModelDataHandler<MBMessage>
getClassNames
public String[] getClassNames()
- Specified by:
getClassNames in interface StagedModelDataHandler<MBMessage>- Specified by:
getClassNames in class BaseStagedModelDataHandler<MBMessage>
getDisplayName
public String getDisplayName(MBMessage message)
- Specified by:
getDisplayName in interface StagedModelDataHandler<MBMessage>- Overrides:
getDisplayName in class BaseStagedModelDataHandler<MBMessage>
addDiscussionMessage
protected MBMessage addDiscussionMessage(PortletDataContext portletDataContext,
long userId,
long threadId,
long parentMessageId,
MBMessage message,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
doExportStagedModel
protected void doExportStagedModel(PortletDataContext portletDataContext,
MBMessage message)
throws Exception
- Specified by:
doExportStagedModel in class BaseStagedModelDataHandler<MBMessage>
- Throws:
Exception
doImportStagedModel
protected void doImportStagedModel(PortletDataContext portletDataContext,
MBMessage message)
throws Exception
- Specified by:
doImportStagedModel in class BaseStagedModelDataHandler<MBMessage>
- Throws:
Exception
doRestoreStagedModel
protected void doRestoreStagedModel(PortletDataContext portletDataContext,
MBMessage message)
throws Exception
- Overrides:
doRestoreStagedModel in class BaseStagedModelDataHandler<MBMessage>
- Throws:
Exception
getAttachments
protected List<ObjectValuePair<String,InputStream>> getAttachments(PortletDataContext portletDataContext,
Element messageElement,
MBMessage message)