|
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.portlet.messageboards.service.MBMessageServiceUtil
@ProviderType public class MBMessageServiceUtil
Provides the remote service utility for MBMessage. This utility wraps
com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl and is the
primary access point for service operations in application layer code running
on a remote server. Methods of this service are expected to have security
checks based on the propagated JAAS credentials because this service can be
accessed remotely.
MBMessageService,
com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl,
com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl| Constructor Summary | |
|---|---|
MBMessageServiceUtil()
|
|
| Method Summary | |
|---|---|
static MBMessage |
addDiscussionMessage(long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(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)
Deprecated. As of 6.2.0, replaced by addMessage(long, String,
String, String, List, boolean, double, boolean,
ServiceContext) |
static MBMessage |
addMessage(long groupId,
long categoryId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(long categoryId,
String subject,
String body,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(long parentMessageId,
String subject,
String body,
String format,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static void |
addMessageAttachment(long messageId,
String fileName,
File file,
String mimeType)
|
static void |
deleteDiscussionMessage(long messageId)
|
static void |
deleteDiscussionMessage(long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId)
Deprecated. As of 7.0.0, replaced by deleteDiscussionMessage(long) |
static void |
deleteMessage(long messageId)
|
static void |
deleteMessageAttachment(long messageId,
String fileName)
|
static void |
deleteMessageAttachments(long messageId)
|
static void |
emptyMessageAttachments(long messageId)
|
static List<MBMessage> |
getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
|
static int |
getCategoryMessagesCount(long groupId,
long categoryId,
int status)
|
static String |
getCategoryMessagesRSS(long groupId,
long categoryId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
|
static String |
getCompanyMessagesRSS(long companyId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
|
static int |
getGroupMessagesCount(long groupId,
int status)
|
static String |
getGroupMessagesRSS(long groupId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
|
static String |
getGroupMessagesRSS(long groupId,
long userId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
|
static MBMessage |
getMessage(long messageId)
|
static MBMessageDisplay |
getMessageDisplay(long messageId,
int status,
boolean includePrevAndNext)
|
static MBMessageDisplay |
getMessageDisplay(long messageId,
int status,
String threadView,
boolean includePrevAndNext)
Deprecated. As of 7.0.0, replaced by getMessageDisplay(long, int,
boolean) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier. |
static MBMessageService |
getService()
|
static int |
getThreadAnswersCount(long groupId,
long categoryId,
long threadId)
|
static List<MBMessage> |
getThreadMessages(long groupId,
long categoryId,
long threadId,
int status,
int start,
int end)
|
static int |
getThreadMessagesCount(long groupId,
long categoryId,
long threadId,
int status)
|
static String |
getThreadMessagesRSS(long threadId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
|
static void |
restoreMessageAttachmentFromTrash(long messageId,
String fileName)
|
static void |
subscribeMessage(long messageId)
|
static void |
unsubscribeMessage(long messageId)
|
static void |
updateAnswer(long messageId,
boolean answer,
boolean cascade)
|
static MBMessage |
updateDiscussionMessage(String className,
long classPK,
long messageId,
String subject,
String body,
ServiceContext serviceContext)
|
static MBMessage |
updateMessage(long messageId,
String subject,
String body,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBMessageServiceUtil()
| Method Detail |
|---|
public static MBMessage addDiscussionMessage(long groupId,
String className,
long classPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException
PortalException
public static MBMessage addMessage(long categoryId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException
PortalException
public static MBMessage addMessage(long groupId,
long categoryId,
String subject,
String body,
String format,
String fileName,
File file,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
FileNotFoundException
PortalException
FileNotFoundException
public static MBMessage addMessage(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
@Deprecated
public static MBMessage addMessage(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
addMessage(long, String,
String, String, List, boolean, double, boolean,
ServiceContext)
PortalException
public static MBMessage addMessage(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 static void addMessageAttachment(long messageId,
String fileName,
File file,
String mimeType)
throws PortalException
PortalException
@Deprecated
public static void deleteDiscussionMessage(long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long permissionOwnerId,
long messageId)
throws PortalException
deleteDiscussionMessage(long)
PortalException
public static void deleteDiscussionMessage(long messageId)
throws PortalException
PortalException
public static void deleteMessage(long messageId)
throws PortalException
PortalException
public static void deleteMessageAttachment(long messageId,
String fileName)
throws PortalException
PortalException
public static void deleteMessageAttachments(long messageId)
throws PortalException
PortalException
public static void emptyMessageAttachments(long messageId)
throws PortalException
PortalException
public static List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
throws PortalException
PortalException
public static int getCategoryMessagesCount(long groupId,
long categoryId,
int status)
public static String getCategoryMessagesRSS(long groupId,
long categoryId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException
PortalException
public static String getCompanyMessagesRSS(long companyId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException
PortalException
public static int getGroupMessagesCount(long groupId,
int status)
public static String getGroupMessagesRSS(long groupId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException
PortalException
public static String getGroupMessagesRSS(long groupId,
long userId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException
PortalException
public static MBMessage getMessage(long messageId)
throws PortalException
PortalException
public static MBMessageDisplay getMessageDisplay(long messageId,
int status,
boolean includePrevAndNext)
throws PortalException
PortalException
@Deprecated
public static MBMessageDisplay getMessageDisplay(long messageId,
int status,
String threadView,
boolean includePrevAndNext)
throws PortalException
getMessageDisplay(long, int,
boolean)
PortalExceptionpublic static String getOSGiServiceIdentifier()
public static int getThreadAnswersCount(long groupId,
long categoryId,
long threadId)
public static List<MBMessage> getThreadMessages(long groupId,
long categoryId,
long threadId,
int status,
int start,
int end)
public static int getThreadMessagesCount(long groupId,
long categoryId,
long threadId,
int status)
public static String getThreadMessagesRSS(long threadId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException
PortalException
public static void restoreMessageAttachmentFromTrash(long messageId,
String fileName)
throws PortalException
PortalException
public static void subscribeMessage(long messageId)
throws PortalException
PortalException
public static void unsubscribeMessage(long messageId)
throws PortalException
PortalException
public static void updateAnswer(long messageId,
boolean answer,
boolean cascade)
throws PortalException
PortalException
public static MBMessage updateDiscussionMessage(String className,
long classPK,
long messageId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException
PortalException
public static MBMessage updateMessage(long messageId,
String subject,
String body,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static MBMessageService getService()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||