com.liferay.portlet.messageboards.service.impl
Class MBMessageLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, MBMessageLocalService
public class MBMessageLocalServiceImpl
- extends MBMessageLocalServiceBaseImpl
| Fields inherited from class com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl |
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, groupService, lockFinder, lockLocalService, lockPersistence, mailService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadFlagLocalService, mbThreadFlagPersistence, mbThreadLocalService, mbThreadPersistence, mbThreadService, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
|
Method Summary |
MBMessage |
addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
int workflowAction)
|
MBMessage |
addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String fileName,
File file,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long categoryId,
String subject,
String body,
ServiceContext serviceContext)
|
void |
addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addMessageResources(long messageId,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addMessageResources(MBMessage message,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addMessageResources(MBMessage message,
String[] groupPermissions,
String[] guestPermissions)
|
MBMessage |
deleteDiscussionMessage(long messageId)
|
void |
deleteDiscussionMessages(String className,
long classPK)
|
protected void |
deleteDiscussionSocialActivities(String className,
MBMessage message)
|
MBMessage |
deleteMessage(long messageId)
|
MBMessage |
deleteMessage(MBMessage message)
|
void |
deleteMessageAttachment(long messageId,
String fileName)
|
void |
deleteMessageAttachments(long messageId)
|
protected String |
getBody(String subject,
String body)
|
List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
|
List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator obc)
|
int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status)
|
List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end)
|
List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end,
OrderByComparator obc)
|
int |
getCompanyMessagesCount(long companyId,
int status)
|
MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status)
|
MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
String threadView)
|
int |
getDiscussionMessagesCount(long classNameId,
long classPK,
int status)
|
int |
getDiscussionMessagesCount(String className,
long classPK,
int status)
|
List<MBDiscussion> |
getDiscussions(String className)
|
List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end)
|
List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end,
OrderByComparator obc)
|
List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end)
|
List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator obc)
|
int |
getGroupMessagesCount(long groupId,
int status)
|
int |
getGroupMessagesCount(long groupId,
long userId,
int status)
|
MBMessage |
getMessage(long messageId)
|
MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
|
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
String threadView,
boolean includePrevAndNext)
|
List<MBMessage> |
getMessages(String className,
long classPK,
int status)
|
protected String |
getMessageURL(MBMessage message,
ServiceContext serviceContext)
|
List<MBMessage> |
getNoAssetMessages()
|
int |
getPositionInThread(long messageId)
|
protected String |
getSubject(String subject,
String body)
|
List<MBMessage> |
getThreadMessages(long threadId,
int status)
|
List<MBMessage> |
getThreadMessages(long threadId,
int status,
Comparator<MBMessage> comparator)
|
List<MBMessage> |
getThreadMessages(long threadId,
int status,
int start,
int end)
|
int |
getThreadMessagesCount(long threadId,
int status)
|
List<MBMessage> |
getThreadRepliesMessages(long threadId,
int status,
int start,
int end)
|
List<MBMessage> |
getUserDiscussionMessages(long userId,
long[] classNameIds,
int status,
int start,
int end,
OrderByComparator obc)
|
List<MBMessage> |
getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
OrderByComparator obc)
|
List<MBMessage> |
getUserDiscussionMessages(long userId,
String className,
long classPK,
int status,
int start,
int end,
OrderByComparator obc)
|
int |
getUserDiscussionMessagesCount(long userId,
long[] classNameIds,
int status)
|
int |
getUserDiscussionMessagesCount(long userId,
long classNameId,
long classPK,
int status)
|
int |
getUserDiscussionMessagesCount(long userId,
String className,
long classPK,
int status)
|
void |
moveDiscussionToTrash(String className,
long classPK)
|
long |
moveMessageAttachmentToTrash(long userId,
long messageId,
String fileName)
|
protected void |
notifyDiscussionSubscribers(MBMessage message,
ServiceContext serviceContext)
|
protected void |
notifySubscribers(MBMessage message,
ServiceContext serviceContext)
|
protected void |
pingPingback(MBMessage message,
ServiceContext serviceContext)
|
void |
restoreDiscussionFromTrash(String className,
long classPK)
|
void |
restoreMessageAttachmentFromTrash(long userId,
long messageId,
String deletedFileName)
|
void |
subscribeMessage(long userId,
long messageId)
|
void |
unsubscribeMessage(long userId,
long messageId)
|
void |
updateAnswer(long messageId,
boolean answer,
boolean cascade)
|
void |
updateAnswer(MBMessage message,
boolean answer,
boolean cascade)
|
void |
updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
protected void |
updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds,
boolean assetEntryVisible)
|
MBMessage |
updateDiscussionMessage(long userId,
long messageId,
String className,
long classPK,
String subject,
String body,
ServiceContext serviceContext)
|
MBMessage |
updateMessage(long userId,
long messageId,
String subject,
String body,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
updateMessage(long messageId,
String body)
|
protected void |
updatePriorities(long threadId,
double priority)
|
MBMessage |
updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext)
|
protected void |
updateThreadStatus(MBThread thread,
MBMessage message,
User user,
int oldStatus,
Date modifiedDate)
|
void |
updateUserName(long userId,
String userName)
|
protected void |
validate(String subject,
String body)
|
| Methods inherited from class com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl |
addMBMessage, afterPropertiesSet, createMBMessage, deleteMBMessage, deleteMBMessage, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBMessage, fetchMBMessageByUuidAndCompanyId, fetchMBMessageByUuidAndGroupId, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLockFinder, getLockLocalService, getLockPersistence, getMailService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessage, getMBMessageByUuidAndCompanyId, getMBMessageByUuidAndGroupId, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessages, getMBMessagesCount, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getModelClass, getModelClassName, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLockFinder, setLockLocalService, setLockPersistence, setMailService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadFlagLocalService, setMBThreadFlagPersistence, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateMBMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBMessageLocalServiceImpl
public MBMessageLocalServiceImpl()
addDiscussionMessage
public MBMessage addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
int workflowAction)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addDiscussionMessage
public MBMessage addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessage
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessage
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String fileName,
File file,
ServiceContext serviceContext)
throws FileNotFoundException,
PortalException,
SystemException
- Throws:
FileNotFoundException
PortalException
SystemException
addMessage
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessage
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws FileNotFoundException,
PortalException,
SystemException
- Throws:
FileNotFoundException
PortalException
SystemException
addMessage
public MBMessage addMessage(long userId,
String userName,
long categoryId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public void addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public void addMessageResources(long messageId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public void addMessageResources(MBMessage message,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public void addMessageResources(MBMessage message,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteDiscussionMessage
@Indexable(type=DELETE)
public MBMessage deleteDiscussionMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteDiscussionMessages
public void deleteDiscussionMessages(String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMessage
@Indexable(type=DELETE)
public MBMessage deleteMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMessage
@Indexable(type=DELETE)
public MBMessage deleteMessage(MBMessage message)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMessageAttachment
public void deleteMessageAttachment(long messageId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMessageAttachments
public void deleteMessageAttachments(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategoryMessages
public List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCategoryMessages
public List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getCategoryMessagesCount
public int getCategoryMessagesCount(long groupId,
long categoryId,
int status)
throws SystemException
- Throws:
SystemException
getCompanyMessages
public List<MBMessage> getCompanyMessages(long companyId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyMessages
public List<MBMessage> getCompanyMessages(long companyId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getCompanyMessagesCount
public int getCompanyMessagesCount(long companyId,
int status)
throws SystemException
- Throws:
SystemException
getDiscussionMessageDisplay
public MBMessageDisplay getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDiscussionMessageDisplay
public MBMessageDisplay getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
String threadView)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDiscussionMessagesCount
public int getDiscussionMessagesCount(long classNameId,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
getDiscussionMessagesCount
public int getDiscussionMessagesCount(String className,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
getDiscussions
public List<MBDiscussion> getDiscussions(String className)
throws SystemException
- Throws:
SystemException
getGroupMessages
public List<MBMessage> getGroupMessages(long groupId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getGroupMessages
public List<MBMessage> getGroupMessages(long groupId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getGroupMessages
public List<MBMessage> getGroupMessages(long groupId,
long userId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getGroupMessages
public List<MBMessage> getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getGroupMessagesCount
public int getGroupMessagesCount(long groupId,
int status)
throws SystemException
- Throws:
SystemException
getGroupMessagesCount
public int getGroupMessagesCount(long groupId,
long userId,
int status)
throws SystemException
- Throws:
SystemException
getMessage
public MBMessage getMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMessageDisplay
public MBMessageDisplay getMessageDisplay(long userId,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMessageDisplay
public MBMessageDisplay getMessageDisplay(long userId,
MBMessage message,
int status,
String threadView,
boolean includePrevAndNext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMessages
public List<MBMessage> getMessages(String className,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
getNoAssetMessages
public List<MBMessage> getNoAssetMessages()
throws SystemException
- Throws:
SystemException
getPositionInThread
public int getPositionInThread(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getThreadMessages
public List<MBMessage> getThreadMessages(long threadId,
int status)
throws SystemException
- Throws:
SystemException
getThreadMessages
public List<MBMessage> getThreadMessages(long threadId,
int status,
Comparator<MBMessage> comparator)
throws SystemException
- Throws:
SystemException
getThreadMessages
public List<MBMessage> getThreadMessages(long threadId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getThreadMessagesCount
public int getThreadMessagesCount(long threadId,
int status)
throws SystemException
- Throws:
SystemException
getThreadRepliesMessages
public List<MBMessage> getThreadRepliesMessages(long threadId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getUserDiscussionMessages
public List<MBMessage> getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getUserDiscussionMessages
public List<MBMessage> getUserDiscussionMessages(long userId,
long[] classNameIds,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getUserDiscussionMessages
public List<MBMessage> getUserDiscussionMessages(long userId,
String className,
long classPK,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getUserDiscussionMessagesCount
public int getUserDiscussionMessagesCount(long userId,
long classNameId,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
getUserDiscussionMessagesCount
public int getUserDiscussionMessagesCount(long userId,
long[] classNameIds,
int status)
throws SystemException
- Throws:
SystemException
getUserDiscussionMessagesCount
public int getUserDiscussionMessagesCount(long userId,
String className,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
moveDiscussionToTrash
public void moveDiscussionToTrash(String className,
long classPK)
throws SystemException
- Throws:
SystemException
moveMessageAttachmentToTrash
public long moveMessageAttachmentToTrash(long userId,
long messageId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
restoreDiscussionFromTrash
public void restoreDiscussionFromTrash(String className,
long classPK)
throws SystemException
- Throws:
SystemException
restoreMessageAttachmentFromTrash
public void restoreMessageAttachmentFromTrash(long userId,
long messageId,
String deletedFileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
subscribeMessage
public void subscribeMessage(long userId,
long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsubscribeMessage
public void unsubscribeMessage(long userId,
long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAnswer
public void updateAnswer(long messageId,
boolean answer,
boolean cascade)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAnswer
public void updateAnswer(MBMessage message,
boolean answer,
boolean cascade)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
public void updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateDiscussionMessage
public MBMessage updateDiscussionMessage(long userId,
long messageId,
String className,
long classPK,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateMessage
public MBMessage updateMessage(long userId,
long messageId,
String subject,
String body,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateMessage
public MBMessage updateMessage(long messageId,
String body)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateStatus
public MBMessage updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateUserName
public void updateUserName(long userId,
String userName)
throws SystemException
- Throws:
SystemException
deleteDiscussionSocialActivities
protected void deleteDiscussionSocialActivities(String className,
MBMessage message)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getBody
protected String getBody(String subject,
String body)
getMessageURL
protected String getMessageURL(MBMessage message,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getSubject
protected String getSubject(String subject,
String body)
notifyDiscussionSubscribers
protected void notifyDiscussionSubscribers(MBMessage message,
ServiceContext serviceContext)
throws SystemException
- Throws:
SystemException
notifySubscribers
protected void notifySubscribers(MBMessage message,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
pingPingback
protected void pingPingback(MBMessage message,
ServiceContext serviceContext)
updateAsset
protected void updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds,
boolean assetEntryVisible)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePriorities
protected void updatePriorities(long threadId,
double priority)
throws SystemException
- Throws:
SystemException
updateThreadStatus
protected void updateThreadStatus(MBThread thread,
MBMessage message,
User user,
int oldStatus,
Date modifiedDate)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(String subject,
String body)
throws PortalException
- Throws:
PortalException