public class MBMessageLocalServiceWrapper extends java.lang.Object implements MBMessageLocalService, com.liferay.portal.kernel.service.ServiceWrapper<MBMessageLocalService>
MBMessageLocalService.MBMessageLocalService| Constructor and Description |
|---|
MBMessageLocalServiceWrapper() |
MBMessageLocalServiceWrapper(MBMessageLocalService mbMessageLocalService) |
| Modifier and Type | Method and Description |
|---|---|
MBMessage |
addDiscussionMessage(long userId,
java.lang.String userName,
long groupId,
java.lang.String className,
long classPK,
int workflowAction) |
MBMessage |
addDiscussionMessage(java.lang.String externalReferenceCode,
long userId,
java.lang.String userName,
long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
MBMessage |
addMBMessage(MBMessage mbMessage)
Adds the message-boards message to the database.
|
MBMessage |
addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext) |
MBMessage |
addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext) |
MBMessage |
addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext) |
MBMessage |
addMessage(long userId,
java.lang.String userName,
long groupId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.lang.String fileName,
java.io.File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext) |
MBMessage |
addMessage(java.lang.String externalReferenceCode,
long userId,
java.lang.String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.lang.String format,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
addMessageAttachment(long userId,
long messageId,
java.lang.String fileName,
java.io.File file,
java.lang.String mimeType) |
void |
addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addMessageResources(long messageId,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
void |
addMessageResources(MBMessage message,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addMessageResources(MBMessage message,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
com.liferay.portal.kernel.repository.model.FileEntry |
addTempAttachment(long groupId,
long userId,
java.lang.String folderName,
java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String mimeType) |
MBMessage |
createMBMessage(long messageId)
Creates a new message-boards message with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
MBMessage |
deleteDiscussionMessage(long messageId) |
void |
deleteDiscussionMessages(java.lang.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,
java.lang.String fileName) |
void |
deleteMessageAttachments(long messageId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteTempAttachment(long groupId,
long userId,
java.lang.String folderName,
java.lang.String fileName) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
void |
emptyMessageAttachments(long messageId) |
MBMessage |
fetchFileEntryMessage(long fileEntryId) |
MBMessage |
fetchFirstMessage(long threadId,
long parentMessageId) |
MBMessage |
fetchMBMessage(long messageId) |
MBMessage |
fetchMBMessageByExternalReferenceCode(long groupId,
java.lang.String externalReferenceCode)
Returns the message-boards message with the matching external reference code and group.
|
MBMessage |
fetchMBMessageByReferenceCode(long groupId,
java.lang.String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchMBMessageByExternalReferenceCode(long, String) |
MBMessage |
fetchMBMessageByUrlSubject(long groupId,
java.lang.String urlSubject) |
MBMessage |
fetchMBMessageByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message-boards message matching the UUID and group.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end) |
java.util.List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) |
java.util.List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
long threadId) |
int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status) |
java.util.List<MBMessage> |
getChildMessages(long parentMessageId,
int status) |
java.util.List<MBMessage> |
getChildMessages(long parentMessageId,
int status,
int start,
int end) |
int |
getChildMessagesCount(long parentMessageId,
int status) |
java.util.List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end) |
java.util.List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) |
int |
getCompanyMessagesCount(long companyId,
int status) |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage> |
getCTPersistence() |
MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
java.lang.String className,
long classPK,
int status) |
MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
java.lang.String className,
long classPK,
int status,
java.util.Comparator<MBMessage> comparator) |
int |
getDiscussionMessagesCount(long classNameId,
long classPK,
int status) |
int |
getDiscussionMessagesCount(java.lang.String className,
long classPK,
int status) |
java.util.List<MBDiscussion> |
getDiscussions(java.lang.String className) |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
MBMessage |
getFileEntryMessage(long fileEntryId) |
MBMessage |
getFirstMessage(long threadId,
long parentMessageId) |
java.util.List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end) |
java.util.List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) |
java.util.List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end) |
java.util.List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) |
int |
getGroupMessagesCount(long groupId,
int status) |
int |
getGroupMessagesCount(long groupId,
long userId,
int status) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
MBMessage |
getLastThreadMessage(long threadId,
int status) |
MBMessage |
getMBMessage(long messageId)
Returns the message-boards message with the primary key.
|
MBMessage |
getMBMessageByExternalReferenceCode(long groupId,
java.lang.String externalReferenceCode)
Returns the message-boards message with the matching external reference code and group.
|
MBMessage |
getMBMessageByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the message-boards message matching the UUID and group.
|
java.util.List<MBMessage> |
getMBMessages(int start,
int end)
Returns a range of all the message-boards messages.
|
java.util.List<MBMessage> |
getMBMessagesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the message-boards messages matching the UUID and company.
|
java.util.List<MBMessage> |
getMBMessagesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.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,
MBMessage message,
int status) |
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
java.util.Comparator<MBMessage> comparator) |
java.util.List<MBMessage> |
getMessages(java.lang.String className,
long classPK,
int status) |
java.lang.Class<MBMessage> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
int |
getPositionInThread(long messageId) |
java.util.List<MBMessage> |
getRootDiscussionMessages(java.lang.String className,
long classPK,
int status) |
java.util.List<MBMessage> |
getRootDiscussionMessages(java.lang.String className,
long classPK,
int status,
int start,
int end) |
int |
getRootDiscussionMessagesCount(java.lang.String className,
long classPK,
int status) |
java.lang.String[] |
getTempAttachmentNames(long groupId,
long userId,
java.lang.String folderName) |
java.util.List<MBMessage> |
getThreadMessages(long threadId,
int status) |
java.util.List<MBMessage> |
getThreadMessages(long threadId,
int status,
java.util.Comparator<MBMessage> comparator) |
java.util.List<MBMessage> |
getThreadMessages(long threadId,
int status,
int start,
int end) |
java.util.List<MBMessage> |
getThreadMessages(long threadId,
long parentMessageId) |
java.util.List<MBMessage> |
getThreadMessages(long userId,
long threadId,
int status,
int start,
int end,
java.util.Comparator<MBMessage> comparator) |
int |
getThreadMessagesCount(long threadId,
boolean answer) |
int |
getThreadMessagesCount(long threadId,
int status) |
java.util.List<MBMessage> |
getThreadRepliesMessages(long threadId,
int status,
int start,
int end) |
java.util.List<MBMessage> |
getUserDiscussionMessages(long userId,
long[] classNameIds,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) |
java.util.List<MBMessage> |
getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) |
java.util.List<MBMessage> |
getUserDiscussionMessages(long userId,
java.lang.String className,
long classPK,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) |
int |
getUserDiscussionMessagesCount(long userId,
long[] classNameIds,
int status) |
int |
getUserDiscussionMessagesCount(long userId,
long classNameId,
long classPK,
int status) |
int |
getUserDiscussionMessagesCount(long userId,
java.lang.String className,
long classPK,
int status) |
MBMessageLocalService |
getWrappedService() |
long |
moveMessageAttachmentToTrash(long userId,
long messageId,
java.lang.String fileName) |
void |
restoreMessageAttachmentFromTrash(long userId,
long messageId,
java.lang.String deletedFileName) |
void |
setWrappedService(MBMessageLocalService mbMessageLocalService) |
void |
subscribeMessage(long userId,
long messageId) |
void |
unsubscribeMessage(long userId,
long messageId) |
MBMessage |
updateAnswer(long messageId,
boolean answer,
boolean cascade) |
MBMessage |
updateAnswer(MBMessage message,
boolean answer,
boolean cascade) |
void |
updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds) |
MBMessage |
updateDiscussionMessage(long userId,
long messageId,
java.lang.String className,
long classPK,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.kernel.service.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,
java.lang.String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
MBMessage |
updateMessage(long userId,
long messageId,
java.lang.String subject,
java.lang.String body,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
MBMessage |
updateStatus(long userId,
long messageId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext) |
void |
updateUserName(long userId,
java.lang.String userName) |
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage>,R,E> updateUnsafeFunction) |
public MBMessageLocalServiceWrapper()
public MBMessageLocalServiceWrapper(MBMessageLocalService mbMessageLocalService)
public MBMessage addDiscussionMessage(long userId, java.lang.String userName, long groupId, java.lang.String className, long classPK, int workflowAction) throws com.liferay.portal.kernel.exception.PortalException
addDiscussionMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage addDiscussionMessage(java.lang.String externalReferenceCode, long userId, java.lang.String userName, long groupId, java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addDiscussionMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage addMBMessage(MBMessage mbMessage)
Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
addMBMessage in interface MBMessageLocalServicembMessage - the message-boards message@Deprecated public MBMessage addMessage(long userId, java.lang.String userName, long groupId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext)addMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalException@Deprecated public MBMessage addMessage(long userId, java.lang.String userName, long groupId, long categoryId, java.lang.String subject, java.lang.String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext)addMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalException@Deprecated public MBMessage addMessage(long userId, java.lang.String userName, long groupId, long categoryId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext)addMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalException@Deprecated public MBMessage addMessage(long userId, java.lang.String userName, long groupId, long categoryId, java.lang.String subject, java.lang.String body, java.lang.String format, java.lang.String fileName, java.io.File file, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, java.io.FileNotFoundException
addMessage(String, long, String, long, long, long, long,
String, String, String, List, boolean, double, boolean,
ServiceContext)addMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionjava.io.FileNotFoundExceptionpublic MBMessage addMessage(java.lang.String externalReferenceCode, long userId, java.lang.String userName, long groupId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.lang.String format, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addMessageAttachment(long userId,
long messageId,
java.lang.String fileName,
java.io.File file,
java.lang.String mimeType)
throws com.liferay.portal.kernel.exception.PortalException
addMessageAttachment in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
addMessageResources in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addMessageResources(long messageId,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
throws com.liferay.portal.kernel.exception.PortalException
addMessageResources in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addMessageResources in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addMessageResources(MBMessage message, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addMessageResources in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addTempAttachment(long groupId,
long userId,
java.lang.String folderName,
java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String mimeType)
throws com.liferay.portal.kernel.exception.PortalException
addTempAttachment in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage createMBMessage(long messageId)
createMBMessage in interface MBMessageLocalServicemessageId - the primary key for the new message-boards messagepublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface MBMessageLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic MBMessage deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
deleteDiscussionMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteDiscussionMessages(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
deleteDiscussionMessages in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage deleteMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteMBMessage in interface MBMessageLocalServicemessageId - 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)
Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteMBMessage in interface MBMessageLocalServicembMessage - the message-boards messagepublic MBMessage deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
deleteMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage deleteMessage(MBMessage message) throws com.liferay.portal.kernel.exception.PortalException
deleteMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteMessageAttachment(long messageId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException
deleteMessageAttachment in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteMessageAttachments(long messageId)
throws com.liferay.portal.kernel.exception.PortalException
deleteMessageAttachments in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface MBMessageLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic void deleteTempAttachment(long groupId,
long userId,
java.lang.String folderName,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException
deleteTempAttachment in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface MBMessageLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface MBMessageLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface MBMessageLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface MBMessageLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBMessageModelImpl.
dynamicQuery in interface MBMessageLocalServicedynamicQuery - 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> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBMessageModelImpl.
dynamicQuery in interface MBMessageLocalServicedynamicQuery - 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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface MBMessageLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface MBMessageLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic void emptyMessageAttachments(long messageId)
throws com.liferay.portal.kernel.exception.PortalException
emptyMessageAttachments in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage fetchFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
fetchFileEntryMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage fetchFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
fetchFirstMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage fetchMBMessage(long messageId)
fetchMBMessage in interface MBMessageLocalServicepublic MBMessage fetchMBMessageByExternalReferenceCode(long groupId, java.lang.String externalReferenceCode)
fetchMBMessageByExternalReferenceCode in interface MBMessageLocalServicegroupId - the primary key of the groupexternalReferenceCode - the message-boards message's external reference codenull if a matching message-boards message could not be found@Deprecated public MBMessage fetchMBMessageByReferenceCode(long groupId, java.lang.String externalReferenceCode)
fetchMBMessageByExternalReferenceCode(long, String)fetchMBMessageByReferenceCode in interface MBMessageLocalServicepublic MBMessage fetchMBMessageByUrlSubject(long groupId, java.lang.String urlSubject)
fetchMBMessageByUrlSubject in interface MBMessageLocalServicepublic MBMessage fetchMBMessageByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchMBMessageByUuidAndGroupId in interface MBMessageLocalServiceuuid - the message-boards message's UUIDgroupId - the primary key of the groupnull if a matching message-boards message could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface MBMessageLocalServicepublic java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
getCategoryMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getCategoryMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, long threadId)
getCategoryMessages in interface MBMessageLocalServicepublic int getCategoryMessagesCount(long groupId,
long categoryId,
int status)
getCategoryMessagesCount in interface MBMessageLocalServicepublic java.util.List<MBMessage> getChildMessages(long parentMessageId, int status)
getChildMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getChildMessages(long parentMessageId, int status, int start, int end)
getChildMessages in interface MBMessageLocalServicepublic int getChildMessagesCount(long parentMessageId,
int status)
getChildMessagesCount in interface MBMessageLocalServicepublic java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
getCompanyMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getCompanyMessages in interface MBMessageLocalServicepublic int getCompanyMessagesCount(long companyId,
int status)
getCompanyMessagesCount in interface MBMessageLocalServicepublic MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, java.lang.String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
getDiscussionMessageDisplay in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, java.lang.String className, long classPK, int status, java.util.Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
getDiscussionMessageDisplay in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic int getDiscussionMessagesCount(long classNameId,
long classPK,
int status)
getDiscussionMessagesCount in interface MBMessageLocalServicepublic int getDiscussionMessagesCount(java.lang.String className,
long classPK,
int status)
getDiscussionMessagesCount in interface MBMessageLocalServicepublic java.util.List<MBDiscussion> getDiscussions(java.lang.String className)
getDiscussions in interface MBMessageLocalServicepublic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface MBMessageLocalServicepublic MBMessage getFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
getFileEntryMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage getFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
getFirstMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
getGroupMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getGroupMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
getGroupMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getGroupMessages in interface MBMessageLocalServicepublic int getGroupMessagesCount(long groupId,
int status)
getGroupMessagesCount in interface MBMessageLocalServicepublic int getGroupMessagesCount(long groupId,
long userId,
int status)
getGroupMessagesCount in interface MBMessageLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface MBMessageLocalServicepublic MBMessage getLastThreadMessage(long threadId, int status) throws com.liferay.portal.kernel.exception.PortalException
getLastThreadMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage getMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
getMBMessage in interface MBMessageLocalServicemessageId - the primary key of the message-boards messagePortalException - if a message-boards message with the primary key could not be foundpublic MBMessage getMBMessageByExternalReferenceCode(long groupId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
getMBMessageByExternalReferenceCode in interface MBMessageLocalServicegroupId - the primary key of the groupexternalReferenceCode - the message-boards message's external reference codePortalException - if a matching message-boards message could not be foundpublic MBMessage getMBMessageByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getMBMessageByUuidAndGroupId in interface MBMessageLocalServiceuuid - the message-boards message's UUIDgroupId - the primary key of the groupPortalException - if a matching message-boards message could not be foundpublic java.util.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBMessageModelImpl.
getMBMessages in interface MBMessageLocalServicestart - the lower bound of the range of message-boards messagesend - the upper bound of the range of message-boards messages (not inclusive)public java.util.List<MBMessage> getMBMessagesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getMBMessagesByUuidAndCompanyId in interface MBMessageLocalServiceuuid - the UUID of the message-boards messagescompanyId - the primary key of the companypublic java.util.List<MBMessage> getMBMessagesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getMBMessagesByUuidAndCompanyId in interface MBMessageLocalServiceuuid - 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 MBMessageLocalServicepublic MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
getMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessageDisplay getMessageDisplay(long userId, long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, java.util.Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<MBMessage> getMessages(java.lang.String className, long classPK, int status)
getMessages in interface MBMessageLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface MBMessageLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface MBMessageLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic int getPositionInThread(long messageId)
throws com.liferay.portal.kernel.exception.PortalException
getPositionInThread in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<MBMessage> getRootDiscussionMessages(java.lang.String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
getRootDiscussionMessages in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<MBMessage> getRootDiscussionMessages(java.lang.String className, long classPK, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
getRootDiscussionMessages in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic int getRootDiscussionMessagesCount(java.lang.String className,
long classPK,
int status)
getRootDiscussionMessagesCount in interface MBMessageLocalServicepublic java.lang.String[] getTempAttachmentNames(long groupId,
long userId,
java.lang.String folderName)
throws com.liferay.portal.kernel.exception.PortalException
getTempAttachmentNames in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<MBMessage> getThreadMessages(long threadId, int status)
getThreadMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getThreadMessages(long threadId, int status, java.util.Comparator<MBMessage> comparator)
getThreadMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
getThreadMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getThreadMessages(long threadId, long parentMessageId)
getThreadMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, java.util.Comparator<MBMessage> comparator)
getThreadMessages in interface MBMessageLocalServicepublic int getThreadMessagesCount(long threadId,
boolean answer)
getThreadMessagesCount in interface MBMessageLocalServicepublic int getThreadMessagesCount(long threadId,
int status)
getThreadMessagesCount in interface MBMessageLocalServicepublic java.util.List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
getThreadRepliesMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getUserDiscussionMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getUserDiscussionMessages in interface MBMessageLocalServicepublic java.util.List<MBMessage> getUserDiscussionMessages(long userId, java.lang.String className, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
getUserDiscussionMessages in interface MBMessageLocalServicepublic int getUserDiscussionMessagesCount(long userId,
long classNameId,
long classPK,
int status)
getUserDiscussionMessagesCount in interface MBMessageLocalServicepublic int getUserDiscussionMessagesCount(long userId,
long[] classNameIds,
int status)
getUserDiscussionMessagesCount in interface MBMessageLocalServicepublic int getUserDiscussionMessagesCount(long userId,
java.lang.String className,
long classPK,
int status)
getUserDiscussionMessagesCount in interface MBMessageLocalServicepublic long moveMessageAttachmentToTrash(long userId,
long messageId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException
moveMessageAttachmentToTrash in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void restoreMessageAttachmentFromTrash(long userId,
long messageId,
java.lang.String deletedFileName)
throws com.liferay.portal.kernel.exception.PortalException
restoreMessageAttachmentFromTrash in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void subscribeMessage(long userId,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
subscribeMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void unsubscribeMessage(long userId,
long messageId)
throws com.liferay.portal.kernel.exception.PortalException
unsubscribeMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
updateAnswer in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage updateAnswer(MBMessage message, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
updateAnswer in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds)
throws com.liferay.portal.kernel.exception.PortalException
updateAsset in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage updateDiscussionMessage(long userId, long messageId, java.lang.String className, long classPK, java.lang.String subject, java.lang.String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateDiscussionMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage updateMBMessage(MBMessage mbMessage)
Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
updateMBMessage in interface MBMessageLocalServicembMessage - the message-boards messagepublic MBMessage updateMessage(long userId, long messageId, java.lang.String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage updateMessage(long userId, long messageId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateMessage in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic MBMessage updateStatus(long userId, long messageId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus in interface MBMessageLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void updateUserName(long userId,
java.lang.String userName)
updateUserName in interface MBMessageLocalServicepublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage> getCTPersistence()
getCTPersistence in interface MBMessageLocalServicegetCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>public java.lang.Class<MBMessage> getModelClass()
getModelClass in interface MBMessageLocalServicegetModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface MBMessageLocalServiceupdateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>E extends java.lang.Throwablepublic MBMessageLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBMessageLocalService>public void setWrappedService(MBMessageLocalService mbMessageLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBMessageLocalService>