@ProviderType
public class MBMessageLocalServiceUtil
extends Object
MBMessageLocalServiceImpl
and is the
primary access point for service operations in application layer code running
on the local server. 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.MBMessageLocalService
,
MBMessageLocalServiceBaseImpl
,
MBMessageLocalServiceImpl
Constructor and Description |
---|
MBMessageLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static MBMessage |
addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
int workflowAction) |
static MBMessage |
addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext) |
static MBMessage |
addMBMessage(MBMessage mbMessage)
Adds the message-boards message to the database.
|
static 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) |
static MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
ServiceContext serviceContext) |
static 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) |
static 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) |
static 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) |
static void |
addMessageAttachment(long userId,
long messageId,
String fileName,
File file,
String mimeType) |
static void |
addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addMessageResources(long messageId,
ModelPermissions modelPermissions) |
static void |
addMessageResources(MBMessage message,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addMessageResources(MBMessage message,
ModelPermissions modelPermissions) |
static MBMessage |
createMBMessage(long messageId)
Creates a new message-boards message with the primary key.
|
static MBMessage |
deleteDiscussionMessage(long messageId) |
static void |
deleteDiscussionMessages(String className,
long classPK) |
static MBMessage |
deleteMBMessage(long messageId)
Deletes the message-boards message with the primary key from the database.
|
static MBMessage |
deleteMBMessage(MBMessage mbMessage)
Deletes the message-boards message from the database.
|
static MBMessage |
deleteMessage(long messageId) |
static MBMessage |
deleteMessage(MBMessage message) |
static void |
deleteMessageAttachment(long messageId,
String fileName) |
static void |
deleteMessageAttachments(long messageId) |
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <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.
|
static <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.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
static void |
emptyMessageAttachments(long messageId) |
static MBMessage |
fetchMBMessage(long messageId) |
static MBMessage |
fetchMBMessageByUuidAndGroupId(String uuid,
long groupId)
Returns the message-boards message matching the UUID and group.
|
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end) |
static List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc) |
static int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status) |
static List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end) |
static List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc) |
static int |
getCompanyMessagesCount(long companyId,
int status) |
static MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status) |
static MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
Comparator<MBMessage> comparator) |
static 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) |
static int |
getDiscussionMessagesCount(long classNameId,
long classPK,
int status) |
static int |
getDiscussionMessagesCount(String className,
long classPK,
int status) |
static List<MBDiscussion> |
getDiscussions(String className) |
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
static List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end) |
static List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc) |
static List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end) |
static List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc) |
static int |
getGroupMessagesCount(long groupId,
int status) |
static int |
getGroupMessagesCount(long groupId,
long userId,
int status) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static MBMessage |
getMBMessage(long messageId)
Returns the message-boards message with the primary key.
|
static MBMessage |
getMBMessageByUuidAndGroupId(String uuid,
long groupId)
Returns the message-boards message matching the UUID and group.
|
static List<MBMessage> |
getMBMessages(int start,
int end)
Returns a range of all the message-boards messages.
|
static List<MBMessage> |
getMBMessagesByUuidAndCompanyId(String uuid,
long companyId)
Returns all the message-boards messages matching the UUID and company.
|
static 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.
|
static int |
getMBMessagesCount()
Returns the number of message-boards messages.
|
static MBMessage |
getMessage(long messageId) |
static MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status) |
static MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated.
As of 7.0.0, replaced by
getMessageDisplay(long,
long, int) |
static MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status) |
static MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
Comparator<MBMessage> comparator) |
static MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated.
As of 7.0.0, replaced by
getMessageDisplay(long,
MBMessage, int) |
static 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) ( |
static List<MBMessage> |
getMessages(String className,
long classPK,
int status) |
static List<MBMessage> |
getNoAssetMessages() |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static int |
getPositionInThread(long messageId) |
static MBMessageLocalService |
getService() |
static List<MBMessage> |
getThreadMessages(long threadId,
int status) |
static List<MBMessage> |
getThreadMessages(long threadId,
int status,
Comparator<MBMessage> comparator) |
static List<MBMessage> |
getThreadMessages(long threadId,
int status,
int start,
int end) |
static List<MBMessage> |
getThreadMessages(long userId,
long threadId,
int status,
int start,
int end,
Comparator<MBMessage> comparator) |
static int |
getThreadMessagesCount(long threadId,
int status) |
static List<MBMessage> |
getThreadRepliesMessages(long threadId,
int status,
int start,
int end) |
static List<MBMessage> |
getUserDiscussionMessages(long userId,
long[] classNameIds,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc) |
static List<MBMessage> |
getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc) |
static List<MBMessage> |
getUserDiscussionMessages(long userId,
String className,
long classPK,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc) |
static int |
getUserDiscussionMessagesCount(long userId,
long[] classNameIds,
int status) |
static int |
getUserDiscussionMessagesCount(long userId,
long classNameId,
long classPK,
int status) |
static int |
getUserDiscussionMessagesCount(long userId,
String className,
long classPK,
int status) |
static long |
moveMessageAttachmentToTrash(long userId,
long messageId,
String fileName) |
static void |
restoreMessageAttachmentFromTrash(long userId,
long messageId,
String deletedFileName) |
static void |
subscribeMessage(long userId,
long messageId) |
static void |
unsubscribeMessage(long userId,
long messageId) |
static void |
updateAnswer(long messageId,
boolean answer,
boolean cascade) |
static void |
updateAnswer(MBMessage message,
boolean answer,
boolean cascade) |
static void |
updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds) |
static MBMessage |
updateDiscussionMessage(long userId,
long messageId,
String className,
long classPK,
String subject,
String body,
ServiceContext serviceContext) |
static MBMessage |
updateMBMessage(MBMessage mbMessage)
Updates the message-boards message in the database or adds it if it does not yet exist.
|
static MBMessage |
updateMessage(long userId,
long messageId,
String body,
ServiceContext serviceContext) |
static MBMessage |
updateMessage(long userId,
long messageId,
String subject,
String body,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext) |
static MBMessage |
updateMessage(long messageId,
String body)
Deprecated.
As of 7.0.0, with no direct replacement
|
static MBMessage |
updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
updateStatus(long, long,
int, ServiceContext, Map) |
static MBMessage |
updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext) |
static void |
updateUserName(long userId,
String userName) |
public static MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction) throws PortalException
PortalException
public static MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalException
public static MBMessage addMBMessage(MBMessage mbMessage)
mbMessage
- the message-boards messagepublic static 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
PortalException
public static MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalException
public static 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
PortalException
public static 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
FileNotFoundException
PortalException
@Deprecated public static MBMessage addMessage(long userId, String userName, long categoryId, String subject, String body, ServiceContext serviceContext) throws PortalException
addMessage(long, String,
long, long, String, String, ServiceContext)
PortalException
public static void addMessageAttachment(long userId, long messageId, String fileName, File file, String mimeType) throws PortalException
PortalException
public static void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
PortalException
public static void addMessageResources(long messageId, ModelPermissions modelPermissions) throws PortalException
PortalException
public static void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
PortalException
public static void addMessageResources(MBMessage message, ModelPermissions modelPermissions) throws PortalException
PortalException
public static MBMessage createMBMessage(long messageId)
messageId
- the primary key for the new message-boards messagepublic static MBMessage deleteDiscussionMessage(long messageId) throws PortalException
PortalException
public static void deleteDiscussionMessages(String className, long classPK) throws PortalException
PortalException
public static MBMessage deleteMBMessage(long messageId) throws PortalException
messageId
- the primary key of the message-boards messagePortalException
- if a message-boards message with the primary key could not be foundpublic static MBMessage deleteMBMessage(MBMessage mbMessage)
mbMessage
- the message-boards messagepublic static MBMessage deleteMessage(long messageId) throws PortalException
PortalException
public static MBMessage deleteMessage(MBMessage message) throws PortalException
PortalException
public static void deleteMessageAttachment(long messageId, String fileName) throws PortalException
PortalException
public static void deleteMessageAttachments(long messageId) throws PortalException
PortalException
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <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
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <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
- 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 static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static void emptyMessageAttachments(long messageId) throws PortalException
PortalException
public static MBMessage fetchMBMessage(long messageId)
public static MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId)
uuid
- the message-boards message's UUIDgroupId
- the primary key of the groupnull
if a matching message-boards message could not be foundpublic static ActionableDynamicQuery getActionableDynamicQuery()
public static List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
public static List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, OrderByComparator<MBMessage> obc)
public static int getCategoryMessagesCount(long groupId, long categoryId, int status)
public static List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
public static List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, OrderByComparator<MBMessage> obc)
public static int getCompanyMessagesCount(long companyId, int status)
public static MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status) throws PortalException
PortalException
public static MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator) throws PortalException
PortalException
@Deprecated public static MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, String threadView) throws PortalException
getDiscussionMessageDisplay(long, long, String, long, int)
PortalException
public static int getDiscussionMessagesCount(long classNameId, long classPK, int status)
public static int getDiscussionMessagesCount(String className, long classPK, int status)
public static List<MBDiscussion> getDiscussions(String className)
public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
public static List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, OrderByComparator<MBMessage> obc)
public static List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
public static List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, OrderByComparator<MBMessage> obc)
public static int getGroupMessagesCount(long groupId, int status)
public static int getGroupMessagesCount(long groupId, long userId, int status)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static MBMessage getMBMessage(long messageId) throws PortalException
messageId
- the primary key of the message-boards messagePortalException
- if a message-boards message with the primary key could not be foundpublic static MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId) throws PortalException
uuid
- the message-boards message's UUIDgroupId
- the primary key of the groupPortalException
- if a matching message-boards message could not be foundpublic static 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.
start
- the lower bound of the range of message-boards messagesend
- the upper bound of the range of message-boards messages (not inclusive)public static List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId)
uuid
- the UUID of the message-boards messagescompanyId
- the primary key of the companypublic static List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MBMessage> orderByComparator)
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 static int getMBMessagesCount()
public static MBMessage getMessage(long messageId) throws PortalException
PortalException
public static MBMessageDisplay getMessageDisplay(long userId, long messageId, int status) throws PortalException
PortalException
@Deprecated public static MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, String threadView, boolean includePrevAndNext) throws PortalException
getMessageDisplay(long,
long, int)
PortalException
public static MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status) throws PortalException
PortalException
public static MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, Comparator<MBMessage> comparator) throws PortalException
PortalException
@Deprecated public static MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext) throws PortalException
getMessageDisplay(long,
MBMessage, int)
PortalException
@Deprecated public static MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, String threadView, boolean includePrevAndNext, Comparator<MBMessage> comparator) throws PortalException
getMessageDisplay(long,
MBMessage, int, Comparator)
(PortalException
public static List<MBMessage> getMessages(String className, long classPK, int status)
public static List<MBMessage> getNoAssetMessages()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static int getPositionInThread(long messageId) throws PortalException
PortalException
public static List<MBMessage> getThreadMessages(long threadId, int status)
public static List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator)
public static List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
public static List<MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, Comparator<MBMessage> comparator)
public static int getThreadMessagesCount(long threadId, int status)
public static List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
public static List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
public static List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, OrderByComparator<MBMessage> obc)
public static List<MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, OrderByComparator<MBMessage> obc)
public static int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
public static int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
public static int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
public static long moveMessageAttachmentToTrash(long userId, long messageId, String fileName) throws PortalException
PortalException
public static void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName) throws PortalException
PortalException
public static void subscribeMessage(long userId, long messageId) throws PortalException
PortalException
public static void unsubscribeMessage(long userId, long messageId) throws PortalException
PortalException
public static void updateAnswer(long messageId, boolean answer, boolean cascade) throws PortalException
PortalException
public static void updateAnswer(MBMessage message, boolean answer, boolean cascade) throws PortalException
PortalException
public static void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException
PortalException
public static MBMessage updateDiscussionMessage(long userId, long messageId, String className, long classPK, String subject, String body, ServiceContext serviceContext) throws PortalException
PortalException
public static MBMessage updateMBMessage(MBMessage mbMessage)
mbMessage
- the message-boards messagepublic static MBMessage updateMessage(long userId, long messageId, String body, ServiceContext serviceContext) throws PortalException
PortalException
public static 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
PortalException
@Deprecated public static MBMessage updateMessage(long messageId, String body) throws PortalException
PortalException
@Deprecated public static MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext) throws PortalException
updateStatus(long, long,
int, ServiceContext, Map)
PortalException
public static MBMessage updateStatus(long userId, long messageId, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws PortalException
PortalException
public static void updateUserName(long userId, String userName)
public static MBMessageLocalService getService()