Interface MBMessageLocalService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>
,com.liferay.portal.kernel.service.PersistedModelLocalService
- All Known Implementing Classes:
MBMessageLocalServiceWrapper
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionaddDiscussionMessage
(long userId, String userName, long groupId, String className, long classPK, int workflowAction) addDiscussionMessage
(String externalReferenceCode, long userId, String userName, long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) addMBMessage
(MBMessage mbMessage) Adds the message-boards message to the database.addMessage
(long userId, String userName, long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.addMessage
(long userId, String userName, long groupId, long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)
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, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)
addMessage
(long userId, String userName, long groupId, long categoryId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)
addMessage
(String externalReferenceCode, long userId, String userName, long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext 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, 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, String folderName, String fileName, InputStream inputStream, String mimeType) createMBMessage
(long messageId) Creates a new message-boards message with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteDiscussionMessage
(long messageId) void
deleteDiscussionMessages
(String className, long classPK) deleteMBMessage
(long messageId) Deletes the message-boards message with the primary key from the database.deleteMBMessage
(MBMessage mbMessage) Deletes the message-boards message from the database.deleteMessage
(long messageId) deleteMessage
(MBMessage message) void
deleteMessageAttachment
(long messageId, 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, String folderName, 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
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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> 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) fetchFileEntryMessage
(long fileEntryId) fetchFirstMessage
(long threadId, long parentMessageId) fetchMBMessage
(long messageId) fetchMBMessageByExternalReferenceCode
(String externalReferenceCode, long groupId) fetchMBMessageByUrlSubject
(long groupId, String urlSubject) fetchMBMessageByUuidAndGroupId
(String uuid, long groupId) Returns the message-boards message matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getCategoryMessages
(long groupId, long categoryId, int status, int start, int end) getCategoryMessages
(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) getCategoryMessages
(long groupId, long categoryId, long threadId) int
getCategoryMessagesCount
(long groupId, long categoryId, int status) getChildMessages
(long parentMessageId, int status) getChildMessages
(long parentMessageId, int status, int start, int end) int
getChildMessagesCount
(long parentMessageId, int status) getCompanyMessages
(long companyId, int status, int start, int end) 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>
getDiscussionMessageDisplay
(long userId, long groupId, String className, long classPK, int status) getDiscussionMessageDisplay
(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator) int
getDiscussionMessagesCount
(long classNameId, long classPK, int status) int
getDiscussionMessagesCount
(String className, long classPK, int status) getDiscussions
(String className) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) getFileEntryMessage
(long fileEntryId) getFirstMessage
(long threadId, long parentMessageId) getGroupMessages
(long groupId, int status, int start, int end) getGroupMessages
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) getGroupMessages
(long groupId, long userId, int status, int start, int end) 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) getGroupUserMessageBoardMessagesActivity
(long groupId, long userId, int start, int end) int
getGroupUserMessageBoardMessagesActivityCount
(long groupId, long userId) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getLastThreadMessage
(long threadId, int status) getMBMessage
(long messageId) Returns the message-boards message with the primary key.getMBMessageByExternalReferenceCode
(String externalReferenceCode, long groupId) getMBMessageByUuidAndGroupId
(String uuid, long groupId) Returns the message-boards message matching the UUID and group.getMBMessages
(int start, int end) Returns a range of all the message-boards messages.getMBMessagesByUuidAndCompanyId
(String uuid, long companyId) Returns all the message-boards messages matching the UUID and company.getMBMessagesByUuidAndCompanyId
(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
Returns the number of message-boards messages.getMessage
(long messageId) getMessageDisplay
(long userId, long messageId, int status) getMessageDisplay
(long userId, MBMessage message, int status) getMessageDisplay
(long userId, MBMessage message, int status, Comparator<MBMessage> comparator) getMessages
(String className, long classPK, int status) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) int
getPositionInThread
(long messageId) getRootDiscussionMessages
(String className, long classPK, int status) getRootDiscussionMessages
(String className, long classPK, int status, int start, int end) int
getRootDiscussionMessagesCount
(String className, long classPK, int status) String[]
getTempAttachmentNames
(long groupId, long userId, String folderName) getThreadMessages
(long threadId, int status) getThreadMessages
(long threadId, int status, int start, int end) getThreadMessages
(long threadId, int status, Comparator<MBMessage> comparator) getThreadMessages
(long threadId, long parentMessageId) getThreadMessages
(long userId, long threadId, int status, int start, int end, Comparator<MBMessage> comparator) int
getThreadMessagesCount
(long threadId, boolean answer) int
getThreadMessagesCount
(long threadId, int status) getThreadRepliesMessages
(long threadId, int status, int start, int end) getUserDiscussionMessages
(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) getUserDiscussionMessages
(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator) getUserDiscussionMessages
(long userId, 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, String className, long classPK, int status) long
moveMessageAttachmentToTrash
(long userId, long messageId, String fileName) void
restoreMessageAttachmentFromTrash
(long userId, long messageId, String deletedFileName) void
subscribeMessage
(long userId, long messageId) void
unsubscribeMessage
(long userId, long messageId) updateAnswer
(long messageId, boolean answer, boolean cascade) updateAnswer
(MBMessage message, boolean answer, boolean cascade) void
updateAsset
(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) updateDiscussionMessage
(long userId, long messageId, String className, long classPK, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateMBMessage
(MBMessage mbMessage) Updates the message-boards message in the database or adds it if it does not yet exist.updateMessage
(long userId, long messageId, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateMessage
(long userId, long messageId, String subject, String body, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateStatus
(long userId, long messageId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) void
updateUserName
(long userId, String userName) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addDiscussionMessage
MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addDiscussionMessage
MBMessage addDiscussionMessage(String externalReferenceCode, long userId, String userName, long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMBMessage
Adds the message-boards message to the database. Also notifies the appropriate model listeners.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.
- Parameters:
mbMessage
- the message-boards message- Returns:
- the message-boards message that was added
-
addMessage
@Deprecated MBMessage addMessage(long userId, String userName, long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalExceptionDeprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated MBMessage addMessage(long userId, String userName, long groupId, long categoryId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalExceptionDeprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
@Deprecated 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws FileNotFoundException, com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byaddMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)
- Throws:
FileNotFoundException
com.liferay.portal.kernel.exception.PortalException
-
addMessage
MBMessage addMessage(String externalReferenceCode, long userId, String userName, long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageAttachment
void addMessageAttachment(long userId, long messageId, String fileName, File file, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageResources
void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageResources
void addMessageResources(long messageId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageResources
void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageResources
void addMessageResources(MBMessage message, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTempAttachment
com.liferay.portal.kernel.repository.model.FileEntry addTempAttachment(long groupId, long userId, String folderName, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
createMBMessage
Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.- Parameters:
messageId
- the primary key for the new message-boards message- Returns:
- the new message-boards message
-
createPersistedModel
com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteDiscussionMessage
@Indexable(type=DELETE) MBMessage deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteDiscussionMessages
void deleteDiscussionMessages(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMBMessage
@Indexable(type=DELETE) MBMessage deleteMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.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.
- Parameters:
messageId
- the primary key of the message-boards message- Returns:
- the message-boards message that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a message-boards message with the primary key could not be found
-
deleteMBMessage
Deletes the message-boards message from the database. Also notifies the appropriate model listeners.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.
- Parameters:
mbMessage
- the message-boards message- Returns:
- the message-boards message that was removed
-
deleteMessage
@Indexable(type=DELETE) MBMessage deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessage
@Indexable(type=DELETE) @SystemEvent(type=1) MBMessage deleteMessage(MBMessage message) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachment
void deleteMessageAttachment(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMessageAttachments
void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTempAttachment
void deleteTempAttachment(long groupId, long userId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBMessageModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBMessageModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) 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.- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
emptyMessageAttachments
void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchFileEntryMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchFirstMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchMBMessage
-
fetchMBMessageByExternalReferenceCode
-
fetchMBMessageByUrlSubject
-
fetchMBMessageByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId) Returns the message-boards message matching the UUID and group.- Parameters:
uuid
- the message-boards message's UUIDgroupId
- the primary key of the group- Returns:
- the matching message-boards message, or
null
if a matching message-boards message could not be found
-
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getCategoryMessages
-
getCategoryMessages
-
getCategoryMessages
-
getCategoryMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoryMessagesCount(long groupId, long categoryId, int status) -
getChildMessages
-
getChildMessages
-
getChildMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getChildMessagesCount(long parentMessageId, int status) -
getCompanyMessages
-
getCompanyMessages
-
getCompanyMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyMessagesCount(long companyId, int status) -
getDiscussionMessageDisplay
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDiscussionMessageDisplay
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDiscussionMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getDiscussionMessagesCount(long classNameId, long classPK, int status) -
getDiscussionMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getDiscussionMessagesCount(String className, long classPK, int status) -
getDiscussions
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBDiscussion> getDiscussions(String className) -
getExportActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getFileEntryMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFirstMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupMessages
-
getGroupMessages
-
getGroupMessages
-
getGroupMessages
-
getGroupMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupMessagesCount(long groupId, int status) -
getGroupMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupMessagesCount(long groupId, long userId, int status) -
getGroupUserMessageBoardMessagesActivity
-
getGroupUserMessageBoardMessagesActivityCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupUserMessageBoardMessagesActivityCount(long groupId, long userId) -
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getLastThreadMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getLastThreadMessage(long threadId, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMBMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException Returns the message-boards message with the primary key.- Parameters:
messageId
- the primary key of the message-boards message- Returns:
- the message-boards message
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a message-boards message with the primary key could not be found
-
getMBMessageByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMBMessageByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the message-boards message matching the UUID and group.- Parameters:
uuid
- the message-boards message's UUIDgroupId
- the primary key of the group- Returns:
- the matching message-boards message
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a matching message-boards message could not be found
-
getMBMessages
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getMBMessages(int start, int end) Returns a range of all the message-boards messages.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBMessageModelImpl
.- Parameters:
start
- the lower bound of the range of message-boards messagesend
- the upper bound of the range of message-boards messages (not inclusive)- Returns:
- the range of message-boards messages
-
getMBMessagesByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId) Returns all the message-boards messages matching the UUID and company.- Parameters:
uuid
- the UUID of the message-boards messagescompanyId
- the primary key of the company- Returns:
- the matching message-boards messages, or an empty list if no matches were found
-
getMBMessagesByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getMBMessagesByUuidAndCompanyId(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.- Parameters:
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 (optionallynull
)- Returns:
- the range of matching message-boards messages, or an empty list if no matches were found
-
getMBMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getMBMessagesCount()Returns the number of message-boards messages.- Returns:
- the number of message-boards messages
-
getMessage
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessageDisplay
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long userId, long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessageDisplay
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessageDisplay
@Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMessages
-
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPositionInThread
@Transactional(propagation=SUPPORTS, readOnly=true) int getPositionInThread(long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRootDiscussionMessages
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getRootDiscussionMessages(String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRootDiscussionMessages
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getRootDiscussionMessages(String className, long classPK, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRootDiscussionMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getRootDiscussionMessagesCount(String className, long classPK, int status) -
getTempAttachmentNames
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getTempAttachmentNames(long groupId, long userId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getThreadMessages
-
getThreadMessages
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator) -
getThreadMessages
-
getThreadMessages
-
getThreadMessages
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, Comparator<MBMessage> comparator) -
getThreadMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadMessagesCount(long threadId, boolean answer) -
getThreadMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadMessagesCount(long threadId, int status) -
getThreadRepliesMessages
-
getUserDiscussionMessages
-
getUserDiscussionMessages
-
getUserDiscussionMessages
-
getUserDiscussionMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status) -
getUserDiscussionMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status) -
getUserDiscussionMessagesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status) -
moveMessageAttachmentToTrash
long moveMessageAttachmentToTrash(long userId, long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreMessageAttachmentFromTrash
void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribeMessage
void subscribeMessage(long userId, long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeMessage
void unsubscribeMessage(long userId, long messageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAnswer
@Indexable(type=REINDEX) MBMessage updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAnswer
@Indexable(type=REINDEX) MBMessage updateAnswer(MBMessage message, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateDiscussionMessage
MBMessage updateDiscussionMessage(long userId, long messageId, String className, long classPK, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateMBMessage
Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Parameters:
mbMessage
- the message-boards message- Returns:
- the message-boards message that was updated
-
updateMessage
MBMessage updateMessage(long userId, long messageId, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateMessage
MBMessage updateMessage(long userId, long messageId, String subject, String body, List<com.liferay.portal.kernel.util.ObjectValuePair<String, InputStream>> inputStreamOVPs, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
MBMessage updateStatus(long userId, long messageId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateUserName
-
getCTPersistence
@Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage> getCTPersistence()- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage>, R, throws EE> updateUnsafeFunction)
-
addMessage(String, long, String, long, long, long, long, String, String, String, List, boolean, double, boolean, ServiceContext)