Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.util.test
Class DDMTemplateTestUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.util.test.DDMTemplateTestUtil

public class DDMTemplateTestUtil
extends Object


Constructor Summary
DDMTemplateTestUtil()
           
 
Method Summary
static void addDynamicContentElement(Element dynamicElementElement, String languageId, String value)
           
static Element addDynamicElementElement(Element element, String type, String name)
           
static DDMTemplate addTemplate(long structureId)
           
static DDMTemplate addTemplate(long structureId, Locale defaultLocale)
           
static DDMTemplate addTemplate(long groupId, long structureId)
           
static DDMTemplate addTemplate(long groupId, long structureId, Locale defaultLocale)
           
static DDMTemplate addTemplate(long groupId, long classNameId, long classPK)
           
static DDMTemplate addTemplate(long groupId, long classNameId, long classPK, String language, String script, Locale defaultLocale)
           
static DDMTemplate addTemplate(long groupId, long structureId, String language, String script, Locale defaultLocale)
           
static DDMTemplate addTemplate(long structureId, String language, String script)
           
static DDMTemplate addTemplate(long structureId, String language, String script, Locale defaultLocale)
           
static Document createDocument(String availableLocales, String defaultLocale)
           
static String getSampleTemplateXSL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMTemplateTestUtil

public DDMTemplateTestUtil()
Method Detail

addDynamicContentElement

public static void addDynamicContentElement(Element dynamicElementElement,
                                            String languageId,
                                            String value)

addDynamicElementElement

public static Element addDynamicElementElement(Element element,
                                               String type,
                                               String name)

addTemplate

public static DDMTemplate addTemplate(long structureId)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long structureId,
                                      Locale defaultLocale)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long groupId,
                                      long structureId)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long groupId,
                                      long structureId,
                                      Locale defaultLocale)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long groupId,
                                      long classNameId,
                                      long classPK)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long groupId,
                                      long classNameId,
                                      long classPK,
                                      String language,
                                      String script,
                                      Locale defaultLocale)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long groupId,
                                      long structureId,
                                      String language,
                                      String script,
                                      Locale defaultLocale)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long structureId,
                                      String language,
                                      String script)
                               throws Exception
Throws:
Exception

addTemplate

public static DDMTemplate addTemplate(long structureId,
                                      String language,
                                      String script,
                                      Locale defaultLocale)
                               throws Exception
Throws:
Exception

createDocument

public static Document createDocument(String availableLocales,
                                      String defaultLocale)

getSampleTemplateXSL

public static String getSampleTemplateXSL()

Liferay 7.0-ce-m6