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 Details

    • SYSTEM_PROPERTIES_HEADER_FIELDS

      public static final String[] SYSTEM_PROPERTIES_HEADER_FIELDS
    • VOCABULARY_TYPES

      public static final List<String> 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

      public static boolean isVocabulary(Type type)
      Checks if given type is a vocabulary.
    • getVocabulary

      public static Directory getVocabulary(Type type)
    • getList

      public static List<String> getList(RenderingContext ctx, String key)