Class TemplateTestUtil

java.lang.Object
com.liferay.template.test.util.TemplateTestUtil

public class TemplateTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.template.model.TemplateEntry
    addAnyTemplateEntry(com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.dynamic.data.mapping.model.DDMTemplate
    addDDMTemplate(long classNameId, long classPK, long resourceClassNameId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    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)
     
    static com.liferay.template.model.TemplateEntry
    addTemplateEntry(String infoItemClassName, String infoItemFormVariationKey, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.template.model.TemplateEntry
    addTemplateEntry(String infoItemClassName, String infoItemFormVariationKey, String name, String description, String script, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    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)
     
    static com.liferay.info.item.InfoItemFormVariation
    getFirstInfoItemFormVariation(com.liferay.info.item.InfoItemClassDetails infoItemClassDetails, com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, long groupId)
     
    static com.liferay.info.item.InfoItemClassDetails
    getFirstTemplateInfoItemClassDetails(com.liferay.info.item.InfoItemServiceRegistry infoItemServiceRegistry, long groupId)
     
    static String
     
    static String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static String getRepeatableFieldSampleScriptFTL(String fieldName)
    • getSampleScriptFTL

      public static String getSampleScriptFTL(String fieldName)