com.liferay.portlet.dynamicdatamapping.util.test
Class DDMStructureTestUtil
java.lang.Object
com.liferay.portlet.dynamicdatamapping.util.test.DDMStructureTestUtil
public class DDMStructureTestUtil
- extends Object
|
Method Summary |
static DDMStructure |
addStructure(long groupId,
String className)
|
static DDMStructure |
addStructure(long groupId,
String className,
Locale defaultLocale)
|
static DDMStructure |
addStructure(long groupId,
String className,
long parentStructureId)
|
static DDMStructure |
addStructure(long groupId,
String className,
long parentStructureId,
String definition,
Locale defaultLocale,
ServiceContext serviceContext)
|
static DDMStructure |
addStructure(long groupId,
String className,
String definition)
|
static DDMStructure |
addStructure(long groupId,
String className,
String definition,
Locale defaultLocale)
|
static DDMStructure |
addStructure(String className)
|
static DDMStructure |
addStructure(String className,
Locale defaultLocale)
|
static DDMStructure |
addStructure(String className,
Locale[] availableLocales,
Locale defaultLocale)
|
static DDMStructure |
addStructure(String className,
String definition)
|
static DDMStructure |
addStructure(String className,
String definition,
Locale defaultLocale)
|
protected static Document |
createDocumentContent(String availableLocales,
String defaultLocale)
|
protected static Document |
createDocumentStructure(Locale[] availableLocales,
Locale defaultLocale)
|
protected static Map<String,String> |
getElementMap(Element element)
|
protected static String |
getElementName(Element element)
|
static String |
getSampleStructuredContent()
|
static String |
getSampleStructuredContent(Map<Locale,String> contents,
String defaultLocale)
|
static String |
getSampleStructuredContent(String keywords)
|
static String |
getSampleStructuredContent(String name,
Map<Locale,String> contents,
String defaultLocale)
|
static String |
getSampleStructuredContent(String name,
String keywords)
|
static String |
getSampleStructureDefinition()
|
static String |
getSampleStructureDefinition(Locale[] availableLocales,
Locale defaultLocale)
|
static String |
getSampleStructureDefinition(String name)
|
static String |
getSampleStructureDefinition(String name,
Locale[] availableLocales,
Locale defaultLocale)
|
static Map<String,Map<String,String>> |
getXSDMap(String xsd)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMStructureTestUtil
public DDMStructureTestUtil()
addStructure
public static DDMStructure addStructure(long groupId,
String className)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(long groupId,
String className,
Locale defaultLocale)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(long groupId,
String className,
long parentStructureId)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(long groupId,
String className,
long parentStructureId,
String definition,
Locale defaultLocale,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(long groupId,
String className,
String definition)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(long groupId,
String className,
String definition,
Locale defaultLocale)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(String className)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(String className,
Locale defaultLocale)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(String className,
Locale[] availableLocales,
Locale defaultLocale)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(String className,
String definition)
throws Exception
- Throws:
Exception
addStructure
public static DDMStructure addStructure(String className,
String definition,
Locale defaultLocale)
throws Exception
- Throws:
Exception
getSampleStructuredContent
public static String getSampleStructuredContent()
getSampleStructuredContent
public static String getSampleStructuredContent(Map<Locale,String> contents,
String defaultLocale)
getSampleStructuredContent
public static String getSampleStructuredContent(String keywords)
getSampleStructuredContent
public static String getSampleStructuredContent(String name,
Map<Locale,String> contents,
String defaultLocale)
getSampleStructuredContent
public static String getSampleStructuredContent(String name,
String keywords)
getSampleStructureDefinition
public static String getSampleStructureDefinition()
getSampleStructureDefinition
public static String getSampleStructureDefinition(Locale[] availableLocales,
Locale defaultLocale)
getSampleStructureDefinition
public static String getSampleStructureDefinition(String name)
getSampleStructureDefinition
public static String getSampleStructureDefinition(String name,
Locale[] availableLocales,
Locale defaultLocale)
getXSDMap
public static Map<String,Map<String,String>> getXSDMap(String xsd)
throws Exception
- Throws:
Exception
createDocumentContent
protected static Document createDocumentContent(String availableLocales,
String defaultLocale)
createDocumentStructure
protected static Document createDocumentStructure(Locale[] availableLocales,
Locale defaultLocale)
getElementMap
protected static Map<String,String> getElementMap(Element element)
getElementName
protected static String getElementName(Element element)