Package com.liferay.template.test.util
Class TemplateTestUtil
java.lang.Object
com.liferay.template.test.util.TemplateTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.template.model.TemplateEntryaddAnyTemplateEntry(com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.dynamic.data.mapping.model.DDMTemplateaddDDMTemplate(long classNameId, long classPK, long resourceClassNameId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.dynamic.data.mapping.model.DDMTemplateaddDDMTemplate(long classNameId, long classPK, long resourceClassNameId, String name, String description, String script, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.template.model.TemplateEntryaddTemplateEntry(String infoItemClassName, String infoItemFormVariationKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.template.model.TemplateEntryaddTemplateEntry(String infoItemClassName, String infoItemFormVariationKey, String name, String description, String script, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.info.field.InfoFieldaddTemplateEntryInfoField(String fieldName, String infoItemClassName, String infoItemFormVariationKey, com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.info.item.InfoItemFormVariationgetFirstInfoItemFormVariation(com.liferay.info.item.InfoItemClassDetails infoItemClassDetails, com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, long groupId) static com.liferay.info.item.InfoItemClassDetailsgetFirstTemplateInfoItemClassDetails(com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, long groupId) static StringgetRepeatableFieldSampleScriptFTL(String fieldName) static StringgetSampleScriptFTL(String fieldName)
-
Constructor Details
-
TemplateTestUtil
public TemplateTestUtil()
-
-
Method Details
-
addAnyTemplateEntry
public static com.liferay.template.model.TemplateEntry addAnyTemplateEntry(com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addDDMTemplate
public static com.liferay.dynamic.data.mapping.model.DDMTemplate addDDMTemplate(long classNameId, long classPK, long resourceClassNameId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addDDMTemplate
public static com.liferay.dynamic.data.mapping.model.DDMTemplate addDDMTemplate(long classNameId, long classPK, long resourceClassNameId, String name, String description, String script, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTemplateEntry
public static com.liferay.template.model.TemplateEntry addTemplateEntry(String infoItemClassName, String infoItemFormVariationKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTemplateEntry
public static com.liferay.template.model.TemplateEntry addTemplateEntry(String infoItemClassName, String infoItemFormVariationKey, String name, String description, String script, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTemplateEntryInfoField
public static com.liferay.info.field.InfoField addTemplateEntryInfoField(String fieldName, String infoItemClassName, String infoItemFormVariationKey, com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getFirstInfoItemFormVariation
public static com.liferay.info.item.InfoItemFormVariation getFirstInfoItemFormVariation(com.liferay.info.item.InfoItemClassDetails infoItemClassDetails, com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, long groupId) -
getFirstTemplateInfoItemClassDetails
public static com.liferay.info.item.InfoItemClassDetails getFirstTemplateInfoItemClassDetails(com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, long groupId) -
getRepeatableFieldSampleScriptFTL
-
getSampleScriptFTL
-