Class KBTestUtil
java.lang.Object
com.liferay.knowledge.base.test.util.KBTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.knowledge.base.model.KBArticleaddKBArticle(long groupId) static FileaddKBArticleAttachment(long userId, long resourcePrimKey, String attachmentFileName, Class<?> clazz, String testFileName) static com.liferay.knowledge.base.model.KBArticleaddKBArticleWithWorkflow(long userId, boolean approved, long parentResourcePrimKey, String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.knowledge.base.model.KBCommentaddKBComment(long kbArticleId) static com.liferay.knowledge.base.model.KBFolderaddKBFolder(long groupId) static com.liferay.knowledge.base.model.KBFolderaddKBFolder(long groupId, long parentResourcePrimKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.knowledge.base.model.KBTemplateaddKBTemplate(long groupId)
-
Constructor Details
-
KBTestUtil
public KBTestUtil()
-
-
Method Details
-
addKBArticle
public static com.liferay.knowledge.base.model.KBArticle addKBArticle(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addKBArticleAttachment
public static File addKBArticleAttachment(long userId, long resourcePrimKey, String attachmentFileName, Class<?> clazz, String testFileName) throws Exception - Throws:
Exception
-
addKBArticleWithWorkflow
public static com.liferay.knowledge.base.model.KBArticle addKBArticleWithWorkflow(long userId, boolean approved, long parentResourcePrimKey, String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addKBComment
public static com.liferay.knowledge.base.model.KBComment addKBComment(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addKBFolder
public static com.liferay.knowledge.base.model.KBFolder addKBFolder(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addKBFolder
public static com.liferay.knowledge.base.model.KBFolder addKBFolder(long groupId, long parentResourcePrimKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addKBTemplate
public static com.liferay.knowledge.base.model.KBTemplate addKBTemplate(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-