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
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.
- Author:
- Brian Wing Shun Chan
- See Also:
MBMessageLocalService
- Generated:
Method Summary |
static MBMessage |
addDiscussionMessage(long userId,
java.lang.String userName,
long groupId,
java.lang.String className,
long classPK,
int workflowAction)
|
static MBMessage |
addDiscussionMessage(java.lang.String uuid,
long userId,
java.lang.String userName,
long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext)
|
static MBMessage |
addMBMessage(MBMessage mbMessage)
|
static MBMessage |
addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(java.lang.String uuid,
long userId,
java.lang.String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static void |
addMessageResources(long messageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addMessageResources(long messageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
addMessageResources(MBMessage message,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addMessageResources(MBMessage message,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static MBMessage |
createMBMessage(long messageId)
|
static void |
deleteDiscussionMessage(long messageId)
|
static void |
deleteDiscussionMessages(java.lang.String className,
long classPK)
|
static void |
deleteMBMessage(long messageId)
|
static void |
deleteMBMessage(MBMessage mbMessage)
|
static void |
deleteMessage(long messageId)
|
static void |
deleteMessage(MBMessage message)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
static java.util.List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
|
static java.util.List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator obc)
|
static int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status)
|
static java.util.List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end)
|
static java.util.List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end,
OrderByComparator obc)
|
static int |
getCompanyMessagesCount(long companyId,
int status)
|
static MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
java.lang.String className,
long classPK,
int status)
|
static MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
java.lang.String className,
long classPK,
int status,
java.lang.String threadView)
|
static int |
getDiscussionMessagesCount(long classNameId,
long classPK,
int status)
|
static int |
getDiscussionMessagesCount(java.lang.String className,
long classPK,
int status)
|
static java.util.List<MBDiscussion> |
getDiscussions(java.lang.String className)
|
static java.util.List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end)
|
static java.util.List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end,
OrderByComparator obc)
|
static java.util.List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end)
|
static java.util.List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator obc)
|
static int |
getGroupMessagesCount(long groupId,
int status)
|
static int |
getGroupMessagesCount(long groupId,
long userId,
int status)
|
static MBMessage |
getMBMessage(long messageId)
|
static MBMessage |
getMBMessageByUuidAndGroupId(java.lang.String uuid,
long groupId)
|
static java.util.List<MBMessage> |
getMBMessages(int start,
int end)
|
static int |
getMBMessagesCount()
|
static MBMessage |
getMessage(long messageId)
|
static MBMessageDisplay |
getMessageDisplay(long messageId,
int status,
java.lang.String threadView,
boolean includePrevAndNext)
|
static MBMessageDisplay |
getMessageDisplay(MBMessage message,
int status,
java.lang.String threadView,
boolean includePrevAndNext)
|
static java.util.List<MBMessage> |
getMessages(java.lang.String className,
long classPK,
int status)
|
static java.util.List<MBMessage> |
getNoAssetMessages()
|
static int |
getPositionInThread(long messageId)
|
static MBMessageLocalService |
getService()
|
static java.util.List<MBMessage> |
getThreadMessages(long threadId,
int status)
|
static java.util.List<MBMessage> |
getThreadMessages(long threadId,
int status,
java.util.Comparator<MBMessage> comparator)
|
static java.util.List<MBMessage> |
getThreadMessages(long threadId,
int status,
int start,
int end)
|
static int |
getThreadMessagesCount(long threadId,
int status)
|
static java.util.List<MBMessage> |
getThreadRepliesMessages(long threadId,
int status,
int start,
int end)
|
void |
setService(MBMessageLocalService service)
|
static void |
subscribeMessage(long userId,
long messageId)
|
static void |
unsubscribeMessage(long userId,
long messageId)
|
static void |
updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
|
static MBMessage |
updateDiscussionMessage(long userId,
long messageId,
java.lang.String subject,
java.lang.String body,
int workflowAction)
|
static MBMessage |
updateMBMessage(MBMessage mbMessage)
|
static MBMessage |
updateMBMessage(MBMessage mbMessage,
boolean merge)
|
static MBMessage |
updateMessage(long userId,
long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
java.util.List<java.lang.String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static MBMessage |
updateMessage(long messageId,
java.lang.String body)
|
static MBMessage |
updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext)
|
static void |
updateUserName(long userId,
java.lang.String userName)
|
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 mbMessage)
throws SystemException
- Throws:
SystemException
createMBMessage
public static MBMessage createMBMessage(long messageId)
deleteMBMessage
public static void deleteMBMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMBMessage
public static void deleteMBMessage(MBMessage mbMessage)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getMBMessage
public static MBMessage getMBMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMBMessageByUuidAndGroupId
public static MBMessage getMBMessageByUuidAndGroupId(java.lang.String uuid,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMBMessages
public static java.util.List<MBMessage> getMBMessages(int start,
int end)
throws SystemException
- Throws:
SystemException
getMBMessagesCount
public static int getMBMessagesCount()
throws SystemException
- Throws:
SystemException
updateMBMessage
public static MBMessage updateMBMessage(MBMessage mbMessage)
throws SystemException
- Throws:
SystemException
updateMBMessage
public static MBMessage updateMBMessage(MBMessage mbMessage,
boolean merge)
throws SystemException
- Throws:
SystemException
addDiscussionMessage
public static MBMessage addDiscussionMessage(long userId,
java.lang.String userName,
long groupId,
java.lang.String className,
long classPK,
int workflowAction)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addDiscussionMessage
public static MBMessage addDiscussionMessage(java.lang.String uuid,
long userId,
java.lang.String userName,
long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessage
public static MBMessage addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessage
public static MBMessage addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessage
public static MBMessage addMessage(java.lang.String uuid,
long userId,
java.lang.String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public static void addMessageResources(long messageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public static void addMessageResources(MBMessage message,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public static void addMessageResources(long messageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addMessageResources
public static void addMessageResources(MBMessage message,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteDiscussionMessage
public static void deleteDiscussionMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteDiscussionMessages
public static void deleteDiscussionMessages(java.lang.String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMessage
public static void deleteMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteMessage
public static void deleteMessage(MBMessage message)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategoryMessages
public static java.util.List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCategoryMessages
public static java.util.List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getCategoryMessagesCount
public static int getCategoryMessagesCount(long groupId,
long categoryId,
int status)
throws SystemException
- Throws:
SystemException
getCompanyMessages
public static java.util.List<MBMessage> getCompanyMessages(long companyId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyMessages
public static java.util.List<MBMessage> getCompanyMessages(long companyId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getCompanyMessagesCount
public static int getCompanyMessagesCount(long companyId,
int status)
throws SystemException
- Throws:
SystemException
getDiscussionMessageDisplay
public static MBMessageDisplay getDiscussionMessageDisplay(long userId,
long groupId,
java.lang.String className,
long classPK,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDiscussionMessageDisplay
public static MBMessageDisplay getDiscussionMessageDisplay(long userId,
long groupId,
java.lang.String className,
long classPK,
int status,
java.lang.String threadView)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDiscussionMessagesCount
public static int getDiscussionMessagesCount(long classNameId,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
getDiscussionMessagesCount
public static int getDiscussionMessagesCount(java.lang.String className,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
getDiscussions
public static java.util.List<MBDiscussion> getDiscussions(java.lang.String className)
throws SystemException
- Throws:
SystemException
getGroupMessages
public static java.util.List<MBMessage> getGroupMessages(long groupId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getGroupMessages
public static java.util.List<MBMessage> getGroupMessages(long groupId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getGroupMessages
public static java.util.List<MBMessage> getGroupMessages(long groupId,
long userId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getGroupMessages
public static java.util.List<MBMessage> getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getGroupMessagesCount
public static int getGroupMessagesCount(long groupId,
int status)
throws SystemException
- Throws:
SystemException
getGroupMessagesCount
public static int getGroupMessagesCount(long groupId,
long userId,
int status)
throws SystemException
- Throws:
SystemException
getMessage
public static MBMessage getMessage(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMessages
public static java.util.List<MBMessage> getMessages(java.lang.String className,
long classPK,
int status)
throws SystemException
- Throws:
SystemException
getMessageDisplay
public static MBMessageDisplay getMessageDisplay(long messageId,
int status,
java.lang.String threadView,
boolean includePrevAndNext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getMessageDisplay
public static MBMessageDisplay getMessageDisplay(MBMessage message,
int status,
java.lang.String threadView,
boolean includePrevAndNext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getNoAssetMessages
public static java.util.List<MBMessage> getNoAssetMessages()
throws SystemException
- Throws:
SystemException
getPositionInThread
public static int getPositionInThread(long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getThreadMessages
public static java.util.List<MBMessage> getThreadMessages(long threadId,
int status)
throws SystemException
- Throws:
SystemException
getThreadMessages
public static java.util.List<MBMessage> getThreadMessages(long threadId,
int status,
java.util.Comparator<MBMessage> comparator)
throws SystemException
- Throws:
SystemException
getThreadMessages
public static java.util.List<MBMessage> getThreadMessages(long threadId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getThreadMessagesCount
public static int getThreadMessagesCount(long threadId,
int status)
throws SystemException
- Throws:
SystemException
getThreadRepliesMessages
public static java.util.List<MBMessage> getThreadRepliesMessages(long threadId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
subscribeMessage
public static void subscribeMessage(long userId,
long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsubscribeMessage
public static void unsubscribeMessage(long userId,
long messageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
public static void updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateDiscussionMessage
public static MBMessage updateDiscussionMessage(long userId,
long messageId,
java.lang.String subject,
java.lang.String body,
int workflowAction)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateMessage
public static MBMessage updateMessage(long userId,
long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<ObjectValuePair<java.lang.String,byte[]>> files,
java.util.List<java.lang.String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateMessage
public static MBMessage updateMessage(long messageId,
java.lang.String body)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateUserName
public static void updateUserName(long userId,
java.lang.String userName)
throws SystemException
- Throws:
SystemException
updateStatus
public static MBMessage updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static MBMessageLocalService getService()
setService
public void setService(MBMessageLocalService service)