Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.service
Class MBMessageLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBMessageLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<MBMessageLocalService>, MBMessageLocalService

@ProviderType
public class MBMessageLocalServiceWrapper
extends Object
implements MBMessageLocalService, ServiceWrapper<MBMessageLocalService>

Provides a wrapper for MBMessageLocalService.

See Also:
MBMessageLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
MBMessageLocalServiceWrapper(MBMessageLocalService mbMessageLocalService)
           
 
Method Summary
 MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction)
           
 MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage addMBMessage(MBMessage mbMessage)
          Adds the message-boards message to the database.
 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)
           
 MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, ServiceContext serviceContext)
           
 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)
           
 MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, String format, String fileName, File file, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage addMessage(long userId, String userName, long categoryId, String subject, String body, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addMessage(long, String, long, long, String, String, ServiceContext)
 void addMessageAttachment(long userId, long messageId, String fileName, File file, String mimeType)
           
 void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addMessageResources(long messageId, ModelPermissions modelPermissions)
           
 void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addMessageResources(MBMessage message, ModelPermissions modelPermissions)
           
 MBMessage createMBMessage(long messageId)
          Creates a new message-boards message with the primary key.
 MBMessage deleteDiscussionMessage(long messageId)
           
 void deleteDiscussionMessages(String className, long classPK)
           
 MBMessage deleteMBMessage(long messageId)
          Deletes the message-boards message with the primary key from the database.
 MBMessage deleteMBMessage(MBMessage mbMessage)
          Deletes the message-boards message from the database.
 MBMessage deleteMessage(long messageId)
           
 MBMessage deleteMessage(MBMessage message)
           
 void deleteMessageAttachment(long messageId, String fileName)
           
 void deleteMessageAttachments(long messageId)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 void emptyMessageAttachments(long messageId)
           
 MBMessage fetchMBMessage(long messageId)
           
 MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId)
          Returns the message-boards message matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
 List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
 List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
           
 List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getCompanyMessagesCount(long companyId, int status)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator)
           
 MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, String threadView)
          Deprecated. As of 7.0.0, replaced by getDiscussionMessageDisplay(long, long, String, long, int)
 int getDiscussionMessagesCount(long classNameId, long classPK, int status)
           
 int getDiscussionMessagesCount(String className, long classPK, int status)
           
 List<MBDiscussion> getDiscussions(String className)
           
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
           
 List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
           
 List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getGroupMessagesCount(long groupId, int status)
           
 int getGroupMessagesCount(long groupId, long userId, int status)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 MBMessage getMBMessage(long messageId)
          Returns the message-boards message with the primary key.
 MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId)
          Returns the message-boards message matching the UUID and group.
 List<MBMessage> getMBMessages(int start, int end)
          Returns a range of all the message-boards messages.
 List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the message-boards messages matching the UUID and company.
 List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MBMessage> orderByComparator)
          Returns a range of message-boards messages matching the UUID and company.
 int getMBMessagesCount()
          Returns the number of message-boards messages.
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, boolean includePrevAndNext)
           
 MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, String threadView, boolean includePrevAndNext)
          Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, long, int, boolean)
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, boolean includePrevAndNext)
           
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, boolean includePrevAndNext, Comparator<MBMessage> comparator)
           
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext)
          Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean)
 MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext, Comparator<MBMessage> comparator)
          Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean, Comparator) (
 List<MBMessage> getMessages(String className, long classPK, int status)
           
 List<MBMessage> getNoAssetMessages()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 int getPositionInThread(long messageId)
           
 List<MBMessage> getThreadMessages(long threadId, int status)
           
 List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator)
           
 List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
           
 int getThreadMessagesCount(long threadId, int status)
           
 List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
           
 List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 List<MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
           
 int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
           
 int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
           
 int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
           
 MBMessageLocalService getWrappedService()
           
 long moveMessageAttachmentToTrash(long userId, long messageId, String fileName)
           
 void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName)
           
 void setWrappedService(MBMessageLocalService mbMessageLocalService)
           
 void subscribeMessage(long userId, long messageId)
           
 void unsubscribeMessage(long userId, long messageId)
           
 void updateAnswer(long messageId, boolean answer, boolean cascade)
           
 void updateAnswer(MBMessage message, boolean answer, boolean cascade)
           
 void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 MBMessage updateDiscussionMessage(long userId, long messageId, String className, long classPK, String subject, String body, ServiceContext serviceContext)
           
 MBMessage updateMBMessage(MBMessage mbMessage)
          Updates the message-boards message in the database or adds it if it does not yet exist.
 MBMessage updateMessage(long userId, long messageId, String body, ServiceContext serviceContext)
           
 MBMessage updateMessage(long userId, long messageId, String subject, String body, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage updateMessage(long messageId, String body)
          Deprecated. As of 7.0.0, with no direct replacement
 MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)
 MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
 void updateUserName(long userId, String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageLocalServiceWrapper

public MBMessageLocalServiceWrapper(MBMessageLocalService mbMessageLocalService)
Method Detail

addDiscussionMessage

public MBMessage addDiscussionMessage(long userId,
                                      String userName,
                                      long groupId,
                                      String className,
                                      long classPK,
                                      long threadId,
                                      long parentMessageId,
                                      String subject,
                                      String body,
                                      ServiceContext serviceContext)
                               throws PortalException
Specified by:
addDiscussionMessage in interface MBMessageLocalService
Throws:
PortalException

addDiscussionMessage

public MBMessage addDiscussionMessage(long userId,
                                      String userName,
                                      long groupId,
                                      String className,
                                      long classPK,
                                      int workflowAction)
                               throws PortalException
Specified by:
addDiscussionMessage in interface MBMessageLocalService
Throws:
PortalException

addMBMessage

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

Specified by:
addMBMessage in interface MBMessageLocalService
Parameters:
mbMessage - the message-boards message
Returns:
the message-boards message that was added

addMessage

@Deprecated
public MBMessage addMessage(long userId,
                                       String userName,
                                       long categoryId,
                                       String subject,
                                       String body,
                                       ServiceContext serviceContext)
                     throws PortalException
Deprecated. As of 7.0.0, replaced by addMessage(long, String, long, long, String, String, ServiceContext)

Specified by:
addMessage in interface MBMessageLocalService
Throws:
PortalException

addMessage

public MBMessage addMessage(long userId,
                            String userName,
                            long groupId,
                            long categoryId,
                            String subject,
                            String body,
                            String format,
                            String fileName,
                            File file,
                            boolean anonymous,
                            double priority,
                            boolean allowPingbacks,
                            ServiceContext serviceContext)
                     throws PortalException,
                            FileNotFoundException
Specified by:
addMessage in interface MBMessageLocalService
Throws:
PortalException
FileNotFoundException

addMessage

public 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
Specified by:
addMessage in interface MBMessageLocalService
Throws:
PortalException

addMessage

public MBMessage addMessage(long userId,
                            String userName,
                            long groupId,
                            long categoryId,
                            String subject,
                            String body,
                            ServiceContext serviceContext)
                     throws PortalException
Specified by:
addMessage in interface MBMessageLocalService
Throws:
PortalException

addMessage

public 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
Specified by:
addMessage in interface MBMessageLocalService
Throws:
PortalException

addMessageAttachment

public void addMessageAttachment(long userId,
                                 long messageId,
                                 String fileName,
                                 File file,
                                 String mimeType)
                          throws PortalException
Specified by:
addMessageAttachment in interface MBMessageLocalService
Throws:
PortalException

addMessageResources

public void addMessageResources(MBMessage message,
                                boolean addGroupPermissions,
                                boolean addGuestPermissions)
                         throws PortalException
Specified by:
addMessageResources in interface MBMessageLocalService
Throws:
PortalException

addMessageResources

public void addMessageResources(MBMessage message,
                                ModelPermissions modelPermissions)
                         throws PortalException
Specified by:
addMessageResources in interface MBMessageLocalService
Throws:
PortalException

addMessageResources

public void addMessageResources(long messageId,
                                boolean addGroupPermissions,
                                boolean addGuestPermissions)
                         throws PortalException
Specified by:
addMessageResources in interface MBMessageLocalService
Throws:
PortalException

addMessageResources

public void addMessageResources(long messageId,
                                ModelPermissions modelPermissions)
                         throws PortalException
Specified by:
addMessageResources in interface MBMessageLocalService
Throws:
PortalException

createMBMessage

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

Specified by:
createMBMessage in interface MBMessageLocalService
Parameters:
messageId - the primary key for the new message-boards message
Returns:
the new message-boards message

deleteDiscussionMessage

public MBMessage deleteDiscussionMessage(long messageId)
                                  throws PortalException
Specified by:
deleteDiscussionMessage in interface MBMessageLocalService
Throws:
PortalException

deleteDiscussionMessages

public void deleteDiscussionMessages(String className,
                                     long classPK)
                              throws PortalException
Specified by:
deleteDiscussionMessages in interface MBMessageLocalService
Throws:
PortalException

deleteMBMessage

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

Specified by:
deleteMBMessage in interface MBMessageLocalService
Parameters:
mbMessage - the message-boards message
Returns:
the message-boards message that was removed

deleteMBMessage

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

Specified by:
deleteMBMessage in interface MBMessageLocalService
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

deleteMessage

public MBMessage deleteMessage(MBMessage message)
                        throws PortalException
Specified by:
deleteMessage in interface MBMessageLocalService
Throws:
PortalException

deleteMessage

public MBMessage deleteMessage(long messageId)
                        throws PortalException
Specified by:
deleteMessage in interface MBMessageLocalService
Throws:
PortalException

deleteMessageAttachment

public void deleteMessageAttachment(long messageId,
                                    String fileName)
                             throws PortalException
Specified by:
deleteMessageAttachment in interface MBMessageLocalService
Throws:
PortalException

deleteMessageAttachments

public void deleteMessageAttachments(long messageId)
                              throws PortalException
Specified by:
deleteMessageAttachments in interface MBMessageLocalService
Throws:
PortalException

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface MBMessageLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface MBMessageLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface MBMessageLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
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.

Specified by:
dynamicQuery in interface MBMessageLocalService
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

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
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.

Specified by:
dynamicQuery in interface MBMessageLocalService
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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MBMessageLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MBMessageLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

emptyMessageAttachments

public void emptyMessageAttachments(long messageId)
                             throws PortalException
Specified by:
emptyMessageAttachments in interface MBMessageLocalService
Throws:
PortalException

fetchMBMessage

public MBMessage fetchMBMessage(long messageId)
Specified by:
fetchMBMessage in interface MBMessageLocalService

fetchMBMessageByUuidAndGroupId

public MBMessage fetchMBMessageByUuidAndGroupId(String uuid,
                                                long groupId)
Returns the message-boards message matching the UUID and group.

Specified by:
fetchMBMessageByUuidAndGroupId in interface MBMessageLocalService
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

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface MBMessageLocalService

getCategoryMessages

public List<MBMessage> getCategoryMessages(long groupId,
                                           long categoryId,
                                           int status,
                                           int start,
                                           int end)
Specified by:
getCategoryMessages in interface MBMessageLocalService

getCategoryMessages

public List<MBMessage> getCategoryMessages(long groupId,
                                           long categoryId,
                                           int status,
                                           int start,
                                           int end,
                                           OrderByComparator<MBMessage> obc)
Specified by:
getCategoryMessages in interface MBMessageLocalService

getCategoryMessagesCount

public int getCategoryMessagesCount(long groupId,
                                    long categoryId,
                                    int status)
Specified by:
getCategoryMessagesCount in interface MBMessageLocalService

getCompanyMessages

public List<MBMessage> getCompanyMessages(long companyId,
                                          int status,
                                          int start,
                                          int end)
Specified by:
getCompanyMessages in interface MBMessageLocalService

getCompanyMessages

public List<MBMessage> getCompanyMessages(long companyId,
                                          int status,
                                          int start,
                                          int end,
                                          OrderByComparator<MBMessage> obc)
Specified by:
getCompanyMessages in interface MBMessageLocalService

getCompanyMessagesCount

public int getCompanyMessagesCount(long companyId,
                                   int status)
Specified by:
getCompanyMessagesCount in interface MBMessageLocalService

getDiscussionMessageDisplay

public MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                    long groupId,
                                                    String className,
                                                    long classPK,
                                                    int status)
                                             throws PortalException
Specified by:
getDiscussionMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getDiscussionMessageDisplay

public MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                    long groupId,
                                                    String className,
                                                    long classPK,
                                                    int status,
                                                    Comparator<MBMessage> comparator)
                                             throws PortalException
Specified by:
getDiscussionMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getDiscussionMessageDisplay

@Deprecated
public MBMessageDisplay getDiscussionMessageDisplay(long userId,
                                                               long groupId,
                                                               String className,
                                                               long classPK,
                                                               int status,
                                                               String threadView)
                                             throws PortalException
Deprecated. As of 7.0.0, replaced by getDiscussionMessageDisplay(long, long, String, long, int)

Specified by:
getDiscussionMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getDiscussionMessagesCount

public int getDiscussionMessagesCount(String className,
                                      long classPK,
                                      int status)
Specified by:
getDiscussionMessagesCount in interface MBMessageLocalService

getDiscussionMessagesCount

public int getDiscussionMessagesCount(long classNameId,
                                      long classPK,
                                      int status)
Specified by:
getDiscussionMessagesCount in interface MBMessageLocalService

getDiscussions

public List<MBDiscussion> getDiscussions(String className)
Specified by:
getDiscussions in interface MBMessageLocalService

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface MBMessageLocalService

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        int status,
                                        int start,
                                        int end)
Specified by:
getGroupMessages in interface MBMessageLocalService

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator<MBMessage> obc)
Specified by:
getGroupMessages in interface MBMessageLocalService

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        long userId,
                                        int status,
                                        int start,
                                        int end)
Specified by:
getGroupMessages in interface MBMessageLocalService

getGroupMessages

public List<MBMessage> getGroupMessages(long groupId,
                                        long userId,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator<MBMessage> obc)
Specified by:
getGroupMessages in interface MBMessageLocalService

getGroupMessagesCount

public int getGroupMessagesCount(long groupId,
                                 int status)
Specified by:
getGroupMessagesCount in interface MBMessageLocalService

getGroupMessagesCount

public int getGroupMessagesCount(long groupId,
                                 long userId,
                                 int status)
Specified by:
getGroupMessagesCount in interface MBMessageLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface MBMessageLocalService

getMBMessage

public MBMessage getMBMessage(long messageId)
                       throws PortalException
Returns the message-boards message with the primary key.

Specified by:
getMBMessage in interface MBMessageLocalService
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

getMBMessageByUuidAndGroupId

public MBMessage getMBMessageByUuidAndGroupId(String uuid,
                                              long groupId)
                                       throws PortalException
Returns the message-boards message matching the UUID and group.

Specified by:
getMBMessageByUuidAndGroupId in interface MBMessageLocalService
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

getMBMessages

public List<MBMessage> getMBMessages(int start,
                                     int end)
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.

Specified by:
getMBMessages in interface MBMessageLocalService
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

getMBMessagesByUuidAndCompanyId

public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
                                                       long companyId)
Returns all the message-boards messages matching the UUID and company.

Specified by:
getMBMessagesByUuidAndCompanyId in interface MBMessageLocalService
Parameters:
uuid - the UUID of the message-boards messages
companyId - the primary key of the company
Returns:
the matching message-boards messages, or an empty list if no matches were found

getMBMessagesByUuidAndCompanyId

public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
                                                       long companyId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<MBMessage> orderByComparator)
Returns a range of message-boards messages matching the UUID and company.

Specified by:
getMBMessagesByUuidAndCompanyId in interface MBMessageLocalService
Parameters:
uuid - the UUID of the message-boards messages
companyId - the primary key of the company
start - the lower bound of the range of message-boards messages
end - the upper bound of the range of message-boards messages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching message-boards messages, or an empty list if no matches were found

getMBMessagesCount

public int getMBMessagesCount()
Returns the number of message-boards messages.

Specified by:
getMBMessagesCount in interface MBMessageLocalService
Returns:
the number of message-boards messages

getMessage

public MBMessage getMessage(long messageId)
                     throws PortalException
Specified by:
getMessage in interface MBMessageLocalService
Throws:
PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long userId,
                                          MBMessage message,
                                          int status,
                                          boolean includePrevAndNext)
                                   throws PortalException
Specified by:
getMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long userId,
                                          MBMessage message,
                                          int status,
                                          boolean includePrevAndNext,
                                          Comparator<MBMessage> comparator)
                                   throws PortalException
Specified by:
getMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getMessageDisplay

@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
                                                     MBMessage message,
                                                     int status,
                                                     String threadView,
                                                     boolean includePrevAndNext)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean)

Specified by:
getMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getMessageDisplay

@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
                                                     MBMessage message,
                                                     int status,
                                                     String threadView,
                                                     boolean includePrevAndNext,
                                                     Comparator<MBMessage> comparator)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, MBMessage, int, boolean, Comparator) (

Specified by:
getMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long userId,
                                          long messageId,
                                          int status,
                                          boolean includePrevAndNext)
                                   throws PortalException
Specified by:
getMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getMessageDisplay

@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
                                                     long messageId,
                                                     int status,
                                                     String threadView,
                                                     boolean includePrevAndNext)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, long, int, boolean)

Specified by:
getMessageDisplay in interface MBMessageLocalService
Throws:
PortalException

getMessages

public List<MBMessage> getMessages(String className,
                                   long classPK,
                                   int status)
Specified by:
getMessages in interface MBMessageLocalService

getNoAssetMessages

public List<MBMessage> getNoAssetMessages()
Specified by:
getNoAssetMessages in interface MBMessageLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface MBMessageLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface MBMessageLocalService
Throws:
PortalException

getPositionInThread

public int getPositionInThread(long messageId)
                        throws PortalException
Specified by:
getPositionInThread in interface MBMessageLocalService
Throws:
PortalException

getThreadMessages

public List<MBMessage> getThreadMessages(long threadId,
                                         int status)
Specified by:
getThreadMessages in interface MBMessageLocalService

getThreadMessages

public List<MBMessage> getThreadMessages(long threadId,
                                         int status,
                                         Comparator<MBMessage> comparator)
Specified by:
getThreadMessages in interface MBMessageLocalService

getThreadMessages

public List<MBMessage> getThreadMessages(long threadId,
                                         int status,
                                         int start,
                                         int end)
Specified by:
getThreadMessages in interface MBMessageLocalService

getThreadMessagesCount

public int getThreadMessagesCount(long threadId,
                                  int status)
Specified by:
getThreadMessagesCount in interface MBMessageLocalService

getThreadRepliesMessages

public List<MBMessage> getThreadRepliesMessages(long threadId,
                                                int status,
                                                int start,
                                                int end)
Specified by:
getThreadRepliesMessages in interface MBMessageLocalService

getUserDiscussionMessages

public List<MBMessage> getUserDiscussionMessages(long userId,
                                                 String className,
                                                 long classPK,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<MBMessage> obc)
Specified by:
getUserDiscussionMessages in interface MBMessageLocalService

getUserDiscussionMessages

public List<MBMessage> getUserDiscussionMessages(long userId,
                                                 long classNameId,
                                                 long classPK,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<MBMessage> obc)
Specified by:
getUserDiscussionMessages in interface MBMessageLocalService

getUserDiscussionMessages

public List<MBMessage> getUserDiscussionMessages(long userId,
                                                 long[] classNameIds,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<MBMessage> obc)
Specified by:
getUserDiscussionMessages in interface MBMessageLocalService

getUserDiscussionMessagesCount

public int getUserDiscussionMessagesCount(long userId,
                                          String className,
                                          long classPK,
                                          int status)
Specified by:
getUserDiscussionMessagesCount in interface MBMessageLocalService

getUserDiscussionMessagesCount

public int getUserDiscussionMessagesCount(long userId,
                                          long classNameId,
                                          long classPK,
                                          int status)
Specified by:
getUserDiscussionMessagesCount in interface MBMessageLocalService

getUserDiscussionMessagesCount

public int getUserDiscussionMessagesCount(long userId,
                                          long[] classNameIds,
                                          int status)
Specified by:
getUserDiscussionMessagesCount in interface MBMessageLocalService

moveMessageAttachmentToTrash

public long moveMessageAttachmentToTrash(long userId,
                                         long messageId,
                                         String fileName)
                                  throws PortalException
Specified by:
moveMessageAttachmentToTrash in interface MBMessageLocalService
Throws:
PortalException

restoreMessageAttachmentFromTrash

public void restoreMessageAttachmentFromTrash(long userId,
                                              long messageId,
                                              String deletedFileName)
                                       throws PortalException
Specified by:
restoreMessageAttachmentFromTrash in interface MBMessageLocalService
Throws:
PortalException

subscribeMessage

public void subscribeMessage(long userId,
                             long messageId)
                      throws PortalException
Specified by:
subscribeMessage in interface MBMessageLocalService
Throws:
PortalException

unsubscribeMessage

public void unsubscribeMessage(long userId,
                               long messageId)
                        throws PortalException
Specified by:
unsubscribeMessage in interface MBMessageLocalService
Throws:
PortalException

updateAnswer

public void updateAnswer(MBMessage message,
                         boolean answer,
                         boolean cascade)
                  throws PortalException
Specified by:
updateAnswer in interface MBMessageLocalService
Throws:
PortalException

updateAnswer

public void updateAnswer(long messageId,
                         boolean answer,
                         boolean cascade)
                  throws PortalException
Specified by:
updateAnswer in interface MBMessageLocalService
Throws:
PortalException

updateAsset

public void updateAsset(long userId,
                        MBMessage message,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        long[] assetLinkEntryIds)
                 throws PortalException
Specified by:
updateAsset in interface MBMessageLocalService
Throws:
PortalException

updateDiscussionMessage

public MBMessage updateDiscussionMessage(long userId,
                                         long messageId,
                                         String className,
                                         long classPK,
                                         String subject,
                                         String body,
                                         ServiceContext serviceContext)
                                  throws PortalException
Specified by:
updateDiscussionMessage in interface MBMessageLocalService
Throws:
PortalException

updateMBMessage

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

Specified by:
updateMBMessage in interface MBMessageLocalService
Parameters:
mbMessage - the message-boards message
Returns:
the message-boards message that was updated

updateMessage

@Deprecated
public MBMessage updateMessage(long messageId,
                                          String body)
                        throws PortalException
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
updateMessage in interface MBMessageLocalService
Throws:
PortalException

updateMessage

public MBMessage updateMessage(long userId,
                               long messageId,
                               String body,
                               ServiceContext serviceContext)
                        throws PortalException
Specified by:
updateMessage in interface MBMessageLocalService
Throws:
PortalException

updateMessage

public 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
Specified by:
updateMessage in interface MBMessageLocalService
Throws:
PortalException

updateStatus

@Deprecated
public MBMessage updateStatus(long userId,
                                         long messageId,
                                         int status,
                                         ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)

Specified by:
updateStatus in interface MBMessageLocalService
Throws:
PortalException

updateStatus

public MBMessage updateStatus(long userId,
                              long messageId,
                              int status,
                              ServiceContext serviceContext,
                              Map<String,Serializable> workflowContext)
                       throws PortalException
Specified by:
updateStatus in interface MBMessageLocalService
Throws:
PortalException

updateUserName

public void updateUserName(long userId,
                           String userName)
Specified by:
updateUserName in interface MBMessageLocalService

getWrappedService

public MBMessageLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<MBMessageLocalService>

setWrappedService

public void setWrappedService(MBMessageLocalService mbMessageLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<MBMessageLocalService>

Liferay 7.0-ce-b4