Class MBTestUtil
java.lang.Object
com.liferay.message.boards.test.util.MBTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.message.boards.model.MBMessageaddMessage(long groupId, long userId, long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.message.boards.model.MBMessageaddMessage(long groupId, long userId, String subject, String body) static com.liferay.message.boards.model.MBMessageaddMessage(String subject, String body) static com.liferay.message.boards.model.MBMessageaddMessageWithWorkflow(long groupId, long categoryId, String subject, String body, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) static List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> getInputStreamOVPs(String fileName, Class<?> clazz, String keywords) static voidpopulateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) protected static com.liferay.message.boards.model.MBMessageupdateStatus(com.liferay.message.boards.model.MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
MBTestUtil
public MBTestUtil()
-
-
Method Details
-
addMessage
public static com.liferay.message.boards.model.MBMessage addMessage(long groupId, long userId, long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
public static com.liferay.message.boards.model.MBMessage addMessage(long groupId, long userId, String subject, String body) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessage
public static com.liferay.message.boards.model.MBMessage addMessage(String subject, String body) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addMessageWithWorkflow
public static com.liferay.message.boards.model.MBMessage addMessageWithWorkflow(long groupId, long categoryId, String subject, String body, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getInputStreamOVPs
-
populateNotificationsServiceContext
public static void populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) throws Exception - Throws:
Exception
-
updateStatus
protected static com.liferay.message.boards.model.MBMessage updateStatus(com.liferay.message.boards.model.MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-