com.liferay.portlet.messageboards.service
Class MBMessageLocalServiceUtil

java.lang.Object
  extended bycom.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil

public class MBMessageLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portlet.messageboards.service.MBMessageLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
MBMessageLocalService, MBMessageLocalServiceFactory

Constructor Summary
MBMessageLocalServiceUtil()
           
 
Method Summary
static MBMessage addDiscussionMessage(long userId, long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body)
           
static MBMessage addDiscussionMessage(long userId, long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ThemeDisplay themeDisplay)
           
static MBMessage addDiscussionMessage(long userId, java.lang.String subject, java.lang.String body)
           
static MBMessage addMBMessage(MBMessage model)
           
static 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, ThemeDisplay themeDisplay)
           
static 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, ThemeDisplay themeDisplay)
           
static 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, ThemeDisplay themeDisplay)
           
static 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, ThemeDisplay themeDisplay)
           
static 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, ThemeDisplay themeDisplay)
           
static MBMessage addMessage(java.lang.String uuid, 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, ThemeDisplay themeDisplay)
           
static MBMessage addMessage(java.lang.String uuid, 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, ThemeDisplay themeDisplay)
           
static void addMessageResources(long categoryId, long messageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addMessageResources(long categoryId, long messageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addMessageResources(long categoryId, java.lang.String topicId, long messageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addMessageResources(long categoryId, java.lang.String topicId, long messageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addMessageResources(MBCategory category, MBMessage message, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addMessageResources(MBCategory category, MBMessage message, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void afterPropertiesSet()
           
static void deleteDiscussionMessage(long messageId)
           
static void deleteDiscussionMessages(java.lang.String className, long classPK)
           
static void deleteMessage(long messageId)
           
static void deleteMessage(MBMessage message)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static ActivityTrackerFinder getActivityTrackerFinder()
           
static ActivityTrackerPersistence getActivityTrackerPersistence()
           
static BlogsEntryFinder getBlogsEntryFinder()
           
static BlogsEntryPersistence getBlogsEntryPersistence()
           
static int getCategoriesMessagesCount(java.util.List categoryIds)
           
static java.util.List getCategoryMessages(long categoryId, int begin, int end)
           
static java.util.List getCategoryMessages(long categoryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getCategoryMessagesCount(long categoryId)
           
static java.util.List getCompanyMessages(long companyId, int begin, int end)
           
static java.util.List getCompanyMessages(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getCompanyMessagesCount(long companyId)
           
static CompanyPersistence getCompanyPersistence()
           
static MBMessageDisplay getDiscussionMessageDisplay(long userId, java.lang.String className, long classPK)
           
static int getDiscussionMessagesCount(long classNameId, long classPK)
           
static GroupFinder getGroupFinder()
           
static java.util.List getGroupMessages(long groupId, int begin, int end)
           
static java.util.List getGroupMessages(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List getGroupMessages(long groupId, long userId, int begin, int end)
           
static java.util.List getGroupMessages(long groupId, long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getGroupMessagesCount(long groupId)
           
static int getGroupMessagesCount(long groupId, long userId)
           
static GroupPersistence getGroupPersistence()
           
static MBBanPersistence getMBBanPersistence()
           
static MBCategoryFinder getMBCategoryFinder()
           
static MBCategoryPersistence getMBCategoryPersistence()
           
static MBDiscussionPersistence getMBDiscussionPersistence()
           
static MBMessageFinder getMBMessageFinder()
           
static MBMessageFlagFinder getMBMessageFlagFinder()
           
static MBMessageFlagPersistence getMBMessageFlagPersistence()
           
static MBMessagePersistence getMBMessagePersistence()
           
static MBStatsUserPersistence getMBStatsUserPersistence()
           
static MBThreadFinder getMBThreadFinder()
           
static MBThreadPersistence getMBThreadPersistence()
           
static MBMessage getMessage(long messageId)
           
static MBMessageDisplay getMessageDisplay(long messageId)
           
static MBMessageDisplay getMessageDisplay(MBMessage message)
           
static java.util.List getMessages(java.lang.String className, long classPK)
           
static java.util.List getNoAssetMessages()
           
static PortletPreferencesFinder getPortletPreferencesFinder()
           
static PortletPreferencesPersistence getPortletPreferencesPersistence()
           
static ResourceFinder getResourceFinder()
           
static ResourcePersistence getResourcePersistence()
           
static SubscriptionPersistence getSubscriptionPersistence()
           
static TagsAssetFinder getTagsAssetFinder()
           
static TagsAssetPersistence getTagsAssetPersistence()
           
static TagsEntryFinder getTagsEntryFinder()
           
static TagsEntryPersistence getTagsEntryPersistence()
           
static java.util.List getThreadMessages(long threadId)
           
static java.util.List getThreadMessages(long threadId, java.util.Comparator comparator)
           
static int getThreadMessagesCount(long threadId)
           
static UserFinder getUserFinder()
           
static UserPersistence getUserPersistence()
           
static void setActivityTrackerFinder(ActivityTrackerFinder activityTrackerFinder)
           
static void setActivityTrackerPersistence(ActivityTrackerPersistence activityTrackerPersistence)
           
static void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder)
           
static void setBlogsEntryPersistence(BlogsEntryPersistence blogsEntryPersistence)
           
static void setCompanyPersistence(CompanyPersistence companyPersistence)
           
static void setGroupFinder(GroupFinder groupFinder)
           
static void setGroupPersistence(GroupPersistence groupPersistence)
           
static void setMBBanPersistence(MBBanPersistence mbBanPersistence)
           
static void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder)
           
static void setMBCategoryPersistence(MBCategoryPersistence mbCategoryPersistence)
           
static void setMBDiscussionPersistence(MBDiscussionPersistence mbDiscussionPersistence)
           
static void setMBMessageFinder(MBMessageFinder mbMessageFinder)
           
static void setMBMessageFlagFinder(MBMessageFlagFinder mbMessageFlagFinder)
           
static void setMBMessageFlagPersistence(MBMessageFlagPersistence mbMessageFlagPersistence)
           
static void setMBMessagePersistence(MBMessagePersistence mbMessagePersistence)
           
static void setMBStatsUserPersistence(MBStatsUserPersistence mbStatsUserPersistence)
           
static void setMBThreadFinder(MBThreadFinder mbThreadFinder)
           
static void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence)
           
static void setPortletPreferencesFinder(PortletPreferencesFinder portletPreferencesFinder)
           
static void setPortletPreferencesPersistence(PortletPreferencesPersistence portletPreferencesPersistence)
           
static void setResourceFinder(ResourceFinder resourceFinder)
           
static void setResourcePersistence(ResourcePersistence resourcePersistence)
           
static void setSubscriptionPersistence(SubscriptionPersistence subscriptionPersistence)
           
static void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder)
           
static void setTagsAssetPersistence(TagsAssetPersistence tagsAssetPersistence)
           
static void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder)
           
static void setTagsEntryPersistence(TagsEntryPersistence tagsEntryPersistence)
           
static void setUserFinder(UserFinder userFinder)
           
static void setUserPersistence(UserPersistence userPersistence)
           
static void subscribeMessage(long userId, long messageId)
           
static void unsubscribeMessage(long userId, long messageId)
           
static MBMessage updateDiscussionMessage(long userId, long messageId, java.lang.String subject, java.lang.String body)
           
static MBMessage updateMBMessage(MBMessage model)
           
static MBMessage updateMessage(long messageId, java.util.Date createDate, java.util.Date modifiedDate)
           
static MBMessage updateMessage(long userId, long messageId, java.lang.String subject, java.lang.String body, java.util.List files, double priority, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
static MBMessage updateMessage(long messageId, java.lang.String body)
           
static void updateTagsAsset(long userId, MBMessage message, java.lang.String[] tagsEntries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageLocalServiceUtil

public MBMessageLocalServiceUtil()
Method Detail

addMBMessage

public static MBMessage addMBMessage(MBMessage model)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateMBMessage

public static MBMessage updateMBMessage(MBMessage model)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBBanPersistence

public static MBBanPersistence getMBBanPersistence()

setMBBanPersistence

public static void setMBBanPersistence(MBBanPersistence mbBanPersistence)

getMBCategoryPersistence

public static MBCategoryPersistence getMBCategoryPersistence()

setMBCategoryPersistence

public static void setMBCategoryPersistence(MBCategoryPersistence mbCategoryPersistence)

getMBCategoryFinder

public static MBCategoryFinder getMBCategoryFinder()

setMBCategoryFinder

public static void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder)

getMBDiscussionPersistence

public static MBDiscussionPersistence getMBDiscussionPersistence()

setMBDiscussionPersistence

public static void setMBDiscussionPersistence(MBDiscussionPersistence mbDiscussionPersistence)

getMBMessagePersistence

public static MBMessagePersistence getMBMessagePersistence()

setMBMessagePersistence

public static void setMBMessagePersistence(MBMessagePersistence mbMessagePersistence)

getMBMessageFinder

public static MBMessageFinder getMBMessageFinder()

setMBMessageFinder

public static void setMBMessageFinder(MBMessageFinder mbMessageFinder)

getMBMessageFlagPersistence

public static MBMessageFlagPersistence getMBMessageFlagPersistence()

setMBMessageFlagPersistence

public static void setMBMessageFlagPersistence(MBMessageFlagPersistence mbMessageFlagPersistence)

getMBMessageFlagFinder

public static MBMessageFlagFinder getMBMessageFlagFinder()

setMBMessageFlagFinder

public static void setMBMessageFlagFinder(MBMessageFlagFinder mbMessageFlagFinder)

getMBStatsUserPersistence

public static MBStatsUserPersistence getMBStatsUserPersistence()

setMBStatsUserPersistence

public static void setMBStatsUserPersistence(MBStatsUserPersistence mbStatsUserPersistence)

getMBThreadPersistence

public static MBThreadPersistence getMBThreadPersistence()

setMBThreadPersistence

public static void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence)

getMBThreadFinder

public static MBThreadFinder getMBThreadFinder()

setMBThreadFinder

public static void setMBThreadFinder(MBThreadFinder mbThreadFinder)

getActivityTrackerPersistence

public static ActivityTrackerPersistence getActivityTrackerPersistence()

setActivityTrackerPersistence

public static void setActivityTrackerPersistence(ActivityTrackerPersistence activityTrackerPersistence)

getActivityTrackerFinder

public static ActivityTrackerFinder getActivityTrackerFinder()

setActivityTrackerFinder

public static void setActivityTrackerFinder(ActivityTrackerFinder activityTrackerFinder)

getCompanyPersistence

public static CompanyPersistence getCompanyPersistence()

setCompanyPersistence

public static void setCompanyPersistence(CompanyPersistence companyPersistence)

getGroupPersistence

public static GroupPersistence getGroupPersistence()

setGroupPersistence

public static void setGroupPersistence(GroupPersistence groupPersistence)

getGroupFinder

public static GroupFinder getGroupFinder()

setGroupFinder

public static void setGroupFinder(GroupFinder groupFinder)

getPortletPreferencesPersistence

public static PortletPreferencesPersistence getPortletPreferencesPersistence()

setPortletPreferencesPersistence

public static void setPortletPreferencesPersistence(PortletPreferencesPersistence portletPreferencesPersistence)

getPortletPreferencesFinder

public static PortletPreferencesFinder getPortletPreferencesFinder()

setPortletPreferencesFinder

public static void setPortletPreferencesFinder(PortletPreferencesFinder portletPreferencesFinder)

getResourcePersistence

public static ResourcePersistence getResourcePersistence()

setResourcePersistence

public static void setResourcePersistence(ResourcePersistence resourcePersistence)

getResourceFinder

public static ResourceFinder getResourceFinder()

setResourceFinder

public static void setResourceFinder(ResourceFinder resourceFinder)

getSubscriptionPersistence

public static SubscriptionPersistence getSubscriptionPersistence()

setSubscriptionPersistence

public static void setSubscriptionPersistence(SubscriptionPersistence subscriptionPersistence)

getUserPersistence

public static UserPersistence getUserPersistence()

setUserPersistence

public static void setUserPersistence(UserPersistence userPersistence)

getUserFinder

public static UserFinder getUserFinder()

setUserFinder

public static void setUserFinder(UserFinder userFinder)

getBlogsEntryPersistence

public static BlogsEntryPersistence getBlogsEntryPersistence()

setBlogsEntryPersistence

public static void setBlogsEntryPersistence(BlogsEntryPersistence blogsEntryPersistence)

getBlogsEntryFinder

public static BlogsEntryFinder getBlogsEntryFinder()

setBlogsEntryFinder

public static void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder)

getTagsAssetPersistence

public static TagsAssetPersistence getTagsAssetPersistence()

setTagsAssetPersistence

public static void setTagsAssetPersistence(TagsAssetPersistence tagsAssetPersistence)

getTagsAssetFinder

public static TagsAssetFinder getTagsAssetFinder()

setTagsAssetFinder

public static void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder)

getTagsEntryPersistence

public static TagsEntryPersistence getTagsEntryPersistence()

setTagsEntryPersistence

public static void setTagsEntryPersistence(TagsEntryPersistence tagsEntryPersistence)

getTagsEntryFinder

public static TagsEntryFinder getTagsEntryFinder()

setTagsEntryFinder

public static void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder)

afterPropertiesSet

public static void afterPropertiesSet()

addDiscussionMessage

public static 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 static MBMessage addDiscussionMessage(long userId,
                                             long groupId,
                                             java.lang.String className,
                                             long classPK,
                                             long threadId,
                                             long parentMessageId,
                                             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 static MBMessage addDiscussionMessage(long userId,
                                             long groupId,
                                             java.lang.String className,
                                             long classPK,
                                             long threadId,
                                             long parentMessageId,
                                             java.lang.String subject,
                                             java.lang.String body,
                                             ThemeDisplay themeDisplay)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public static 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,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public static 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,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public static 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,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public static 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,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public static 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,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public static MBMessage addMessage(java.lang.String uuid,
                                   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,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessage

public static MBMessage addMessage(java.lang.String uuid,
                                   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,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addMessageResources

public static 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 static 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 static void addMessageResources(MBCategory category,
                                       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 static 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 static 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 static void addMessageResources(MBCategory category,
                                       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 static void deleteDiscussionMessage(long messageId)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteDiscussionMessages

public static 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 static void deleteMessage(long messageId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteMessage

public static void deleteMessage(MBMessage message)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategoryMessages

public static java.util.List getCategoryMessages(long categoryId,
                                                 int begin,
                                                 int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoryMessages

public static 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 static int getCategoryMessagesCount(long categoryId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoriesMessagesCount

public static int getCategoriesMessagesCount(java.util.List categoryIds)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyMessages

public static java.util.List getCompanyMessages(long companyId,
                                                int begin,
                                                int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyMessages

public static 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 static int getCompanyMessagesCount(long companyId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getDiscussionMessageDisplay

public static 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 static int getDiscussionMessagesCount(long classNameId,
                                             long classPK)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessages

public static java.util.List getGroupMessages(long groupId,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessages

public static 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

getGroupMessages

public static java.util.List getGroupMessages(long groupId,
                                              long userId,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessages

public static java.util.List getGroupMessages(long groupId,
                                              long userId,
                                              int begin,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessagesCount

public static int getGroupMessagesCount(long groupId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupMessagesCount

public static int getGroupMessagesCount(long groupId,
                                        long userId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMessage

public static MBMessage getMessage(long messageId)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getMessages

public static java.util.List getMessages(java.lang.String className,
                                         long classPK)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getMessageDisplay

public static MBMessageDisplay getMessageDisplay(long messageId)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getMessageDisplay

public static MBMessageDisplay getMessageDisplay(MBMessage message)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNoAssetMessages

public static java.util.List getNoAssetMessages()
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessages

public static java.util.List getThreadMessages(long threadId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessages

public static java.util.List getThreadMessages(long threadId,
                                               java.util.Comparator comparator)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadMessagesCount

public static int getThreadMessagesCount(long threadId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

subscribeMessage

public static 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 static 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 static MBMessage updateDiscussionMessage(long userId,
                                                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 static MBMessage updateMessage(long userId,
                                      long messageId,
                                      java.lang.String subject,
                                      java.lang.String body,
                                      java.util.List files,
                                      double priority,
                                      java.lang.String[] tagsEntries,
                                      javax.portlet.PortletPreferences prefs,
                                      ThemeDisplay themeDisplay)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateMessage

public static 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 static 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

updateTagsAsset

public static void updateTagsAsset(long userId,
                                   MBMessage message,
                                   java.lang.String[] tagsEntries)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException