Package com.liferay.wiki.test.util
Class WikiTestUtil
java.lang.Object
com.liferay.wiki.test.util.WikiTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.wiki.model.WikiNodeaddDefaultNode(long groupId) static com.liferay.wiki.model.WikiNodeaddNode(long groupId) static com.liferay.wiki.model.WikiNodestatic com.liferay.wiki.model.WikiPageaddPage(long groupId, long nodeId, boolean approved) static com.liferay.wiki.model.WikiPagestatic com.liferay.wiki.model.WikiPageaddPage(long userId, long nodeId, String title, String content, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.wiki.model.WikiPageaddPage(long userId, long nodeId, String title, String content, String parentTitle, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) static FileaddPageAttachment(long userId, long nodeId, String title, Class<?> clazz) static FileaddPageAttachment(long userId, long nodeId, String title, String fileName, Class<?> clazz) static FileaddPageAttachment(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[]addRenamedParentPageWithChildPageAndGrandchildPage(long groupId, long nodeId) 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.WikiPagecopyPage(com.liferay.wiki.model.WikiPage page, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidpopulateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) static com.liferay.wiki.model.WikiPageupdatePage(com.liferay.wiki.model.WikiPage page) static com.liferay.wiki.model.WikiPageupdatePage(com.liferay.wiki.model.WikiPage page, long userId, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.wiki.model.WikiPageupdatePage(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.WikiPageupdateStatus(com.liferay.wiki.model.WikiPage page, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
WikiTestUtil
public WikiTestUtil()
-
-
Method Details
-
addDefaultNode
- Throws:
Exception
-
addNode
- 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
-