Class MBTestUtil

java.lang.Object
com.liferay.message.boards.test.util.MBTestUtil

public class MBTestUtil extends Object
  • 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

      public static List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> getInputStreamOVPs(String fileName, Class<?> clazz, String keywords)
    • 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