@ProviderType public class MBMessageLocalServiceWrapper extends Object implements MBMessageLocalService, ServiceWrapper<MBMessageLocalService>
MBMessageLocalService
.MBMessageLocalService
Constructor and Description |
---|
MBMessageLocalServiceWrapper(MBMessageLocalService mbMessageLocalService) |
Modifier and Type | Method and Description |
---|---|
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) |
MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated.
As of 7.0.0, replaced by
getMessageDisplay(long,
long, int) |
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status) |
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
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) |
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, 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) |
List<MBMessage> |
getThreadMessages(long userId,
long threadId,
int status,
int start,
int end,
Comparator<MBMessage> comparator) |
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) |
public MBMessageLocalServiceWrapper(MBMessageLocalService mbMessageLocalService)
public MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction) throws PortalException
addDiscussionMessage
in interface MBMessageLocalService
PortalException
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
addDiscussionMessage
in interface MBMessageLocalService
PortalException
public MBMessage addMBMessage(MBMessage mbMessage)
addMBMessage
in interface MBMessageLocalService
mbMessage
- the message-boards messagepublic 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
addMessage
in interface MBMessageLocalService
PortalException
public MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, ServiceContext serviceContext) throws PortalException
addMessage
in interface MBMessageLocalService
PortalException
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
addMessage
in interface MBMessageLocalService
PortalException
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 FileNotFoundException, PortalException
addMessage
in interface MBMessageLocalService
FileNotFoundException
PortalException
@Deprecated public MBMessage addMessage(long userId, String userName, long categoryId, String subject, String body, ServiceContext serviceContext) throws PortalException
addMessage(long, String,
long, long, String, String, ServiceContext)
addMessage
in interface MBMessageLocalService
PortalException
public void addMessageAttachment(long userId, long messageId, String fileName, File file, String mimeType) throws PortalException
addMessageAttachment
in interface MBMessageLocalService
PortalException
public void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
addMessageResources
in interface MBMessageLocalService
PortalException
public void addMessageResources(long messageId, ModelPermissions modelPermissions) throws PortalException
addMessageResources
in interface MBMessageLocalService
PortalException
public void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
addMessageResources
in interface MBMessageLocalService
PortalException
public void addMessageResources(MBMessage message, ModelPermissions modelPermissions) throws PortalException
addMessageResources
in interface MBMessageLocalService
PortalException
public MBMessage createMBMessage(long messageId)
createMBMessage
in interface MBMessageLocalService
messageId
- the primary key for the new message-boards messagepublic MBMessage deleteDiscussionMessage(long messageId) throws PortalException
deleteDiscussionMessage
in interface MBMessageLocalService
PortalException
public void deleteDiscussionMessages(String className, long classPK) throws PortalException
deleteDiscussionMessages
in interface MBMessageLocalService
PortalException
public MBMessage deleteMBMessage(long messageId) throws PortalException
deleteMBMessage
in interface MBMessageLocalService
messageId
- the primary key of the message-boards messagePortalException
- if a message-boards message with the primary key could not be foundpublic MBMessage deleteMBMessage(MBMessage mbMessage)
deleteMBMessage
in interface MBMessageLocalService
mbMessage
- the message-boards messagepublic MBMessage deleteMessage(long messageId) throws PortalException
deleteMessage
in interface MBMessageLocalService
PortalException
public MBMessage deleteMessage(MBMessage message) throws PortalException
deleteMessage
in interface MBMessageLocalService
PortalException
public void deleteMessageAttachment(long messageId, String fileName) throws PortalException
deleteMessageAttachment
in interface MBMessageLocalService
PortalException
public void deleteMessageAttachments(long messageId) throws PortalException
deleteMessageAttachments
in interface MBMessageLocalService
PortalException
public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface MBMessageLocalService
deletePersistedModel
in interface PersistedModelLocalService
PortalException
public DynamicQuery dynamicQuery()
dynamicQuery
in interface MBMessageLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface MBMessageLocalService
dynamicQuery
- the dynamic querypublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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.
dynamicQuery
in interface MBMessageLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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.
dynamicQuery
in interface MBMessageLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface MBMessageLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface MBMessageLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic void emptyMessageAttachments(long messageId) throws PortalException
emptyMessageAttachments
in interface MBMessageLocalService
PortalException
public MBMessage fetchMBMessage(long messageId)
fetchMBMessage
in interface MBMessageLocalService
public MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId)
fetchMBMessageByUuidAndGroupId
in interface MBMessageLocalService
uuid
- the message-boards message's UUIDgroupId
- the primary key of the groupnull
if a matching message-boards message could not be foundpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface MBMessageLocalService
public List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
getCategoryMessages
in interface MBMessageLocalService
public List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, OrderByComparator<MBMessage> obc)
getCategoryMessages
in interface MBMessageLocalService
public int getCategoryMessagesCount(long groupId, long categoryId, int status)
getCategoryMessagesCount
in interface MBMessageLocalService
public List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
getCompanyMessages
in interface MBMessageLocalService
public List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, OrderByComparator<MBMessage> obc)
getCompanyMessages
in interface MBMessageLocalService
public int getCompanyMessagesCount(long companyId, int status)
getCompanyMessagesCount
in interface MBMessageLocalService
public MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status) throws PortalException
getDiscussionMessageDisplay
in interface MBMessageLocalService
PortalException
public MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator) throws PortalException
getDiscussionMessageDisplay
in interface MBMessageLocalService
PortalException
@Deprecated public MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, String threadView) throws PortalException
getDiscussionMessageDisplay(long, long, String, long, int)
getDiscussionMessageDisplay
in interface MBMessageLocalService
PortalException
public int getDiscussionMessagesCount(long classNameId, long classPK, int status)
getDiscussionMessagesCount
in interface MBMessageLocalService
public int getDiscussionMessagesCount(String className, long classPK, int status)
getDiscussionMessagesCount
in interface MBMessageLocalService
public List<MBDiscussion> getDiscussions(String className)
getDiscussions
in interface MBMessageLocalService
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface MBMessageLocalService
public List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
getGroupMessages
in interface MBMessageLocalService
public List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, OrderByComparator<MBMessage> obc)
getGroupMessages
in interface MBMessageLocalService
public List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
getGroupMessages
in interface MBMessageLocalService
public List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, OrderByComparator<MBMessage> obc)
getGroupMessages
in interface MBMessageLocalService
public int getGroupMessagesCount(long groupId, int status)
getGroupMessagesCount
in interface MBMessageLocalService
public int getGroupMessagesCount(long groupId, long userId, int status)
getGroupMessagesCount
in interface MBMessageLocalService
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface MBMessageLocalService
public MBMessage getMBMessage(long messageId) throws PortalException
getMBMessage
in interface MBMessageLocalService
messageId
- the primary key of the message-boards messagePortalException
- if a message-boards message with the primary key could not be foundpublic MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId) throws PortalException
getMBMessageByUuidAndGroupId
in interface MBMessageLocalService
uuid
- the message-boards message's UUIDgroupId
- the primary key of the groupPortalException
- if a matching message-boards message could not be foundpublic List<MBMessage> getMBMessages(int start, int end)
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.
getMBMessages
in interface MBMessageLocalService
start
- the lower bound of the range of message-boards messagesend
- the upper bound of the range of message-boards messages (not inclusive)public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId)
getMBMessagesByUuidAndCompanyId
in interface MBMessageLocalService
uuid
- the UUID of the message-boards messagescompanyId
- the primary key of the companypublic List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MBMessage> orderByComparator)
getMBMessagesByUuidAndCompanyId
in interface MBMessageLocalService
uuid
- the UUID of the message-boards messagescompanyId
- the primary key of the companystart
- the lower bound of the range of message-boards messagesend
- the upper bound of the range of message-boards messages (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getMBMessagesCount()
getMBMessagesCount
in interface MBMessageLocalService
public MBMessage getMessage(long messageId) throws PortalException
getMessage
in interface MBMessageLocalService
PortalException
public MBMessageDisplay getMessageDisplay(long userId, long messageId, int status) throws PortalException
getMessageDisplay
in interface MBMessageLocalService
PortalException
@Deprecated public MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, String threadView, boolean includePrevAndNext) throws PortalException
getMessageDisplay(long,
long, int)
getMessageDisplay
in interface MBMessageLocalService
PortalException
public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status) throws PortalException
getMessageDisplay
in interface MBMessageLocalService
PortalException
public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, Comparator<MBMessage> comparator) throws PortalException
getMessageDisplay
in interface MBMessageLocalService
PortalException
@Deprecated public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext) throws PortalException
getMessageDisplay(long,
MBMessage, int)
getMessageDisplay
in interface MBMessageLocalService
PortalException
@Deprecated public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext, Comparator<MBMessage> comparator) throws PortalException
getMessageDisplay(long,
MBMessage, int, Comparator)
(getMessageDisplay
in interface MBMessageLocalService
PortalException
public List<MBMessage> getMessages(String className, long classPK, int status)
getMessages
in interface MBMessageLocalService
public List<MBMessage> getNoAssetMessages()
getNoAssetMessages
in interface MBMessageLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface MBMessageLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface MBMessageLocalService
getPersistedModel
in interface PersistedModelLocalService
PortalException
public int getPositionInThread(long messageId) throws PortalException
getPositionInThread
in interface MBMessageLocalService
PortalException
public List<MBMessage> getThreadMessages(long threadId, int status)
getThreadMessages
in interface MBMessageLocalService
public List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator)
getThreadMessages
in interface MBMessageLocalService
public List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
getThreadMessages
in interface MBMessageLocalService
public List<MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, Comparator<MBMessage> comparator)
getThreadMessages
in interface MBMessageLocalService
public int getThreadMessagesCount(long threadId, int status)
getThreadMessagesCount
in interface MBMessageLocalService
public List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
getThreadRepliesMessages
in interface MBMessageLocalService
public List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
getUserDiscussionMessages
in interface MBMessageLocalService
public List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, OrderByComparator<MBMessage> obc)
getUserDiscussionMessages
in interface MBMessageLocalService
public List<MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
getUserDiscussionMessages
in interface MBMessageLocalService
public int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
getUserDiscussionMessagesCount
in interface MBMessageLocalService
public int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
getUserDiscussionMessagesCount
in interface MBMessageLocalService
public int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
getUserDiscussionMessagesCount
in interface MBMessageLocalService
public long moveMessageAttachmentToTrash(long userId, long messageId, String fileName) throws PortalException
moveMessageAttachmentToTrash
in interface MBMessageLocalService
PortalException
public void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName) throws PortalException
restoreMessageAttachmentFromTrash
in interface MBMessageLocalService
PortalException
public void subscribeMessage(long userId, long messageId) throws PortalException
subscribeMessage
in interface MBMessageLocalService
PortalException
public void unsubscribeMessage(long userId, long messageId) throws PortalException
unsubscribeMessage
in interface MBMessageLocalService
PortalException
public void updateAnswer(long messageId, boolean answer, boolean cascade) throws PortalException
updateAnswer
in interface MBMessageLocalService
PortalException
public void updateAnswer(MBMessage message, boolean answer, boolean cascade) throws PortalException
updateAnswer
in interface MBMessageLocalService
PortalException
public void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException
updateAsset
in interface MBMessageLocalService
PortalException
public MBMessage updateDiscussionMessage(long userId, long messageId, String className, long classPK, String subject, String body, ServiceContext serviceContext) throws PortalException
updateDiscussionMessage
in interface MBMessageLocalService
PortalException
public MBMessage updateMBMessage(MBMessage mbMessage)
updateMBMessage
in interface MBMessageLocalService
mbMessage
- the message-boards messagepublic MBMessage updateMessage(long userId, long messageId, String body, ServiceContext serviceContext) throws PortalException
updateMessage
in interface MBMessageLocalService
PortalException
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
updateMessage
in interface MBMessageLocalService
PortalException
@Deprecated public MBMessage updateMessage(long messageId, String body) throws PortalException
updateMessage
in interface MBMessageLocalService
PortalException
@Deprecated public MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext) throws PortalException
updateStatus(long, long,
int, ServiceContext, Map)
updateStatus
in interface MBMessageLocalService
PortalException
public MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws PortalException
updateStatus
in interface MBMessageLocalService
PortalException
public void updateUserName(long userId, String userName)
updateUserName
in interface MBMessageLocalService
public MBMessageLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<MBMessageLocalService>
public void setWrappedService(MBMessageLocalService mbMessageLocalService)
setWrappedService
in interface ServiceWrapper<MBMessageLocalService>