com.liferay.portlet.wiki.util.test
Class WikiTestUtil
java.lang.Object
com.liferay.portlet.wiki.util.test.WikiTestUtil
public class WikiTestUtil
- extends Object
|
Method Summary |
static WikiNode |
addNode(long groupId)
|
static WikiNode |
addNode(long userId,
long groupId,
String name,
String description)
|
static WikiPage |
addPage(long groupId,
long nodeId,
boolean approved)
|
static WikiPage |
addPage(long userId,
long groupId,
long nodeId,
String title,
boolean approved)
|
static WikiPage |
addPage(long userId,
long nodeId,
String title,
String content,
boolean approved,
ServiceContext serviceContext)
|
static WikiPage |
addPage(long userId,
long nodeId,
String title,
String content,
String parentTitle,
boolean approved,
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 File |
addWikiAttachment(long userId,
long nodeId,
String title,
Class<?> clazz)
|
static File |
addWikiAttachment(long userId,
long nodeId,
String title,
String fileName,
Class<?> clazz)
|
static WikiPage |
copyPage(WikiPage page,
boolean approved,
ServiceContext serviceContext)
|
static WikiPage |
updatePage(WikiPage page)
|
static WikiPage |
updatePage(WikiPage page,
long userId,
String content,
ServiceContext serviceContext)
|
static WikiPage |
updatePage(WikiPage page,
long userId,
String title,
String content,
boolean approved,
ServiceContext serviceContext)
|
protected static WikiPage |
updateStatus(WikiPage page,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiTestUtil
public WikiTestUtil()
addNode
public static WikiNode addNode(long groupId)
throws Exception
- Throws:
Exception
addNode
public static WikiNode addNode(long userId,
long groupId,
String name,
String description)
throws Exception
- Throws:
Exception
addPage
public static WikiPage addPage(long groupId,
long nodeId,
boolean approved)
throws Exception
- Throws:
Exception
addPage
public static WikiPage addPage(long userId,
long groupId,
long nodeId,
String title,
boolean approved)
throws Exception
- Throws:
Exception
addPage
public static WikiPage addPage(long userId,
long nodeId,
String title,
String content,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addPage
public static WikiPage addPage(long userId,
long nodeId,
String title,
String content,
String parentTitle,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addPageWithChangedParentPage
public static WikiPage[] addPageWithChangedParentPage(long groupId,
long nodeId)
throws Exception
- Throws:
Exception
addPageWithChildPageAndRedirectPage
public static WikiPage[] addPageWithChildPageAndRedirectPage(long groupId,
long nodeId)
throws Exception
- Throws:
Exception
addRenamedParentPageWithChildPageAndGrandchildPage
public static WikiPage[] addRenamedParentPageWithChildPageAndGrandchildPage(long groupId,
long nodeId)
throws Exception
- Throws:
Exception
addRenamedTrashedPage
public static WikiPage[] addRenamedTrashedPage(long groupId,
long nodeId,
boolean explicitlyRemoveRedirectPage)
throws Exception
- Throws:
Exception
addRenamedTrashedParentPage
public static WikiPage[] addRenamedTrashedParentPage(long groupId,
long nodeId,
boolean explicitlyRemoveChildPage,
boolean explicitlyRemoveRedirectPage)
throws Exception
- Throws:
Exception
addTrashedPageWithChildPage
public static WikiPage[] addTrashedPageWithChildPage(long groupId,
long nodeId,
boolean explicitlyRemoveChildPage)
throws Exception
- Throws:
Exception
addTrashedParentPageWithChildPageAndGrandchildPage
public static WikiPage[] addTrashedParentPageWithChildPageAndGrandchildPage(long groupId,
long nodeId,
boolean explicitMoveChildToTrash,
boolean explicitMoveParentToTrash)
throws Exception
- Throws:
Exception
addWikiAttachment
public static File addWikiAttachment(long userId,
long nodeId,
String title,
Class<?> clazz)
throws Exception
- Throws:
Exception
addWikiAttachment
public static File addWikiAttachment(long userId,
long nodeId,
String title,
String fileName,
Class<?> clazz)
throws Exception
- Throws:
Exception
copyPage
public static WikiPage copyPage(WikiPage page,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updatePage
public static WikiPage updatePage(WikiPage page)
throws Exception
- Throws:
Exception
updatePage
public static WikiPage updatePage(WikiPage page,
long userId,
String content,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updatePage
public static WikiPage updatePage(WikiPage page,
long userId,
String title,
String content,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updateStatus
protected static WikiPage updateStatus(WikiPage page,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception