com.liferay.portlet.messageboards.service.impl
Class MBMessageLocalServiceImpl
java.lang.Object
com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.messageboards.service.MBMessageLocalService
- public class MBMessageLocalServiceImpl
- extends MBMessageLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
com.liferay.portlet.messageboards.model.MBMessage |
addDiscussionMessage(long userId,
long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
com.liferay.portlet.messageboards.model.MBMessage |
addDiscussionMessage(long userId,
java.lang.String subject,
java.lang.String body)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long userId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long userId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long userId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long userId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long userId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long userId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addMessageResources(long categoryId,
long messageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addMessageResources(long categoryId,
long messageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addMessageResources(long categoryId,
java.lang.String topicId,
long messageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addMessageResources(long categoryId,
java.lang.String topicId,
long messageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addMessageResources(com.liferay.portlet.messageboards.model.MBCategory category,
com.liferay.portlet.messageboards.model.MBMessage message,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addMessageResources(com.liferay.portlet.messageboards.model.MBCategory category,
com.liferay.portlet.messageboards.model.MBMessage message,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
deleteDiscussionMessage(long messageId)
|
void |
deleteDiscussionMessages(java.lang.String className,
long classPK)
|
void |
deleteMessage(long messageId)
|
void |
deleteMessage(com.liferay.portlet.messageboards.model.MBMessage message)
|
int |
getCategoriesMessagesCount(java.util.List categoryIds)
|
protected com.liferay.portlet.messageboards.model.MBCategory |
getCategory(com.liferay.portlet.messageboards.model.MBMessage message,
long categoryId)
|
java.util.List |
getCategoryMessages(long categoryId,
int begin,
int end)
|
java.util.List |
getCategoryMessages(long categoryId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getCategoryMessagesCount(long categoryId)
|
java.util.List |
getCompanyMessages(long companyId,
int begin,
int end)
|
java.util.List |
getCompanyMessages(long companyId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getCompanyMessagesCount(long companyId)
|
com.liferay.portlet.messageboards.model.MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
java.lang.String className,
long classPK)
|
int |
getDiscussionMessagesCount(long classNameId,
long classPK)
|
java.util.List |
getGroupMessages(long groupId,
int begin,
int end)
|
java.util.List |
getGroupMessages(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getGroupMessagesCount(long groupId)
|
com.liferay.portlet.messageboards.model.MBMessage |
getMessage(long messageId)
|
com.liferay.portlet.messageboards.model.MBMessageDisplay |
getMessageDisplay(long messageId)
|
com.liferay.portlet.messageboards.model.MBMessageDisplay |
getMessageDisplay(com.liferay.portlet.messageboards.model.MBMessage message)
|
java.util.List |
getThreadMessages(long threadId)
|
java.util.List |
getThreadMessages(long threadId,
java.util.Comparator comparator)
|
int |
getThreadMessagesCount(long threadId)
|
protected void |
logAddMessage(long messageId,
org.apache.commons.lang.time.StopWatch stopWatch,
int block)
|
protected void |
notifySubscribers(com.liferay.portlet.messageboards.model.MBCategory category,
com.liferay.portlet.messageboards.model.MBMessage message,
javax.portlet.PortletPreferences prefs,
boolean update)
|
protected void |
sendBlogsCommentsEmail(long userId,
long entryId,
com.liferay.portlet.messageboards.model.MBMessage message,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
void |
subscribeMessage(long userId,
long messageId)
|
void |
unsubscribeMessage(long userId,
long messageId)
|
protected void |
updateAsset(com.liferay.portlet.messageboards.model.MBMessage message,
java.lang.String[] tagsEntries)
|
com.liferay.portlet.messageboards.model.MBMessage |
updateDiscussionMessage(long messageId,
java.lang.String subject,
java.lang.String body)
|
com.liferay.portlet.messageboards.model.MBMessage |
updateMessage(long messageId,
java.util.Date createDate,
java.util.Date modifiedDate)
|
com.liferay.portlet.messageboards.model.MBMessage |
updateMessage(long messageId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs)
|
com.liferay.portlet.messageboards.model.MBMessage |
updateMessage(long messageId,
java.lang.String body)
|
protected void |
validate(java.lang.String subject,
java.lang.String body)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBMessageLocalServiceImpl
public MBMessageLocalServiceImpl()
addDiscussionMessage
public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long userId,
java.lang.String subject,
java.lang.String body)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addDiscussionMessage
public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long userId,
long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long userId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessageResources
public void addMessageResources(long categoryId,
long messageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessageResources
public void addMessageResources(long categoryId,
java.lang.String topicId,
long messageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessageResources
public void addMessageResources(com.liferay.portlet.messageboards.model.MBCategory category,
com.liferay.portlet.messageboards.model.MBMessage message,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessageResources
public void addMessageResources(long categoryId,
long messageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessageResources
public void addMessageResources(long categoryId,
java.lang.String topicId,
long messageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessageResources
public void addMessageResources(com.liferay.portlet.messageboards.model.MBCategory category,
com.liferay.portlet.messageboards.model.MBMessage message,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteDiscussionMessage
public void deleteDiscussionMessage(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteDiscussionMessages
public void deleteDiscussionMessages(java.lang.String className,
long classPK)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteMessage
public void deleteMessage(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteMessage
public void deleteMessage(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
getCategoryMessages
public java.util.List getCategoryMessages(long categoryId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategoryMessages
public java.util.List getCategoryMessages(long categoryId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategoryMessagesCount
public int getCategoryMessagesCount(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategoriesMessagesCount
public int getCategoriesMessagesCount(java.util.List categoryIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCompanyMessages
public java.util.List getCompanyMessages(long companyId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCompanyMessages
public java.util.List getCompanyMessages(long companyId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCompanyMessagesCount
public int getCompanyMessagesCount(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getDiscussionMessageDisplay
public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(long userId,
java.lang.String className,
long classPK)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getDiscussionMessagesCount
public int getDiscussionMessagesCount(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupMessages
public java.util.List getGroupMessages(long groupId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupMessages
public java.util.List getGroupMessages(long groupId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupMessagesCount
public int getGroupMessagesCount(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getMessage
public com.liferay.portlet.messageboards.model.MBMessage getMessage(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getMessageDisplay
public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getMessageDisplay
public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(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
getThreadMessages
public java.util.List getThreadMessages(long threadId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getThreadMessages
public java.util.List getThreadMessages(long threadId,
java.util.Comparator comparator)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getThreadMessagesCount
public int getThreadMessagesCount(long threadId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
subscribeMessage
public void subscribeMessage(long userId,
long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsubscribeMessage
public void unsubscribeMessage(long userId,
long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateDiscussionMessage
public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(long messageId,
java.lang.String subject,
java.lang.String body)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateMessage
public com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateMessage
public com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId,
java.util.Date createDate,
java.util.Date modifiedDate)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateMessage
public com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId,
java.lang.String body)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategory
protected com.liferay.portlet.messageboards.model.MBCategory getCategory(com.liferay.portlet.messageboards.model.MBMessage message,
long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
logAddMessage
protected void logAddMessage(long messageId,
org.apache.commons.lang.time.StopWatch stopWatch,
int block)
notifySubscribers
protected void notifySubscribers(com.liferay.portlet.messageboards.model.MBCategory category,
com.liferay.portlet.messageboards.model.MBMessage message,
javax.portlet.PortletPreferences prefs,
boolean update)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
sendBlogsCommentsEmail
protected void sendBlogsCommentsEmail(long userId,
long entryId,
com.liferay.portlet.messageboards.model.MBMessage message,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws java.io.IOException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
java.io.IOException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateAsset
protected void updateAsset(com.liferay.portlet.messageboards.model.MBMessage message,
java.lang.String[] tagsEntries)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
protected void validate(java.lang.String subject,
java.lang.String body)
throws com.liferay.portal.PortalException
- Throws:
com.liferay.portal.PortalException