Class DocumentModelCSVHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.csv.export.io.DocumentModelCSVHelper
-
public class DocumentModelCSVHelper extends Object
Utility class to have helper methods for exporting a document model in a CSV file.- Since:
- 10.3
-
-
Field Summary
Fields Modifier and Type Field Description static String[]SYSTEM_PROPERTIES_HEADER_FIELDSstatic List<String>VOCABULARY_TYPES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>getList(RenderingContext ctx, String key)static DirectorygetVocabulary(Type type)static booleanisVocabulary(Type type)Checks if given type is a vocabulary.static voidprintPropertiesHeader(List<String> schemas, List<String> xpaths, org.apache.commons.csv.CSVPrinter printer)Prints the fields for document model properties of given schemas and xpaths.static voidprintSystemPropertiesHeader(org.apache.commons.csv.CSVPrinter printer)Prints the fields for document model system properties.
-
-
-
Method Detail
-
printSystemPropertiesHeader
public static void printSystemPropertiesHeader(org.apache.commons.csv.CSVPrinter printer) throws IOExceptionPrints the fields for document model system properties.- Throws:
IOException
-
printPropertiesHeader
public static void printPropertiesHeader(List<String> schemas, List<String> xpaths, org.apache.commons.csv.CSVPrinter printer) throws IOException
Prints the fields for document model properties of given schemas and xpaths.- Throws:
IOException
-
isVocabulary
public static boolean isVocabulary(Type type)
Checks if given type is a vocabulary.
-
getList
public static List<String> getList(RenderingContext ctx, String key)
-
-