Liferay 6.2.0

com.liferay.portlet.messageboards.service
Interface MBMessageLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
MBMessageLocalServiceBaseImpl, MBMessageLocalServiceImpl, MBMessageLocalServiceWrapper

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

Provides the local service interface for MBMessage. 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.

See Also:
MBMessageLocalServiceUtil, MBMessageLocalServiceBaseImpl, MBMessageLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction)
           
abstract  MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
abstract  MBMessage addMBMessage(MBMessage mbMessage)
          Adds the message-boards message to the database.
abstract  MBMessage addMessage(long userId, String userName, long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
abstract  MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
abstract  MBMessage addMessage(long userId, String userName, long categoryId, String subject, String body, ServiceContext serviceContext)
           
abstract  void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions)
           
abstract  void addMessageResources(long messageId, String[] groupPermissions, String[] guestPermissions)
           
abstract  void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions)
           
abstract  void addMessageResources(MBMessage message, String[] groupPermissions, String[] guestPermissions)
           
abstract  MBMessage createMBMessage(long messageId)
          Creates a new message-boards message with the primary key.
abstract  MBMessage deleteDiscussionMessage(long messageId)
           
abstract  void deleteDiscussionMessages(String className, long classPK)
           
abstract  MBMessage deleteMBMessage(long messageId)
          Deletes the message-boards message with the primary key from the database.
abstract  MBMessage deleteMBMessage(MBMessage mbMessage)
          Deletes the message-boards message from the database.
abstract  MBMessage deleteMessage(long messageId)
           
abstract  MBMessage deleteMessage(MBMessage message)
           
abstract  void deleteMessageAttachment(long messageId, String fileName)
           
abstract  void deleteMessageAttachments(long messageId)
           
abstract  DynamicQuery dynamicQuery()
           
abstract  List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
abstract  List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
abstract  List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
abstract  long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
abstract  long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
abstract  MBMessage fetchMBMessage(long messageId)
           
abstract  MBMessage fetchMBMessageByUuidAndCompanyId(String uuid, long companyId)
          Returns the message-boards message with the matching UUID and company.
abstract  MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId)
          Returns the message-boards message matching the UUID and group.
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
abstract  List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, OrderByComparator obc)
           
abstract  int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
abstract  List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
           
abstract  List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, OrderByComparator obc)
           
abstract  int getCompanyMessagesCount(long companyId, int status)
           
abstract  MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status)
           
abstract  MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, String threadView)
           
abstract  int getDiscussionMessagesCount(long classNameId, long classPK, int status)
           
abstract  int getDiscussionMessagesCount(String className, long classPK, int status)
           
abstract  List<MBDiscussion> getDiscussions(String className)
           
abstract  List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
           
abstract  List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, OrderByComparator obc)
           
abstract  List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
           
abstract  List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, OrderByComparator obc)
           
abstract  int getGroupMessagesCount(long groupId, int status)
           
abstract  int getGroupMessagesCount(long groupId, long userId, int status)
           
abstract  MBMessage getMBMessage(long messageId)
          Returns the message-boards message with the primary key.
abstract  MBMessage getMBMessageByUuidAndCompanyId(String uuid, long companyId)
          Returns the message-boards message with the matching UUID and company.
abstract  MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId)
          Returns the message-boards message matching the UUID and group.
abstract  List<MBMessage> getMBMessages(int start, int end)
          Returns a range of all the message-boards messages.
abstract  int getMBMessagesCount()
          Returns the number of message-boards messages.
abstract  MBMessage getMessage(long messageId)
           
abstract  MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, String threadView, boolean includePrevAndNext)
           
abstract  MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext)
           
abstract  List<MBMessage> getMessages(String className, long classPK, int status)
           
abstract  List<MBMessage> getNoAssetMessages()
           
abstract  PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
abstract  int getPositionInThread(long messageId)
           
abstract  List<MBMessage> getThreadMessages(long threadId, int status)
           
abstract  List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator)
           
abstract  List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
           
abstract  int getThreadMessagesCount(long threadId, int status)
           
abstract  List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
           
abstract  List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, OrderByComparator obc)
           
abstract  List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, OrderByComparator obc)
           
abstract  List<MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, OrderByComparator obc)
           
abstract  int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
           
abstract  int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
           
abstract  int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
           
abstract  long moveMessageAttachmentToTrash(long userId, long messageId, String fileName)
           
abstract  void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  void subscribeMessage(long userId, long messageId)
           
abstract  void unsubscribeMessage(long userId, long messageId)
           
abstract  void updateAnswer(long messageId, boolean answer, boolean cascade)
           
abstract  void updateAnswer(MBMessage message, boolean answer, boolean cascade)
           
abstract  void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
abstract  MBMessage updateDiscussionMessage(long userId, long messageId, String className, long classPK, String subject, String body, ServiceContext serviceContext)
           
abstract  MBMessage updateMBMessage(MBMessage mbMessage)
          Updates the message-boards message in the database or adds it if it does not yet exist.
abstract  MBMessage updateMessage(long userId, long messageId, String subject, String body, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
abstract  MBMessage updateMessage(long messageId, String body)
           
abstract  MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext)
           
abstract  void updateUserName(long userId, String userName)
           
 

Method Detail

addMBMessage

MBMessage addMBMessage(MBMessage mbMessage)
                       throws SystemException
Adds the message-boards message to the database. Also notifies the appropriate model listeners.

Parameters:
mbMessage - the message-boards message
Returns:
the message-boards message that was added
Throws:
SystemException - if a system exception occurred

createMBMessage

MBMessage createMBMessage(long messageId)
Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.

Parameters:
messageId - the primary key for the new message-boards message
Returns:
the new message-boards message

deleteMBMessage

MBMessage deleteMBMessage(long messageId)
                          throws PortalException,
                                 SystemException
Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
messageId - the primary key of the message-boards message
Returns:
the message-boards message that was removed
Throws:
PortalException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

deleteMBMessage

MBMessage deleteMBMessage(MBMessage mbMessage)
                          throws SystemException
Deletes the message-boards message from the database. Also notifies the appropriate model listeners.

Parameters:
mbMessage - the message-boards message
Returns:
the message-boards message that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end,
                  OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery,
                       Projection projection)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchMBMessage

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

fetchMBMessageByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage fetchMBMessageByUuidAndCompanyId(String uuid,
                                                                                    long companyId)
                                           throws SystemException
Returns the message-boards message with the matching UUID and company.

Parameters:
uuid - the message-boards message's UUID
companyId - the primary key of the company
Returns:
the matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

fetchMBMessageByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage fetchMBMessageByUuidAndGroupId(String uuid,
                                                                                  long groupId)
                                         throws SystemException
Returns the message-boards message matching the UUID and group.

Parameters:
uuid - the message-boards message's UUID
groupId - the primary key of the group
Returns:
the matching message-boards message, or null if a matching message-boards message could not be found
Throws:
SystemException - if a system exception occurred

getMBMessage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMBMessage(long messageId)
                       throws PortalException,
                              SystemException
Returns the message-boards message with the primary key.

Parameters:
messageId - the primary key of the message-boards message
Returns:
the message-boards message
Throws:
PortalException - if a message-boards message with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getMBMessageByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMBMessageByUuidAndCompanyId(String uuid,
                                                                                  long companyId)
                                         throws PortalException,
                                                SystemException
Returns the message-boards message with the matching UUID and company.

Parameters:
uuid - the message-boards message's UUID
companyId - the primary key of the company
Returns:
the matching message-boards message
Throws:
PortalException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

getMBMessageByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMBMessageByUuidAndGroupId(String uuid,
                                                                                long groupId)
                                       throws PortalException,
                                              SystemException
Returns the message-boards message matching the UUID and group.

Parameters:
uuid - the message-boards message's UUID
groupId - the primary key of the group
Returns:
the matching message-boards message
Throws:
PortalException - if a matching message-boards message could not be found
SystemException - if a system exception occurred

getMBMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBMessage> getMBMessages(int start,
                                                                       int end)
                              throws SystemException
Returns a range of all the message-boards messages.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBMessageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
Returns:
the range of message-boards messages
Throws:
SystemException - if a system exception occurred

getMBMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getMBMessagesCount()
                       throws SystemException
Returns the number of message-boards messages.

Returns:
the number of message-boards messages
Throws:
SystemException - if a system exception occurred

updateMBMessage

MBMessage updateMBMessage(MBMessage mbMessage)
                          throws SystemException
Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
mbMessage - the message-boards message
Returns:
the message-boards message that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addDiscussionMessage

MBMessage addDiscussionMessage(long userId,
                               String userName,
                               long groupId,
                               String className,
                               long classPK,
                               int workflowAction)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addDiscussionMessage

MBMessage addDiscussionMessage(long userId,
                               String userName,
                               long groupId,
                               String className,
                               long classPK,
                               long threadId,
                               long parentMessageId,
                               String subject,
                               String body,
                               ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addMessage

MBMessage addMessage(long userId,
                     String userName,
                     long groupId,
                     long categoryId,
                     long threadId,
                     long parentMessageId,
                     String subject,
                     String body,
                     String format,
                     List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                     boolean anonymous,
                     double priority,
                     boolean allowPingbacks,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addMessage

MBMessage addMessage(long userId,
                     String userName,
                     long groupId,
                     long categoryId,
                     String subject,
                     String body,
                     String format,
                     List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                     boolean anonymous,
                     double priority,
                     boolean allowPingbacks,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addMessage

MBMessage addMessage(long userId,
                     String userName,
                     long categoryId,
                     String subject,
                     String body,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addMessageResources

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

addMessageResources

void addMessageResources(long messageId,
                         String[] groupPermissions,
                         String[] guestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addMessageResources

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

addMessageResources

void addMessageResources(MBMessage message,
                         String[] groupPermissions,
                         String[] guestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteDiscussionMessage

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

deleteDiscussionMessages

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

deleteMessage

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

deleteMessage

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

deleteMessageAttachment

void deleteMessageAttachment(long messageId,
                             String fileName)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

deleteMessageAttachments

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

getCategoryMessages

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

getCategoryMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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)
List<MBMessage> getCompanyMessages(long companyId,
                                                                            int status,
                                                                            int start,
                                                                            int end)
                                   throws SystemException
Throws:
SystemException

getCompanyMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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,
                                                                                      String className,
                                                                                      long classPK,
                                                                                      int status)
                                             throws PortalException,
                                                    SystemException
Throws:
PortalException
SystemException

getDiscussionMessageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                                                      long groupId,
                                                                                      String className,
                                                                                      long classPK,
                                                                                      int status,
                                                                                      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(String className,
                                                                        long classPK,
                                                                        int status)
                               throws SystemException
Throws:
SystemException

getDiscussions

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

getGroupMessages

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

getGroupMessages

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

getGroupMessages

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

getGroupMessages

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

getMessageDisplay

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

getMessageDisplay

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

getMessages

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

getNoAssetMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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)
List<MBMessage> getThreadMessages(long threadId,
                                                                           int status)
                                  throws SystemException
Throws:
SystemException

getThreadMessages

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

getThreadMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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)
List<MBMessage> getThreadRepliesMessages(long threadId,
                                                                                  int status,
                                                                                  int start,
                                                                                  int end)
                                         throws SystemException
Throws:
SystemException

getUserDiscussionMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBMessage> getUserDiscussionMessages(long userId,
                                                                                   long classNameId,
                                                                                   long classPK,
                                                                                   int status,
                                                                                   int start,
                                                                                   int end,
                                                                                   OrderByComparator obc)
                                          throws SystemException
Throws:
SystemException

getUserDiscussionMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBMessage> getUserDiscussionMessages(long userId,
                                                                                   long[] classNameIds,
                                                                                   int status,
                                                                                   int start,
                                                                                   int end,
                                                                                   OrderByComparator obc)
                                          throws SystemException
Throws:
SystemException

getUserDiscussionMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBMessage> getUserDiscussionMessages(long userId,
                                                                                   String className,
                                                                                   long classPK,
                                                                                   int status,
                                                                                   int start,
                                                                                   int end,
                                                                                   OrderByComparator obc)
                                          throws SystemException
Throws:
SystemException

getUserDiscussionMessagesCount

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

getUserDiscussionMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserDiscussionMessagesCount(long userId,
                                                                            long[] classNameIds,
                                                                            int status)
                                   throws SystemException
Throws:
SystemException

getUserDiscussionMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getUserDiscussionMessagesCount(long userId,
                                                                            String className,
                                                                            long classPK,
                                                                            int status)
                                   throws SystemException
Throws:
SystemException

moveMessageAttachmentToTrash

long moveMessageAttachmentToTrash(long userId,
                                  long messageId,
                                  String fileName)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

restoreMessageAttachmentFromTrash

void restoreMessageAttachmentFromTrash(long userId,
                                       long messageId,
                                       String deletedFileName)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
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

updateAnswer

void updateAnswer(long messageId,
                  boolean answer,
                  boolean cascade)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateAnswer

void updateAnswer(MBMessage message,
                  boolean answer,
                  boolean cascade)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateAsset

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

updateDiscussionMessage

MBMessage updateDiscussionMessage(long userId,
                                  long messageId,
                                  String className,
                                  long classPK,
                                  String subject,
                                  String body,
                                  ServiceContext serviceContext)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

updateMessage

MBMessage updateMessage(long userId,
                        long messageId,
                        String subject,
                        String body,
                        List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                        List<String> existingFiles,
                        double priority,
                        boolean allowPingbacks,
                        ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateMessage

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

updateStatus

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

updateUserName

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

Liferay 6.2.0