com.liferay.portlet.messageboards.service
Interface MBMessageLocalService

All Known Implementing Classes:
MBMessageLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface MBMessageLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
MBMessageLocalServiceUtil
Generated:

Method Summary
 MBMessage addDiscussionMessage(long userId, java.lang.String userName, long groupId, java.lang.String className, long classPK, int workflowAction)
           
 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)
           
 MBMessage addMBMessage(MBMessage mbMessage)
           
 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)
           
 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)
           
 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)
           
 void addMessageResources(long messageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(long messageId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addMessageResources(MBMessage message, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addMessageResources(MBMessage message, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 MBMessage createMBMessage(long messageId)
           
 void deleteDiscussionMessage(long messageId)
           
 void deleteDiscussionMessages(java.lang.String className, long classPK)
           
 void deleteMBMessage(long messageId)
           
 void deleteMBMessage(MBMessage mbMessage)
           
 void deleteMessage(long messageId)
           
 void deleteMessage(MBMessage message)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
 java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, OrderByComparator obc)
           
 int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
 java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
           
 java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, OrderByComparator obc)
           
 int getCompanyMessagesCount(long companyId, int status)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, java.lang.String className, long classPK, int status)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, java.lang.String className, long classPK, int status, java.lang.String threadView)
           
 int getDiscussionMessagesCount(long classNameId, long classPK, int status)
           
 int getDiscussionMessagesCount(java.lang.String className, long classPK, int status)
           
 java.util.List<MBDiscussion> getDiscussions(java.lang.String className)
           
 java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
           
 java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, OrderByComparator obc)
           
 java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
           
 java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, OrderByComparator obc)
           
 int getGroupMessagesCount(long groupId, int status)
           
 int getGroupMessagesCount(long groupId, long userId, int status)
           
 MBMessage getMBMessage(long messageId)
           
 MBMessage getMBMessageByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 java.util.List<MBMessage> getMBMessages(int start, int end)
           
 int getMBMessagesCount()
           
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long messageId, int status, java.lang.String threadView, boolean includePrevAndNext)
           
 MBMessageDisplay getMessageDisplay(MBMessage message, int status, java.lang.String threadView, boolean includePrevAndNext)
           
 java.util.List<MBMessage> getMessages(java.lang.String className, long classPK, int status)
           
 java.util.List<MBMessage> getNoAssetMessages()
           
 int getPositionInThread(long messageId)
           
 java.util.List<MBMessage> getThreadMessages(long threadId, int status)
           
 java.util.List<MBMessage> getThreadMessages(long threadId, int status, java.util.Comparator<MBMessage> comparator)
           
 java.util.List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
           
 int getThreadMessagesCount(long threadId, int status)
           
 java.util.List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
           
 void subscribeMessage(long userId, long messageId)
           
 void unsubscribeMessage(long userId, long messageId)
           
 void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, java.lang.String[] assetTagNames)
           
 MBMessage updateDiscussionMessage(long userId, long messageId, java.lang.String subject, java.lang.String body, int workflowAction)
           
 MBMessage updateMBMessage(MBMessage mbMessage)
           
 MBMessage updateMBMessage(MBMessage mbMessage, boolean merge)
           
 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)
           
 MBMessage updateMessage(long messageId, java.lang.String body)
           
 MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext)
           
 void updateUserName(long userId, java.lang.String userName)
           
 

Method Detail

addMBMessage

MBMessage addMBMessage(MBMessage mbMessage)
                       throws SystemException
Throws:
SystemException

createMBMessage

MBMessage createMBMessage(long messageId)

deleteMBMessage

void deleteMBMessage(long messageId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteMBMessage

void deleteMBMessage(MBMessage mbMessage)
                     throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getMBMessage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMBMessage(long messageId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getMBMessageByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMBMessageByUuidAndGroupId(java.lang.String uuid,
                                                                                long groupId)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getMBMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getMBMessages(int start,
                                                                                 int end)
                                        throws SystemException
Throws:
SystemException

getMBMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getMBMessagesCount()
                       throws SystemException
Throws:
SystemException

updateMBMessage

MBMessage updateMBMessage(MBMessage mbMessage)
                          throws SystemException
Throws:
SystemException

updateMBMessage

MBMessage updateMBMessage(MBMessage mbMessage,
                          boolean merge)
                          throws SystemException
Throws:
SystemException

addDiscussionMessage

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

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

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

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

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

void addMessageResources(long messageId,
                         boolean addCommunityPermissions,
                         boolean addGuestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addMessageResources

void addMessageResources(MBMessage message,
                         boolean addCommunityPermissions,
                         boolean addGuestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addMessageResources

void addMessageResources(long messageId,
                         java.lang.String[] communityPermissions,
                         java.lang.String[] guestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addMessageResources

void addMessageResources(MBMessage message,
                         java.lang.String[] communityPermissions,
                         java.lang.String[] guestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteDiscussionMessage

void deleteDiscussionMessage(long messageId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

deleteDiscussionMessages

void deleteDiscussionMessages(java.lang.String className,
                              long classPK)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

deleteMessage

void deleteMessage(long messageId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteMessage

void deleteMessage(MBMessage message)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getCategoryMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getCategoryMessages(long groupId,
                                                                                       long categoryId,
                                                                                       int status,
                                                                                       int start,
                                                                                       int end)
                                              throws SystemException
Throws:
SystemException

getCategoryMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getCategoryMessages(long groupId,
                                                                                       long categoryId,
                                                                                       int status,
                                                                                       int start,
                                                                                       int end,
                                                                                       OrderByComparator obc)
                                              throws SystemException
Throws:
SystemException

getCategoryMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoryMessagesCount(long groupId,
                                                                      long categoryId,
                                                                      int status)
                             throws SystemException
Throws:
SystemException

getCompanyMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getCompanyMessages(long companyId,
                                                                                      int status,
                                                                                      int start,
                                                                                      int end)
                                             throws SystemException
Throws:
SystemException

getCompanyMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getCompanyMessages(long companyId,
                                                                                      int status,
                                                                                      int start,
                                                                                      int end,
                                                                                      OrderByComparator obc)
                                             throws SystemException
Throws:
SystemException

getCompanyMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyMessagesCount(long companyId,
                                                                     int status)
                            throws SystemException
Throws:
SystemException

getDiscussionMessageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                                                      long groupId,
                                                                                      java.lang.String className,
                                                                                      long classPK,
                                                                                      int status)
                                             throws PortalException,
                                                    SystemException
Throws:
PortalException
SystemException

getDiscussionMessageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getDiscussionMessagesCount(long classNameId,
                                                                        long classPK,
                                                                        int status)
                               throws SystemException
Throws:
SystemException

getDiscussionMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getDiscussionMessagesCount(java.lang.String className,
                                                                        long classPK,
                                                                        int status)
                               throws SystemException
Throws:
SystemException

getDiscussions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBDiscussion> getDiscussions(java.lang.String className)
                                            throws SystemException
Throws:
SystemException

getGroupMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getGroupMessages(long groupId,
                                                                                    int status,
                                                                                    int start,
                                                                                    int end)
                                           throws SystemException
Throws:
SystemException

getGroupMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getGroupMessages(long groupId,
                                                                                    int status,
                                                                                    int start,
                                                                                    int end,
                                                                                    OrderByComparator obc)
                                           throws SystemException
Throws:
SystemException

getGroupMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getGroupMessages(long groupId,
                                                                                    long userId,
                                                                                    int status,
                                                                                    int start,
                                                                                    int end)
                                           throws SystemException
Throws:
SystemException

getGroupMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getGroupMessages(long groupId,
                                                                                    long userId,
                                                                                    int status,
                                                                                    int start,
                                                                                    int end,
                                                                                    OrderByComparator obc)
                                           throws SystemException
Throws:
SystemException

getGroupMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupMessagesCount(long groupId,
                                                                   int status)
                          throws SystemException
Throws:
SystemException

getGroupMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupMessagesCount(long groupId,
                                                                   long userId,
                                                                   int status)
                          throws SystemException
Throws:
SystemException

getMessage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMessage(long messageId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getMessages(java.lang.String className,
                                                                               long classPK,
                                                                               int status)
                                      throws SystemException
Throws:
SystemException

getMessageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageDisplay getMessageDisplay(long messageId,
                                                                            int status,
                                                                            java.lang.String threadView,
                                                                            boolean includePrevAndNext)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getMessageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageDisplay getMessageDisplay(MBMessage message,
                                                                            int status,
                                                                            java.lang.String threadView,
                                                                            boolean includePrevAndNext)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getNoAssetMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getNoAssetMessages()
                                             throws SystemException
Throws:
SystemException

getPositionInThread

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPositionInThread(long messageId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getThreadMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getThreadMessages(long threadId,
                                                                                     int status)
                                            throws SystemException
Throws:
SystemException

getThreadMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getThreadMessages(long threadId,
                                                                                     int status,
                                                                                     java.util.Comparator<MBMessage> comparator)
                                            throws SystemException
Throws:
SystemException

getThreadMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getThreadMessages(long threadId,
                                                                                     int status,
                                                                                     int start,
                                                                                     int end)
                                            throws SystemException
Throws:
SystemException

getThreadMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getThreadMessagesCount(long threadId,
                                                                    int status)
                           throws SystemException
Throws:
SystemException

getThreadRepliesMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getThreadRepliesMessages(long threadId,
                                                                                            int status,
                                                                                            int start,
                                                                                            int end)
                                                   throws SystemException
Throws:
SystemException

subscribeMessage

void subscribeMessage(long userId,
                      long messageId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

unsubscribeMessage

void unsubscribeMessage(long userId,
                        long messageId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateAsset

void updateAsset(long userId,
                 MBMessage message,
                 long[] assetCategoryIds,
                 java.lang.String[] assetTagNames)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateDiscussionMessage

MBMessage updateDiscussionMessage(long userId,
                                  long messageId,
                                  java.lang.String subject,
                                  java.lang.String body,
                                  int workflowAction)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

updateMessage

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

MBMessage updateMessage(long messageId,
                        java.lang.String body)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateUserName

void updateUserName(long userId,
                    java.lang.String userName)
                    throws SystemException
Throws:
SystemException

updateStatus

MBMessage updateStatus(long userId,
                       long messageId,
                       int status,
                       ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException