|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
public class MBMessageLocalServiceImpl
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
MBMessageLocalServiceImpl()
|
|
| Method Summary | |
|---|---|
MBMessage |
addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
int workflowAction)
|
MBMessage |
addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
addMessage(long userId,
String userName,
long categoryId,
String subject,
String body,
ServiceContext serviceContext)
Deprecated. As of 7.0.0, replaced by addMessage(long, String,
long, long, String, String, ServiceContext) |
void |
addMessageAttachment(long userId,
long messageId,
String fileName,
File file,
String mimeType)
|
void |
addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addMessageResources(long messageId,
ModelPermissions modelPermissions)
|
void |
addMessageResources(MBMessage message,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addMessageResources(MBMessage message,
ModelPermissions modelPermissions)
|
MBMessage |
deleteDiscussionMessage(long messageId)
|
void |
deleteDiscussionMessages(String className,
long classPK)
|
MBMessage |
deleteMessage(long messageId)
|
MBMessage |
deleteMessage(MBMessage message)
|
void |
deleteMessageAttachment(long messageId,
String fileName)
|
void |
deleteMessageAttachments(long messageId)
|
void |
emptyMessageAttachments(long messageId)
|
protected String |
getBody(String subject,
String body)
|
List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
|
List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
|
int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status)
|
List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end)
|
List<MBMessage> |
getCompanyMessages(long companyId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
|
int |
getCompanyMessagesCount(long companyId,
int status)
|
MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status)
|
MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
Comparator<MBMessage> comparator)
|
MBMessageDisplay |
getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
String threadView)
Deprecated. As of 7.0.0, replaced by getDiscussionMessageDisplay(long, long, String, long, int) |
int |
getDiscussionMessagesCount(long classNameId,
long classPK,
int status)
|
int |
getDiscussionMessagesCount(String className,
long classPK,
int status)
|
List<MBDiscussion> |
getDiscussions(String className)
|
List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end)
|
List<MBMessage> |
getGroupMessages(long groupId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
|
List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end)
|
List<MBMessage> |
getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
|
int |
getGroupMessagesCount(long groupId,
int status)
|
int |
getGroupMessagesCount(long groupId,
long userId,
int status)
|
MBMessage |
getMessage(long messageId)
|
MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status,
boolean includePrevAndNext)
|
MBMessageDisplay |
getMessageDisplay(long userId,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long,
long, int, boolean) |
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
boolean includePrevAndNext)
|
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
boolean includePrevAndNext,
Comparator<MBMessage> comparator)
|
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long,
MBMessage, int, boolean) |
MBMessageDisplay |
getMessageDisplay(long userId,
MBMessage message,
int status,
String threadView,
boolean includePrevAndNext,
Comparator<MBMessage> comparator)
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long,
MBMessage, int, boolean, Comparator) ( |
List<MBMessage> |
getMessages(String className,
long classPK,
int status)
|
protected String |
getMessageURL(MBMessage message,
ServiceContext serviceContext)
|
List<MBMessage> |
getNoAssetMessages()
|
int |
getPositionInThread(long messageId)
|
protected String |
getSubject(String subject,
String body)
|
protected MBSubscriptionSender |
getSubscriptionSender(long userId,
MBMessage message,
String messageURL,
String entryTitle,
boolean htmlFormat,
String messageBody,
String categoryName,
String inReplyTo,
String fromName,
String fromAddress,
String replyToAddress,
String emailAddress,
String fullName,
LocalizedValuesMap subjectLocalizedValuesMap,
LocalizedValuesMap bodyLocalizedValuesMap,
ServiceContext serviceContext)
|
List<MBMessage> |
getThreadMessages(long threadId,
int status)
|
List<MBMessage> |
getThreadMessages(long threadId,
int status,
Comparator<MBMessage> comparator)
|
List<MBMessage> |
getThreadMessages(long threadId,
int status,
int start,
int end)
|
int |
getThreadMessagesCount(long threadId,
int status)
|
List<MBMessage> |
getThreadRepliesMessages(long threadId,
int status,
int start,
int end)
|
List<MBMessage> |
getUserDiscussionMessages(long userId,
long[] classNameIds,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
|
List<MBMessage> |
getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
|
List<MBMessage> |
getUserDiscussionMessages(long userId,
String className,
long classPK,
int status,
int start,
int end,
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,
String className,
long classPK,
int status)
|
long |
moveMessageAttachmentToTrash(long userId,
long messageId,
String fileName)
|
protected void |
notifyDiscussionSubscribers(long userId,
MBMessage message,
ServiceContext serviceContext)
|
protected void |
notifySubscribers(long userId,
MBMessage message,
String messageURL,
ServiceContext serviceContext)
|
protected void |
pingPingback(MBMessage message,
ServiceContext serviceContext)
|
void |
restoreMessageAttachmentFromTrash(long userId,
long messageId,
String deletedFileName)
|
protected void |
startWorkflowInstance(long userId,
MBMessage message,
ServiceContext serviceContext)
|
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,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
protected void |
updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds,
boolean assetEntryVisible)
|
MBMessage |
updateDiscussionMessage(long userId,
long messageId,
String className,
long classPK,
String subject,
String body,
ServiceContext serviceContext)
|
MBMessage |
updateMessage(long userId,
long messageId,
String body,
ServiceContext serviceContext)
|
MBMessage |
updateMessage(long userId,
long messageId,
String subject,
String body,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
MBMessage |
updateMessage(long messageId,
String body)
Deprecated. As of 7.0.0, with no direct replacement |
protected void |
updatePriorities(long threadId,
double priority)
|
MBMessage |
updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext)
Deprecated. As of 7.0.0, replaced by updateStatus(long, long,
int, ServiceContext, Map) |
MBMessage |
updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
|
protected void |
updateThreadStatus(MBThread thread,
MBMessage message,
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)
|
| Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
|---|
getClassLoader, getLocalizationMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBMessageLocalServiceImpl()
| Method Detail |
|---|
public MBMessage addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
int workflowAction)
throws PortalException
PortalException
public MBMessage addDiscussionMessage(long userId,
String userName,
long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException
PortalException
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
long threadId,
long parentMessageId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException
PortalException
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException
PortalException
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException
PortalException
public MBMessage addMessage(long userId,
String userName,
long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws FileNotFoundException,
PortalException
FileNotFoundException
PortalException
@Deprecated
public MBMessage addMessage(long userId,
String userName,
long categoryId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException
addMessage(long, String,
long, long, String, String, ServiceContext)
PortalException
public void addMessageAttachment(long userId,
long messageId,
String fileName,
File file,
String mimeType)
throws PortalException
PortalException
public void addMessageResources(long messageId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public void addMessageResources(long messageId,
ModelPermissions modelPermissions)
throws PortalException
PortalException
public void addMessageResources(MBMessage message,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public void addMessageResources(MBMessage message,
ModelPermissions modelPermissions)
throws PortalException
PortalException
@Indexable(type=DELETE)
public MBMessage deleteDiscussionMessage(long messageId)
throws PortalException
PortalException
public void deleteDiscussionMessages(String className,
long classPK)
throws PortalException
PortalException
@Indexable(type=DELETE)
public MBMessage deleteMessage(long messageId)
throws PortalException
PortalException
@Indexable(type=DELETE)
@SystemEvent(type=1)
public MBMessage deleteMessage(MBMessage message)
throws PortalException
PortalException
public void deleteMessageAttachment(long messageId,
String fileName)
throws PortalException
PortalException
public void deleteMessageAttachments(long messageId)
throws PortalException
PortalException
public void emptyMessageAttachments(long messageId)
throws PortalException
PortalException
public List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
public List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
public int getCategoryMessagesCount(long groupId,
long categoryId,
int status)
public List<MBMessage> getCompanyMessages(long companyId,
int status,
int start,
int end)
public List<MBMessage> getCompanyMessages(long companyId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
public int getCompanyMessagesCount(long companyId,
int status)
public MBMessageDisplay getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status)
throws PortalException
PortalException
public MBMessageDisplay getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
Comparator<MBMessage> comparator)
throws PortalException
PortalException
@Deprecated
public MBMessageDisplay getDiscussionMessageDisplay(long userId,
long groupId,
String className,
long classPK,
int status,
String threadView)
throws PortalException
getDiscussionMessageDisplay(long, long, String, long, int)
PortalException
public int getDiscussionMessagesCount(long classNameId,
long classPK,
int status)
public int getDiscussionMessagesCount(String className,
long classPK,
int status)
public List<MBDiscussion> getDiscussions(String className)
public List<MBMessage> getGroupMessages(long groupId,
int status,
int start,
int end)
public List<MBMessage> getGroupMessages(long groupId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
public List<MBMessage> getGroupMessages(long groupId,
long userId,
int status,
int start,
int end)
public List<MBMessage> getGroupMessages(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
public int getGroupMessagesCount(long groupId,
int status)
public int getGroupMessagesCount(long groupId,
long userId,
int status)
public MBMessage getMessage(long messageId)
throws PortalException
PortalException
public MBMessageDisplay getMessageDisplay(long userId,
long messageId,
int status,
boolean includePrevAndNext)
throws PortalException
PortalException
@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
long messageId,
int status,
String threadView,
boolean includePrevAndNext)
throws PortalException
getMessageDisplay(long,
long, int, boolean)
PortalException
public MBMessageDisplay getMessageDisplay(long userId,
MBMessage message,
int status,
boolean includePrevAndNext)
throws PortalException
PortalException
public MBMessageDisplay getMessageDisplay(long userId,
MBMessage message,
int status,
boolean includePrevAndNext,
Comparator<MBMessage> comparator)
throws PortalException
PortalException
@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
MBMessage message,
int status,
String threadView,
boolean includePrevAndNext)
throws PortalException
getMessageDisplay(long,
MBMessage, int, boolean)
PortalException
@Deprecated
public MBMessageDisplay getMessageDisplay(long userId,
MBMessage message,
int status,
String threadView,
boolean includePrevAndNext,
Comparator<MBMessage> comparator)
throws PortalException
getMessageDisplay(long,
MBMessage, int, boolean, Comparator) (
PortalException
public List<MBMessage> getMessages(String className,
long classPK,
int status)
public List<MBMessage> getNoAssetMessages()
public int getPositionInThread(long messageId)
throws PortalException
PortalException
public List<MBMessage> getThreadMessages(long threadId,
int status)
public List<MBMessage> getThreadMessages(long threadId,
int status,
Comparator<MBMessage> comparator)
public List<MBMessage> getThreadMessages(long threadId,
int status,
int start,
int end)
public int getThreadMessagesCount(long threadId,
int status)
public List<MBMessage> getThreadRepliesMessages(long threadId,
int status,
int start,
int end)
public List<MBMessage> getUserDiscussionMessages(long userId,
long classNameId,
long classPK,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
public List<MBMessage> getUserDiscussionMessages(long userId,
long[] classNameIds,
int status,
int start,
int end,
OrderByComparator<MBMessage> obc)
public List<MBMessage> getUserDiscussionMessages(long userId,
String className,
long classPK,
int status,
int start,
int end,
OrderByComparator<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 PortalException
PortalException
public void restoreMessageAttachmentFromTrash(long userId,
long messageId,
String deletedFileName)
throws PortalException
PortalException
public void subscribeMessage(long userId,
long messageId)
throws PortalException
PortalException
public void unsubscribeMessage(long userId,
long messageId)
throws PortalException
PortalException
public void updateAnswer(long messageId,
boolean answer,
boolean cascade)
throws PortalException
PortalException
public void updateAnswer(MBMessage message,
boolean answer,
boolean cascade)
throws PortalException
PortalException
public void updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
PortalException
public MBMessage updateDiscussionMessage(long userId,
long messageId,
String className,
long classPK,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException
PortalException
public MBMessage updateMessage(long userId,
long messageId,
String body,
ServiceContext serviceContext)
throws PortalException
PortalException
public MBMessage updateMessage(long userId,
long messageId,
String subject,
String body,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException
PortalException
@Deprecated
public MBMessage updateMessage(long messageId,
String body)
throws PortalException
PortalException
@Deprecated
public MBMessage updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext)
throws PortalException
updateStatus(long, long,
int, ServiceContext, Map)
PortalException
public MBMessage updateStatus(long userId,
long messageId,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
throws PortalException
PortalException
public void updateUserName(long userId,
String userName)
protected String getBody(String subject,
String body)
protected String getMessageURL(MBMessage message,
ServiceContext serviceContext)
throws PortalException
PortalException
protected String getSubject(String subject,
String body)
protected MBSubscriptionSender getSubscriptionSender(long userId,
MBMessage message,
String messageURL,
String entryTitle,
boolean htmlFormat,
String messageBody,
String categoryName,
String inReplyTo,
String fromName,
String fromAddress,
String replyToAddress,
String emailAddress,
String fullName,
LocalizedValuesMap subjectLocalizedValuesMap,
LocalizedValuesMap bodyLocalizedValuesMap,
ServiceContext serviceContext)
protected void notifyDiscussionSubscribers(long userId,
MBMessage message,
ServiceContext serviceContext)
throws PortalException
PortalException
protected void notifySubscribers(long userId,
MBMessage message,
String messageURL,
ServiceContext serviceContext)
throws PortalException
PortalException
protected void pingPingback(MBMessage message,
ServiceContext serviceContext)
protected void startWorkflowInstance(long userId,
MBMessage message,
ServiceContext serviceContext)
throws PortalException
PortalException
protected void updateAsset(long userId,
MBMessage message,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds,
boolean assetEntryVisible)
throws PortalException
PortalException
protected void updatePriorities(long threadId,
double priority)
protected void updateThreadStatus(MBThread thread,
MBMessage message,
User user,
int oldStatus,
Date modifiedDate)
throws PortalException
PortalException
protected void validate(String subject,
String body)
throws PortalException
PortalException
protected void validateDiscussionMaxComments(String className,
long classPK)
throws PortalException
PortalException
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||