com.liferay.portlet.messageboards.service
Class MBMessageLocalServiceUtil
java.lang.Object
com.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
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,
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)
|
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.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
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)
|
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)
|
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)
|
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)
|
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 |
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 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 MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
java.lang.String className,
long classPK)
|
static int |
getDiscussionMessagesCount(long classNameId,
long classPK)
|
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 int |
getGroupMessagesCount(long groupId)
|
static MBMessage |
getMessage(long messageId)
|
static MBMessageDisplay |
getMessageDisplay(long messageId)
|
static MBMessageDisplay |
getMessageDisplay(MBMessage message)
|
static java.util.List |
getThreadMessages(long threadId)
|
static java.util.List |
getThreadMessages(long threadId,
java.util.Comparator comparator)
|
static int |
getThreadMessagesCount(long threadId)
|
static void |
subscribeMessage(long userId,
long messageId)
|
static void |
unsubscribeMessage(long userId,
long messageId)
|
static MBMessage |
updateDiscussionMessage(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 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)
|
static MBMessage |
updateMessage(long messageId,
java.lang.String body)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBMessageLocalServiceUtil
public MBMessageLocalServiceUtil()
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
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,
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)
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)
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)
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)
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)
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.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 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
getGroupMessagesCount
public static int getGroupMessagesCount(long groupId)
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
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
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 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 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 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