com.liferay.portlet.messageboards.util.test
Class MBTestUtil
java.lang.Object
com.liferay.portlet.messageboards.util.test.MBTestUtil
public class MBTestUtil
- extends Object
|
Method Summary |
static MBBan |
addBan(long groupId)
|
static MBBan |
addBan(long groupId,
long banUserId)
|
static MBBan |
addBan(long userId,
long groupId,
long banUserId)
|
static MBCategory |
addCategory(long groupId)
|
static MBCategory |
addCategory(long groupId,
long parentCategoryId)
|
static MBCategory |
addCategory(ServiceContext serviceContext)
|
static MBCategory |
addCategory(String name,
long parentCategoryId,
ServiceContext serviceContext)
|
static MBMessage |
addDiscussionMessage(long groupId,
String className,
long classPK)
|
static MBMessage |
addDiscussionMessage(User user,
long groupId,
String className,
long classPK)
|
static MBMessage |
addMessage(long groupId)
|
static MBMessage |
addMessage(long groupId,
long categoryId)
|
static MBMessage |
addMessage(long groupId,
long categoryId,
boolean approved)
|
protected static MBMessage |
addMessage(long groupId,
long categoryId,
boolean workflowEnabled,
boolean approved,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(long groupId,
long categoryId,
long threadId,
long parentMessageId)
|
static MBMessage |
addMessage(long groupId,
long categoryId,
ServiceContext serviceContext)
|
static MBMessage |
addMessage(long groupId,
long categoryId,
String keywords,
boolean approved,
ServiceContext serviceContext)
|
static MBMessage |
addMessageWithWorkflow(long groupId,
boolean approved)
|
static MBMessage |
addMessageWithWorkflow(long groupId,
long categoryId,
boolean approved)
|
static MBMessage |
addMessageWithWorkflowAndAttachments(long groupId,
long categoryId,
boolean approved,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
|
static MBThreadFlag |
addThreadFlag(long groupId,
MBThread thread)
|
static List<ObjectValuePair<String,InputStream>> |
getInputStreamOVPs(String fileName,
Class<?> clazz,
String keywords)
|
static MBMessage |
updateDiscussionMessage(long userId,
long groupId,
long messageId,
String className,
long classPK)
|
static MBMessage |
updateDiscussionMessage(long groupId,
long messageId,
String className,
long classPK)
|
static MBMessage |
updateMessage(MBMessage message,
boolean approved)
|
static MBMessage |
updateMessage(MBMessage message,
String subject,
String body,
boolean approved)
|
protected static MBMessage |
updateStatus(MBMessage message,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBTestUtil
public MBTestUtil()
addBan
public static MBBan addBan(long groupId)
throws Exception
- Throws:
Exception
addBan
public static MBBan addBan(long groupId,
long banUserId)
throws Exception
- Throws:
Exception
addBan
public static MBBan addBan(long userId,
long groupId,
long banUserId)
throws Exception
- Throws:
Exception
addCategory
public static MBCategory addCategory(long groupId)
throws Exception
- Throws:
Exception
addCategory
public static MBCategory addCategory(long groupId,
long parentCategoryId)
throws Exception
- Throws:
Exception
addCategory
public static MBCategory addCategory(ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addCategory
public static MBCategory addCategory(String name,
long parentCategoryId,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addDiscussionMessage
public static MBMessage addDiscussionMessage(long groupId,
String className,
long classPK)
throws Exception
- Throws:
Exception
addDiscussionMessage
public static MBMessage addDiscussionMessage(User user,
long groupId,
String className,
long classPK)
throws Exception
- Throws:
Exception
addMessage
public static MBMessage addMessage(long groupId)
throws Exception
- Throws:
Exception
addMessage
public static MBMessage addMessage(long groupId,
long categoryId)
throws Exception
- Throws:
Exception
addMessage
public static MBMessage addMessage(long groupId,
long categoryId,
boolean approved)
throws Exception
- Throws:
Exception
addMessage
public static MBMessage addMessage(long groupId,
long categoryId,
long threadId,
long parentMessageId)
throws Exception
- Throws:
Exception
addMessage
public static MBMessage addMessage(long groupId,
long categoryId,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addMessage
public static MBMessage addMessage(long groupId,
long categoryId,
String keywords,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addMessageWithWorkflow
public static MBMessage addMessageWithWorkflow(long groupId,
boolean approved)
throws Exception
- Throws:
Exception
addMessageWithWorkflow
public static MBMessage addMessageWithWorkflow(long groupId,
long categoryId,
boolean approved)
throws Exception
- Throws:
Exception
addMessageWithWorkflowAndAttachments
public static MBMessage addMessageWithWorkflowAndAttachments(long groupId,
long categoryId,
boolean approved,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
throws Exception
- Throws:
Exception
addThreadFlag
public static MBThreadFlag addThreadFlag(long groupId,
MBThread thread)
throws Exception
- Throws:
Exception
getInputStreamOVPs
public static List<ObjectValuePair<String,InputStream>> getInputStreamOVPs(String fileName,
Class<?> clazz,
String keywords)
updateDiscussionMessage
public static MBMessage updateDiscussionMessage(long userId,
long groupId,
long messageId,
String className,
long classPK)
throws Exception
- Throws:
Exception
updateDiscussionMessage
public static MBMessage updateDiscussionMessage(long groupId,
long messageId,
String className,
long classPK)
throws Exception
- Throws:
Exception
updateMessage
public static MBMessage updateMessage(MBMessage message,
boolean approved)
throws Exception
- Throws:
Exception
updateMessage
public static MBMessage updateMessage(MBMessage message,
String subject,
String body,
boolean approved)
throws Exception
- Throws:
Exception
addMessage
protected static MBMessage addMessage(long groupId,
long categoryId,
boolean workflowEnabled,
boolean approved,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updateStatus
protected static MBMessage updateStatus(MBMessage message,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception