public class MBMessageLocalServiceWrapper extends java.lang.Object implements MBMessageLocalService, com.liferay.portal.kernel.service.ServiceWrapper<MBMessageLocalService>
MBMessageLocalService
.MBMessageLocalService
Constructor and Description |
---|
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(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) |
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) |
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) |
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) |
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) |
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 |
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> obc) |
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> obc) |
int |
getCompanyMessagesCount(long companyId,
int status) |
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> obc) |
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> obc) |
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 |
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.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> obc) |
java.util.List<MBMessage> |
getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MBMessage> obc) |
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> obc) |
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) |
void |
updateAnswer(long messageId,
boolean answer,
boolean cascade) |
void |
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) |
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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage addDiscussionMessage(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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage addMBMessage(MBMessage mbMessage)
addMBMessage
in interface MBMessageLocalService
mbMessage
- the message-boards messagepublic 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
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
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
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
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
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
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
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
java.io.FileNotFoundException
public 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addMessageResources
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void addMessageResources(long messageId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addMessageResources
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addMessageResources
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void addMessageResources(MBMessage message, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addMessageResources
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage createMBMessage(long messageId)
createMBMessage
in interface MBMessageLocalService
messageId
- 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 MBMessageLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public MBMessage deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
deleteDiscussionMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteDiscussionMessages(java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
deleteDiscussionMessages
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage deleteMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
deleteMBMessage
in interface MBMessageLocalService
messageId
- the primary key of the message-boards messagePortalException
- if a message-boards message with the primary key could not be foundpublic MBMessage deleteMBMessage(MBMessage mbMessage)
deleteMBMessage
in interface MBMessageLocalService
mbMessage
- the message-boards messagepublic MBMessage deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
deleteMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage deleteMessage(MBMessage message) throws com.liferay.portal.kernel.exception.PortalException
deleteMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteMessageAttachment(long messageId, java.lang.String fileName) throws com.liferay.portal.kernel.exception.PortalException
deleteMessageAttachment
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
deleteMessageAttachments
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface MBMessageLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public void deleteTempAttachment(long groupId, long userId, java.lang.String folderName, java.lang.String fileName) throws com.liferay.portal.kernel.exception.PortalException
deleteTempAttachment
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface MBMessageLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface MBMessageLocalService
dynamicQuery
- 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 MBMessageLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> 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 MBMessageLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface MBMessageLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface MBMessageLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
emptyMessageAttachments
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage fetchFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
fetchFileEntryMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage fetchFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
fetchFirstMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage fetchMBMessage(long messageId)
fetchMBMessage
in interface MBMessageLocalService
public MBMessage fetchMBMessageByUrlSubject(long groupId, java.lang.String urlSubject)
fetchMBMessageByUrlSubject
in interface MBMessageLocalService
public MBMessage fetchMBMessageByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchMBMessageByUuidAndGroupId
in interface MBMessageLocalService
uuid
- the message-boards message's UUIDgroupId
- the primary key of the groupnull
if a matching message-boards message could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface MBMessageLocalService
public java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
getCategoryMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> obc)
getCategoryMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, long threadId)
getCategoryMessages
in interface MBMessageLocalService
public int getCategoryMessagesCount(long groupId, long categoryId, int status)
getCategoryMessagesCount
in interface MBMessageLocalService
public java.util.List<MBMessage> getChildMessages(long parentMessageId, int status)
getChildMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getChildMessages(long parentMessageId, int status, int start, int end)
getChildMessages
in interface MBMessageLocalService
public int getChildMessagesCount(long parentMessageId, int status)
getChildMessagesCount
in interface MBMessageLocalService
public java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
getCompanyMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> obc)
getCompanyMessages
in interface MBMessageLocalService
public int getCompanyMessagesCount(long companyId, int status)
getCompanyMessagesCount
in interface MBMessageLocalService
public MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, java.lang.String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
getDiscussionMessageDisplay
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public int getDiscussionMessagesCount(long classNameId, long classPK, int status)
getDiscussionMessagesCount
in interface MBMessageLocalService
public int getDiscussionMessagesCount(java.lang.String className, long classPK, int status)
getDiscussionMessagesCount
in interface MBMessageLocalService
public java.util.List<MBDiscussion> getDiscussions(java.lang.String className)
getDiscussions
in interface MBMessageLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface MBMessageLocalService
public MBMessage getFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
getFileEntryMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage getFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
getFirstMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
getGroupMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> obc)
getGroupMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
getGroupMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> obc)
getGroupMessages
in interface MBMessageLocalService
public int getGroupMessagesCount(long groupId, int status)
getGroupMessagesCount
in interface MBMessageLocalService
public int getGroupMessagesCount(long groupId, long userId, int status)
getGroupMessagesCount
in interface MBMessageLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface MBMessageLocalService
public MBMessage getLastThreadMessage(long threadId, int status) throws com.liferay.portal.kernel.exception.PortalException
getLastThreadMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage getMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
getMBMessage
in interface MBMessageLocalService
messageId
- the primary key of the message-boards messagePortalException
- if a message-boards message with the primary key could not be foundpublic MBMessage getMBMessageByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getMBMessageByUuidAndGroupId
in interface MBMessageLocalService
uuid
- the message-boards message's UUIDgroupId
- the primary key of the groupPortalException
- if a matching message-boards message could not be foundpublic 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 MBMessageLocalService
start
- the lower bound of the range of message-boards messagesend
- the upper bound of the range of message-boards messages (not inclusive)public java.util.List<MBMessage> getMBMessagesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getMBMessagesByUuidAndCompanyId
in interface MBMessageLocalService
uuid
- 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 MBMessageLocalService
uuid
- the UUID of the message-boards messagescompanyId
- the primary key of the companystart
- the lower bound of the range of message-boards messagesend
- the upper bound of the range of message-boards messages (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getMBMessagesCount()
getMBMessagesCount
in interface MBMessageLocalService
public MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
getMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessageDisplay getMessageDisplay(long userId, long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, java.util.Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<MBMessage> getMessages(java.lang.String className, long classPK, int status)
getMessages
in interface MBMessageLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface MBMessageLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface MBMessageLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public int getPositionInThread(long messageId) throws com.liferay.portal.kernel.exception.PortalException
getPositionInThread
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<MBMessage> getRootDiscussionMessages(java.lang.String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
getRootDiscussionMessages
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public int getRootDiscussionMessagesCount(java.lang.String className, long classPK, int status)
getRootDiscussionMessagesCount
in interface MBMessageLocalService
public java.lang.String[] getTempAttachmentNames(long groupId, long userId, java.lang.String folderName) throws com.liferay.portal.kernel.exception.PortalException
getTempAttachmentNames
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<MBMessage> getThreadMessages(long threadId, int status)
getThreadMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getThreadMessages(long threadId, int status, java.util.Comparator<MBMessage> comparator)
getThreadMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
getThreadMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getThreadMessages(long threadId, long parentMessageId)
getThreadMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, java.util.Comparator<MBMessage> comparator)
getThreadMessages
in interface MBMessageLocalService
public int getThreadMessagesCount(long threadId, boolean answer)
getThreadMessagesCount
in interface MBMessageLocalService
public int getThreadMessagesCount(long threadId, int status)
getThreadMessagesCount
in interface MBMessageLocalService
public java.util.List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
getThreadRepliesMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> obc)
getUserDiscussionMessages
in interface MBMessageLocalService
public java.util.List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> obc)
getUserDiscussionMessages
in interface MBMessageLocalService
public 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> obc)
getUserDiscussionMessages
in interface MBMessageLocalService
public int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
getUserDiscussionMessagesCount
in interface MBMessageLocalService
public int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
getUserDiscussionMessagesCount
in interface MBMessageLocalService
public int getUserDiscussionMessagesCount(long userId, java.lang.String className, long classPK, int status)
getUserDiscussionMessagesCount
in interface MBMessageLocalService
public long moveMessageAttachmentToTrash(long userId, long messageId, java.lang.String fileName) throws com.liferay.portal.kernel.exception.PortalException
moveMessageAttachmentToTrash
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void restoreMessageAttachmentFromTrash(long userId, long messageId, java.lang.String deletedFileName) throws com.liferay.portal.kernel.exception.PortalException
restoreMessageAttachmentFromTrash
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void subscribeMessage(long userId, long messageId) throws com.liferay.portal.kernel.exception.PortalException
subscribeMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void unsubscribeMessage(long userId, long messageId) throws com.liferay.portal.kernel.exception.PortalException
unsubscribeMessage
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
updateAnswer
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void updateAnswer(MBMessage message, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
updateAnswer
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds) throws com.liferay.portal.kernel.exception.PortalException
updateAsset
in interface MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public MBMessage updateMBMessage(MBMessage mbMessage)
updateMBMessage
in interface MBMessageLocalService
mbMessage
- 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public 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 MBMessageLocalService
com.liferay.portal.kernel.exception.PortalException
public void updateUserName(long userId, java.lang.String userName)
updateUserName
in interface MBMessageLocalService
public 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>