public class WikiTestUtil
extends java.lang.Object
Constructor and Description |
---|
WikiTestUtil() |
Modifier and Type | Method and 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,
java.lang.String name,
java.lang.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,
java.lang.String title,
boolean approved) |
static com.liferay.wiki.model.WikiPage |
addPage(long userId,
long nodeId,
java.lang.String title,
java.lang.String content,
boolean approved,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.wiki.model.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 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 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 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,
java.lang.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,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.wiki.model.WikiPage |
updatePage(com.liferay.wiki.model.WikiPage page,
long userId,
java.lang.String title,
java.lang.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) |
public static com.liferay.wiki.model.WikiNode addDefaultNode(long groupId) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiNode addNode(long groupId) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiNode addNode(long userId, long groupId, java.lang.String name, java.lang.String description) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage addPage(long groupId, long nodeId, boolean approved) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage addPage(long userId, long groupId, long nodeId, java.lang.String title, boolean approved) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.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 com.liferay.wiki.model.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 com.liferay.wiki.model.WikiPage[] addPageWithChangedParentPage(long groupId, long nodeId) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage[] addPageWithChildPageAndRedirectPage(long groupId, long nodeId) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage[] addRenamedParentPageWithChildPageAndGrandchildPage(long groupId, long nodeId) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage[] addRenamedTrashedPage(long groupId, long nodeId, boolean explicitlyRemoveRedirectPage) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage[] addRenamedTrashedParentPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage, boolean explicitlyRemoveRedirectPage) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage[] addTrashedPageWithChildPage(long groupId, long nodeId, boolean explicitlyRemoveChildPage) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.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 com.liferay.wiki.model.WikiPage copyPage(com.liferay.wiki.model.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 com.liferay.wiki.model.WikiPage updatePage(com.liferay.wiki.model.WikiPage page) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage updatePage(com.liferay.wiki.model.WikiPage page, long userId, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
public static com.liferay.wiki.model.WikiPage updatePage(com.liferay.wiki.model.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
protected static com.liferay.wiki.model.WikiPage updateStatus(com.liferay.wiki.model.WikiPage page, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception