Class WikiTestUtil

java.lang.Object
com.liferay.wiki.test.util.WikiTestUtil

public class WikiTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.wiki.model.WikiNode
    addDefaultNode(long groupId)
     
    static com.liferay.wiki.model.WikiNode
    addNode(long groupId)
     
    static com.liferay.wiki.model.WikiNode
    addNode(long userId, long groupId, String name, String description)
     
    static com.liferay.wiki.model.WikiPage
    addPage(long groupId, long nodeId, boolean approved)
     
    static com.liferay.wiki.model.WikiPage
    addPage(long userId, long groupId, long nodeId, String title, boolean approved)
     
    static com.liferay.wiki.model.WikiPage
    addPage(long userId, long nodeId, String title, String content, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.wiki.model.WikiPage
    addPage(long userId, long nodeId, String title, String content, String parentTitle, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static File
    addPageAttachment(long userId, long nodeId, String title, Class<?> clazz)
     
    static File
    addPageAttachment(long userId, long nodeId, String title, String fileName, Class<?> clazz)
     
    static File
    addPageAttachment(long userId, long nodeId, String title, String attachmentFileName, Class<?> clazz, String testFileName)
     
    static com.liferay.wiki.model.WikiPage[]
    addPageWithChangedParentPage(long groupId, long nodeId)
     
    static com.liferay.wiki.model.WikiPage[]
    addPageWithChildPageAndRedirectPage(long groupId, long nodeId)
     
    static com.liferay.wiki.model.WikiPage[]
     
    static com.liferay.wiki.model.WikiPage[]
    addRenamedTrashedPage(long groupId, long nodeId, boolean explicitlyRemoveRedirectPage)
     
    static com.liferay.wiki.model.WikiPage[]
    addRenamedTrashedParentPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage, boolean explicitlyRemoveRedirectPage)
     
    static com.liferay.wiki.model.WikiPage[]
    addTrashedPageWithChildPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage)
     
    static com.liferay.wiki.model.WikiPage[]
    addTrashedParentPageWithChildPageAndGrandchildPage(long groupId, long nodeId, boolean explicitMoveChildToTrash, boolean explicitMoveParentToTrash)
     
    static com.liferay.wiki.model.WikiPage
    copyPage(com.liferay.wiki.model.WikiPage page, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static void
    populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command)
     
    static com.liferay.wiki.model.WikiPage
    updatePage(com.liferay.wiki.model.WikiPage page)
     
    static com.liferay.wiki.model.WikiPage
    updatePage(com.liferay.wiki.model.WikiPage page, long userId, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.wiki.model.WikiPage
    updatePage(com.liferay.wiki.model.WikiPage page, long userId, String title, String content, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    protected static com.liferay.wiki.model.WikiPage
    updateStatus(com.liferay.wiki.model.WikiPage page, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WikiTestUtil

      public WikiTestUtil()
  • Method Details

    • addDefaultNode

      public static com.liferay.wiki.model.WikiNode addDefaultNode(long groupId) throws Exception
      Throws:
      Exception
    • addNode

      public static com.liferay.wiki.model.WikiNode addNode(long groupId) throws Exception
      Throws:
      Exception
    • addNode

      public static com.liferay.wiki.model.WikiNode addNode(long userId, long groupId, String name, String description) throws Exception
      Throws:
      Exception
    • addPage

      public static com.liferay.wiki.model.WikiPage addPage(long groupId, long nodeId, boolean approved) throws Exception
      Throws:
      Exception
    • addPage

      public static com.liferay.wiki.model.WikiPage addPage(long userId, long groupId, long nodeId, String title, boolean approved) throws Exception
      Throws:
      Exception
    • addPage

      public static com.liferay.wiki.model.WikiPage addPage(long userId, long nodeId, String title, String content, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addPage

      public static com.liferay.wiki.model.WikiPage addPage(long userId, long nodeId, String title, String content, String parentTitle, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addPageAttachment

      public static File addPageAttachment(long userId, long nodeId, String title, Class<?> clazz) throws Exception
      Throws:
      Exception
    • addPageAttachment

      public static File addPageAttachment(long userId, long nodeId, String title, String fileName, Class<?> clazz) throws Exception
      Throws:
      Exception
    • addPageAttachment

      public static File addPageAttachment(long userId, long nodeId, String title, String attachmentFileName, Class<?> clazz, String testFileName) throws Exception
      Throws:
      Exception
    • addPageWithChangedParentPage

      public static com.liferay.wiki.model.WikiPage[] addPageWithChangedParentPage(long groupId, long nodeId) throws Exception
      Throws:
      Exception
    • addPageWithChildPageAndRedirectPage

      public static com.liferay.wiki.model.WikiPage[] addPageWithChildPageAndRedirectPage(long groupId, long nodeId) throws Exception
      Throws:
      Exception
    • addRenamedParentPageWithChildPageAndGrandchildPage

      public static com.liferay.wiki.model.WikiPage[] addRenamedParentPageWithChildPageAndGrandchildPage(long groupId, long nodeId) throws Exception
      Throws:
      Exception
    • addRenamedTrashedPage

      public static com.liferay.wiki.model.WikiPage[] addRenamedTrashedPage(long groupId, long nodeId, boolean explicitlyRemoveRedirectPage) throws Exception
      Throws:
      Exception
    • addRenamedTrashedParentPage

      public static com.liferay.wiki.model.WikiPage[] addRenamedTrashedParentPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage, boolean explicitlyRemoveRedirectPage) throws Exception
      Throws:
      Exception
    • addTrashedPageWithChildPage

      public static com.liferay.wiki.model.WikiPage[] addTrashedPageWithChildPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage) throws Exception
      Throws:
      Exception
    • addTrashedParentPageWithChildPageAndGrandchildPage

      public static com.liferay.wiki.model.WikiPage[] addTrashedParentPageWithChildPageAndGrandchildPage(long groupId, long nodeId, boolean explicitMoveChildToTrash, boolean explicitMoveParentToTrash) throws Exception
      Throws:
      Exception
    • copyPage

      public static com.liferay.wiki.model.WikiPage copyPage(com.liferay.wiki.model.WikiPage page, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • populateNotificationsServiceContext

      public static void populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) throws Exception
      Throws:
      Exception
    • updatePage

      public static com.liferay.wiki.model.WikiPage updatePage(com.liferay.wiki.model.WikiPage page) throws Exception
      Throws:
      Exception
    • updatePage

      public static com.liferay.wiki.model.WikiPage updatePage(com.liferay.wiki.model.WikiPage page, long userId, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • updatePage

      public static com.liferay.wiki.model.WikiPage updatePage(com.liferay.wiki.model.WikiPage page, long userId, String title, String content, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • updateStatus

      protected static com.liferay.wiki.model.WikiPage updateStatus(com.liferay.wiki.model.WikiPage page, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception