Class DocumentModelCSVHelper
java.lang.Object
org.nuxeo.ecm.platform.csv.export.io.DocumentModelCSVHelper
Utility class to have helper methods for exporting a document model in a CSV file.
- Since:
- 10.3
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetList
(RenderingContext ctx, String key) static Directory
getVocabulary
(Type type) static boolean
isVocabulary
(Type type) Checks if given type is a vocabulary.static void
printPropertiesHeader
(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 void
printSystemPropertiesHeader
(org.apache.commons.csv.CSVPrinter printer) Prints the fields for document model system properties.
-
Field Details
-
SYSTEM_PROPERTIES_HEADER_FIELDS
-
VOCABULARY_TYPES
-
-
Method Details
-
printSystemPropertiesHeader
public static void printSystemPropertiesHeader(org.apache.commons.csv.CSVPrinter printer) throws IOException Prints 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
Checks if given type is a vocabulary. -
getVocabulary
-
getList
-