public class WikiTestUtil
extends java.lang.Object
Constructor and Description |
---|
WikiTestUtil() |
Modifier and Type | Method and Description |
---|---|
static WikiNode |
addDefaultNode(long groupId) |
static WikiNode |
addNode(long groupId) |
static WikiNode |
addNode(long userId,
long groupId,
java.lang.String name,
java.lang.String description) |
static WikiPage |
addPage(long groupId,
long nodeId,
boolean approved) |
static WikiPage |
addPage(long userId,
long groupId,
long nodeId,
java.lang.String title,
boolean approved) |
static WikiPage |
addPage(long userId,
long nodeId,
java.lang.String title,
java.lang.String content,
boolean approved,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static WikiPage |
addPage(long userId,
long nodeId,
java.lang.String title,
java.lang.String content,
java.lang.String parentTitle,
boolean approved,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static WikiPage[] |
addPageWithChangedParentPage(long groupId,
long nodeId) |
static WikiPage[] |
addPageWithChildPageAndRedirectPage(long groupId,
long nodeId) |
static WikiPage[] |
addRenamedParentPageWithChildPageAndGrandchildPage(long groupId,
long nodeId) |
static WikiPage[] |
addRenamedTrashedPage(long groupId,
long nodeId,
boolean explicitlyRemoveRedirectPage) |
static WikiPage[] |
addRenamedTrashedParentPage(long groupId,
long nodeId,
boolean explicitlyRemoveChildPage,
boolean explicitlyRemoveRedirectPage) |
static WikiPage[] |
addTrashedPageWithChildPage(long groupId,
long nodeId,
boolean explicitlyRemoveChildPage) |
static WikiPage[] |
addTrashedParentPageWithChildPageAndGrandchildPage(long groupId,
long nodeId,
boolean explicitMoveChildToTrash,
boolean explicitMoveParentToTrash) |
static java.io.File |
addWikiAttachment(long userId,
long nodeId,
java.lang.String title,
java.lang.Class<?> clazz) |
static java.io.File |
addWikiAttachment(long userId,
long nodeId,
java.lang.String title,
java.lang.String fileName,
java.lang.Class<?> clazz) |
static WikiPage |
copyPage(WikiPage page,
boolean approved,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.lang.String command) |
static WikiPage |
updatePage(WikiPage page) |
static WikiPage |
updatePage(WikiPage page,
long userId,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static WikiPage |
updatePage(WikiPage page,
long userId,
java.lang.String title,
java.lang.String content,
boolean approved,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected static WikiPage |
updateStatus(WikiPage page,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static WikiNode addDefaultNode(long groupId) throws java.lang.Exception
java.lang.Exception
public static WikiNode addNode(long groupId) throws java.lang.Exception
java.lang.Exception
public static WikiNode addNode(long userId, long groupId, java.lang.String name, java.lang.String description) throws java.lang.Exception
java.lang.Exception
public static WikiPage addPage(long groupId, long nodeId, boolean approved) throws java.lang.Exception
java.lang.Exception
public static WikiPage addPage(long userId, long groupId, long nodeId, java.lang.String title, boolean approved) throws java.lang.Exception
java.lang.Exception
public static WikiPage addPage(long userId, long nodeId, java.lang.String title, java.lang.String content, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
public static WikiPage addPage(long userId, long nodeId, java.lang.String title, java.lang.String content, java.lang.String parentTitle, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
public static WikiPage[] addPageWithChangedParentPage(long groupId, long nodeId) throws java.lang.Exception
java.lang.Exception
public static WikiPage[] addPageWithChildPageAndRedirectPage(long groupId, long nodeId) throws java.lang.Exception
java.lang.Exception
public static WikiPage[] addRenamedParentPageWithChildPageAndGrandchildPage(long groupId, long nodeId) throws java.lang.Exception
java.lang.Exception
public static WikiPage[] addRenamedTrashedPage(long groupId, long nodeId, boolean explicitlyRemoveRedirectPage) throws java.lang.Exception
java.lang.Exception
public static WikiPage[] addRenamedTrashedParentPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage, boolean explicitlyRemoveRedirectPage) throws java.lang.Exception
java.lang.Exception
public static WikiPage[] addTrashedPageWithChildPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage) throws java.lang.Exception
java.lang.Exception
public static WikiPage[] addTrashedParentPageWithChildPageAndGrandchildPage(long groupId, long nodeId, boolean explicitMoveChildToTrash, boolean explicitMoveParentToTrash) throws java.lang.Exception
java.lang.Exception
public static java.io.File addWikiAttachment(long userId, long nodeId, java.lang.String title, java.lang.Class<?> clazz) throws java.lang.Exception
java.lang.Exception
public static java.io.File addWikiAttachment(long userId, long nodeId, java.lang.String title, java.lang.String fileName, java.lang.Class<?> clazz) throws java.lang.Exception
java.lang.Exception
public static WikiPage copyPage(WikiPage page, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
public static void populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, java.lang.String command) throws java.lang.Exception
java.lang.Exception
public static WikiPage updatePage(WikiPage page) throws java.lang.Exception
java.lang.Exception
public static WikiPage updatePage(WikiPage page, long userId, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
public static WikiPage updatePage(WikiPage page, long userId, java.lang.String title, java.lang.String content, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception