|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.messageboards.service.MBMessageServiceUtil
public class MBMessageServiceUtil
This class provides static methods for the
MBMessageService bean. The static methods of
this class calls the same methods of the bean instance. It's convenient to be
able to just write one line to call a method on a bean instead of writing a
lookup call and a method call.
MBMessageService| Constructor Summary | |
|---|---|
MBMessageServiceUtil()
|
|
| Method Summary | |
|---|---|
static MBMessage |
addDiscussionMessage(long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
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,
List<ObjectValuePair<String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(long groupId,
long categoryId,
String subject,
String body,
List<ObjectValuePair<String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
|
static void |
deleteDiscussionMessage(long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long messageId)
|
static void |
deleteMessage(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 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,
String threadView,
boolean includePrevAndNext)
|
static MBMessageService |
getService()
|
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)
|
void |
setService(MBMessageService service)
|
static void |
subscribeMessage(long messageId)
|
static void |
unsubscribeMessage(long messageId)
|
static MBMessage |
updateDiscussionMessage(String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long messageId,
String subject,
String body,
ServiceContext serviceContext)
|
static MBMessage |
updateMessage(long messageId,
String subject,
String body,
List<ObjectValuePair<String,byte[]>> files,
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,
String permissionClassName,
long permissionClassPK,
long threadId,
long parentMessageId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static MBMessage addMessage(long groupId,
long categoryId,
long threadId,
long parentMessageId,
String subject,
String body,
List<ObjectValuePair<String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static MBMessage addMessage(long groupId,
long categoryId,
String subject,
String body,
List<ObjectValuePair<String,byte[]>> files,
boolean anonymous,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteDiscussionMessage(long groupId,
String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long messageId)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteMessage(long messageId)
throws PortalException,
SystemException
PortalException
SystemException
public static List<MBMessage> getCategoryMessages(long groupId,
long categoryId,
int status,
int start,
int end)
throws PortalException,
SystemException
PortalException
SystemException
public static int getCategoryMessagesCount(long groupId,
long categoryId,
int status)
throws SystemException
SystemException
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,
SystemException
PortalException
SystemException
public static String getCompanyMessagesRSS(long companyId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalException
SystemException
public static String getGroupMessagesRSS(long groupId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalException
SystemException
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,
SystemException
PortalException
SystemException
public static MBMessage getMessage(long messageId)
throws PortalException,
SystemException
PortalException
SystemException
public static MBMessageDisplay getMessageDisplay(long messageId,
int status,
String threadView,
boolean includePrevAndNext)
throws PortalException,
SystemException
PortalException
SystemException
public static List<MBMessage> getThreadMessages(long groupId,
long categoryId,
long threadId,
int status,
int start,
int end)
throws SystemException
SystemException
public static int getThreadMessagesCount(long groupId,
long categoryId,
long threadId,
int status)
throws SystemException
SystemException
public static String getThreadMessagesRSS(long threadId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
PortalException
SystemException
public static void subscribeMessage(long messageId)
throws PortalException,
SystemException
PortalException
SystemException
public static void unsubscribeMessage(long messageId)
throws PortalException,
SystemException
PortalException
SystemException
public static MBMessage updateDiscussionMessage(String className,
long classPK,
String permissionClassName,
long permissionClassPK,
long messageId,
String subject,
String body,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static MBMessage updateMessage(long messageId,
String subject,
String body,
List<ObjectValuePair<String,byte[]>> files,
List<String> existingFiles,
double priority,
boolean allowPingbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemExceptionpublic static MBMessageService getService()
public void setService(MBMessageService service)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||