public class MBMessageLocalServiceImpl extends MBMessageLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, classNameLocalService, classNamePersistence, companyLocalService, companyPersistence, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbDiscussionLocalService, mbDiscussionPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
Constructor and Description |
---|
MBMessageLocalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.message.boards.kernel.model.MBMessage |
addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
int workflowAction) |
com.liferay.message.boards.kernel.model.MBMessage |
addDiscussionMessage(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) |
com.liferay.message.boards.kernel.model.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) |
com.liferay.message.boards.kernel.model.MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.message.boards.kernel.model.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) |
com.liferay.message.boards.kernel.model.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) |
com.liferay.message.boards.kernel.model.MBMessage |
addMessage(long userId,
String userName,
long categoryId,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
addMessage(long, String, long, long, String, String,
ServiceContext) |
void |
addMessageAttachment(long userId,
long messageId,
String fileName,
File file,
String mimeType) |
void |
addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addMessageResources(long messageId,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
void |
addMessageResources(com.liferay.message.boards.kernel.model.MBMessage message,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addMessageResources(com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
com.liferay.message.boards.kernel.model.MBMessage |
deleteDiscussionMessage(long messageId) |
void |
deleteDiscussionMessages(String className,
long classPK) |
com.liferay.message.boards.kernel.model.MBMessage |
deleteMessage(long messageId) |
com.liferay.message.boards.kernel.model.MBMessage |
deleteMessage(com.liferay.message.boards.kernel.model.MBMessage message) |
void |
deleteMessageAttachment(long messageId,
String fileName) |
void |
deleteMessageAttachments(long messageId) |
void |
emptyMessageAttachments(long messageId) |
protected String |
getBody(String subject,
String body) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc) |
int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc) |
int |
getCompanyMessagesCount(long companyId,
int status) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
String threadView)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getDiscussionMessageDisplay(long, long, String, long, int) |
int |
getDiscussionMessagesCount(long classNameId,
long classPK,
int status) |
int |
getDiscussionMessagesCount(String className,
long classPK,
int status) |
protected String |
getDiscussionMessageSubject(String subject,
String body) |
List<com.liferay.message.boards.kernel.model.MBDiscussion> |
getDiscussions(String className) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc) |
int |
getGroupMessagesCount(long groupId,
int status) |
int |
getGroupMessagesCount(long groupId,
long userId,
int status) |
com.liferay.message.boards.kernel.model.MBMessage |
getMessage(long messageId) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getMessageDisplay(long, long, int) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
int status) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
int status,
Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getMessageDisplay(long, MBMessage, int) |
com.liferay.message.boards.kernel.model.MBMessageDisplay |
getMessageDisplay(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
int status,
String threadView,
boolean includePrevAndNext,
Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getMessageDisplay(long, MBMessage, int, Comparator) ( |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getMessages(String className,
long classPK,
int status) |
protected String |
getMessageURL(com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getNoAssetMessages() |
int |
getPositionInThread(long messageId) |
protected String |
getSubject(String subject,
String body) |
protected MBSubscriptionSender |
getSubscriptionSender(long userId,
com.liferay.message.boards.kernel.model.MBCategory category,
com.liferay.message.boards.kernel.model.MBMessage message,
String messageURL,
String entryTitle,
boolean htmlFormat,
String messageBody,
String messageSubject,
String messageSubjectPrefix,
String inReplyTo,
String fromName,
String fromAddress,
String replyToAddress,
String emailAddress,
String fullName,
com.liferay.portal.kernel.settings.LocalizedValuesMap subjectLocalizedValuesMap,
com.liferay.portal.kernel.settings.LocalizedValuesMap bodyLocalizedValuesMap,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getThreadMessages(long threadId,
int status) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getThreadMessages(long threadId,
int status,
Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getThreadMessages(long threadId,
int status,
int start,
int end) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getThreadMessages(long userId,
long threadId,
int status,
int start,
int end,
Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator) |
int |
getThreadMessagesCount(long threadId,
int status) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getThreadRepliesMessages(long threadId,
int status,
int start,
int end) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getUserDiscussionMessages(long userId,
long[] classNameIds,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc) |
List<com.liferay.message.boards.kernel.model.MBMessage> |
getUserDiscussionMessages(long userId,
String className,
long classPK,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc) |
int |
getUserDiscussionMessagesCount(long userId,
long[] classNameIds,
int status) |
int |
getUserDiscussionMessagesCount(long userId,
long classNameId,
long classPK,
int status) |
int |
getUserDiscussionMessagesCount(long userId,
String className,
long classPK,
int status) |
long |
moveMessageAttachmentToTrash(long userId,
long messageId,
String fileName) |
protected void |
notifyDiscussionSubscribers(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
notifySubscribers(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
String messageURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
pingPingback(com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
restoreMessageAttachmentFromTrash(long userId,
long messageId,
String deletedFileName) |
protected void |
startWorkflowInstance(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
subscribeMessage(long userId,
long messageId) |
void |
unsubscribeMessage(long userId,
long messageId) |
void |
updateAnswer(long messageId,
boolean answer,
boolean cascade) |
void |
updateAnswer(com.liferay.message.boards.kernel.model.MBMessage message,
boolean answer,
boolean cascade) |
void |
updateAsset(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds) |
protected void |
updateAsset(long userId,
com.liferay.message.boards.kernel.model.MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds,
boolean assetEntryVisible) |
com.liferay.message.boards.kernel.model.MBMessage |
updateDiscussionMessage(long userId,
long messageId,
String className,
long classPK,
String subject,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.message.boards.kernel.model.MBMessage |
updateMessage(long userId,
long messageId,
String body,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.message.boards.kernel.model.MBMessage |
updateMessage(long userId,
long messageId,
String subject,
String body,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.message.boards.kernel.model.MBMessage |
updateMessage(long messageId,
String body)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
protected void |
updatePriorities(long threadId,
double priority) |
com.liferay.message.boards.kernel.model.MBMessage |
updateStatus(long userId,
long messageId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
updateStatus(long, long, int, ServiceContext, Map) |
com.liferay.message.boards.kernel.model.MBMessage |
updateStatus(long userId,
long messageId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
Map<String,Serializable> workflowContext) |
protected void |
updateThreadStatus(com.liferay.message.boards.kernel.model.MBThread thread,
com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.model.User user,
int oldStatus,
Date modifiedDate) |
void |
updateUserName(long userId,
String userName) |
protected void |
validate(String subject,
String body) |
protected void |
validateDiscussionMaxComments(String className,
long classPK) |
addMBMessage, afterPropertiesSet, createMBMessage, deleteMBMessage, deleteMBMessage, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBMessage, fetchMBMessageByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getClassNameLocalService, getClassNamePersistence, getCompanyLocalService, getCompanyPersistence, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMessage, getMBMessageByUuidAndGroupId, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessages, getMBMessagesByUuidAndCompanyId, getMBMessagesByUuidAndCompanyId, getMBMessagesCount, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setClassNameLocalService, setClassNamePersistence, setCompanyLocalService, setCompanyPersistence, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateMBMessage
public com.liferay.message.boards.kernel.model.MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.MBMessage addDiscussionMessage(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
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.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.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.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
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.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.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.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
FileNotFoundException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public com.liferay.message.boards.kernel.model.MBMessage addMessage(long userId, String userName, long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addMessage(long, String, long, long, String, String,
ServiceContext)
com.liferay.portal.kernel.exception.PortalException
public void addMessageAttachment(long userId, long messageId, String fileName, File file, String mimeType) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
public void addMessageResources(com.liferay.message.boards.kernel.model.MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void addMessageResources(com.liferay.message.boards.kernel.model.MBMessage message, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) public com.liferay.message.boards.kernel.model.MBMessage deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteDiscussionMessages(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) public com.liferay.message.boards.kernel.model.MBMessage deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) @SystemEvent(type=1) public com.liferay.message.boards.kernel.model.MBMessage deleteMessage(com.liferay.message.boards.kernel.model.MBMessage message) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteMessageAttachment(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.message.boards.kernel.model.MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
public List<com.liferay.message.boards.kernel.model.MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc)
public int getCategoryMessagesCount(long groupId, long categoryId, int status)
public List<com.liferay.message.boards.kernel.model.MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
public List<com.liferay.message.boards.kernel.model.MBMessage> getCompanyMessages(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc)
public int getCompanyMessagesCount(long companyId, int status)
public com.liferay.message.boards.kernel.model.MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public com.liferay.message.boards.kernel.model.MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, String threadView) throws com.liferay.portal.kernel.exception.PortalException
getDiscussionMessageDisplay(long, long, String, long, int)
com.liferay.portal.kernel.exception.PortalException
public int getDiscussionMessagesCount(long classNameId, long classPK, int status)
public int getDiscussionMessagesCount(String className, long classPK, int status)
public List<com.liferay.message.boards.kernel.model.MBDiscussion> getDiscussions(String className)
public List<com.liferay.message.boards.kernel.model.MBMessage> getGroupMessages(long groupId, int status, int start, int end)
public List<com.liferay.message.boards.kernel.model.MBMessage> getGroupMessages(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc)
public List<com.liferay.message.boards.kernel.model.MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
public List<com.liferay.message.boards.kernel.model.MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc)
public int getGroupMessagesCount(long groupId, int status)
public int getGroupMessagesCount(long groupId, long userId, int status)
public com.liferay.message.boards.kernel.model.MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(long userId, long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(long userId, long messageId, int status, String threadView, boolean includePrevAndNext) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay(long, long, int)
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(long userId, com.liferay.message.boards.kernel.model.MBMessage message, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(long userId, com.liferay.message.boards.kernel.model.MBMessage message, int status, Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(long userId, com.liferay.message.boards.kernel.model.MBMessage message, int status, String threadView, boolean includePrevAndNext) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay(long, MBMessage, int)
com.liferay.portal.kernel.exception.PortalException
@Deprecated public com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(long userId, com.liferay.message.boards.kernel.model.MBMessage message, int status, String threadView, boolean includePrevAndNext, Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
getMessageDisplay(long, MBMessage, int, Comparator)
(com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.message.boards.kernel.model.MBMessage> getMessages(String className, long classPK, int status)
public List<com.liferay.message.boards.kernel.model.MBMessage> getNoAssetMessages()
public int getPositionInThread(long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.message.boards.kernel.model.MBMessage> getThreadMessages(long threadId, int status)
public List<com.liferay.message.boards.kernel.model.MBMessage> getThreadMessages(long threadId, int status, Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator)
public List<com.liferay.message.boards.kernel.model.MBMessage> getThreadMessages(long threadId, int status, int start, int end)
public List<com.liferay.message.boards.kernel.model.MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, Comparator<com.liferay.message.boards.kernel.model.MBMessage> comparator)
public int getThreadMessagesCount(long threadId, int status)
public List<com.liferay.message.boards.kernel.model.MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
public List<com.liferay.message.boards.kernel.model.MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc)
public List<com.liferay.message.boards.kernel.model.MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc)
public List<com.liferay.message.boards.kernel.model.MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.message.boards.kernel.model.MBMessage> obc)
public int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
public int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
public int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
public long moveMessageAttachmentToTrash(long userId, long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void subscribeMessage(long userId, long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void unsubscribeMessage(long userId, long messageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void updateAnswer(com.liferay.message.boards.kernel.model.MBMessage message, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void updateAsset(long userId, com.liferay.message.boards.kernel.model.MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.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
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.MBMessage updateMessage(long userId, long messageId, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.MBMessage updateMessage(long userId, long messageId, String subject, String body, List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public com.liferay.message.boards.kernel.model.MBMessage updateMessage(long messageId, String body) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public com.liferay.message.boards.kernel.model.MBMessage updateStatus(long userId, long messageId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus(long, long, int, ServiceContext, Map)
com.liferay.portal.kernel.exception.PortalException
public com.liferay.message.boards.kernel.model.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
com.liferay.portal.kernel.exception.PortalException
public void updateUserName(long userId, String userName)
protected String getBody(String subject, String body)
protected String getDiscussionMessageSubject(String subject, String body) throws com.liferay.message.boards.kernel.exception.MessageBodyException
com.liferay.message.boards.kernel.exception.MessageBodyException
protected String getMessageURL(com.liferay.message.boards.kernel.model.MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected String getSubject(String subject, String body)
protected MBSubscriptionSender getSubscriptionSender(long userId, com.liferay.message.boards.kernel.model.MBCategory category, com.liferay.message.boards.kernel.model.MBMessage message, String messageURL, String entryTitle, boolean htmlFormat, String messageBody, String messageSubject, String messageSubjectPrefix, String inReplyTo, String fromName, String fromAddress, String replyToAddress, String emailAddress, String fullName, com.liferay.portal.kernel.settings.LocalizedValuesMap subjectLocalizedValuesMap, com.liferay.portal.kernel.settings.LocalizedValuesMap bodyLocalizedValuesMap, com.liferay.portal.kernel.service.ServiceContext serviceContext)
protected void notifyDiscussionSubscribers(long userId, com.liferay.message.boards.kernel.model.MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void notifySubscribers(long userId, com.liferay.message.boards.kernel.model.MBMessage message, String messageURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void pingPingback(com.liferay.message.boards.kernel.model.MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext)
protected void startWorkflowInstance(long userId, com.liferay.message.boards.kernel.model.MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void updateAsset(long userId, com.liferay.message.boards.kernel.model.MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, boolean assetEntryVisible) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void updatePriorities(long threadId, double priority)
protected void updateThreadStatus(com.liferay.message.boards.kernel.model.MBThread thread, com.liferay.message.boards.kernel.model.MBMessage message, com.liferay.portal.kernel.model.User user, int oldStatus, Date modifiedDate) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validate(String subject, String body) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validateDiscussionMaxComments(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException