Class RegistrySerializer

java.lang.Object
org.nuxeo.connect.update.xml.XmlWriter
org.nuxeo.connect.update.task.update.RegistrySerializer

public class RegistrySerializer extends org.nuxeo.connect.update.xml.XmlWriter
Author:
Bogdan Stefanescu
  • Constructor Details

    • RegistrySerializer

      public RegistrySerializer()
      Since:
      5.7
  • Method Details

    • store

      public static void store(Map<String,Entry> registry, File file) throws IOException
      Serializes the given registry into the given file.
      Throws:
      IOException
    • load

      public static Map<String,Entry> load(File file) throws org.nuxeo.connect.update.PackageException, IOException
      De-serializes the given file into a Nuxeo packages registry
      Returns:
      The Nuxeo packages registry described by the given file
      Throws:
      org.nuxeo.connect.update.PackageException
      IOException
    • read

      protected Map<String,Entry> read(File file) throws org.nuxeo.connect.update.PackageException, IOException
      Throws:
      org.nuxeo.connect.update.PackageException
      IOException
    • read

      protected void read(Element element, Map<String,Entry> registry) throws org.nuxeo.connect.update.PackageException
      Throws:
      org.nuxeo.connect.update.PackageException
    • readEntryElement

      protected Entry readEntryElement(Element element) throws org.nuxeo.connect.update.PackageException
      Throws:
      org.nuxeo.connect.update.PackageException
    • readKeyAttr

      protected String readKeyAttr(Element element) throws org.nuxeo.connect.update.PackageException
      Throws:
      org.nuxeo.connect.update.PackageException
    • readNameAttr

      protected String readNameAttr(Element element) throws org.nuxeo.connect.update.PackageException
      Throws:
      org.nuxeo.connect.update.PackageException
    • readPathAttr

      protected String readPathAttr(Element element) throws org.nuxeo.connect.update.PackageException
      Throws:
      org.nuxeo.connect.update.PackageException
    • readVersionElement

      protected Version readVersionElement(Element element) throws org.nuxeo.connect.update.PackageException
      Throws:
      org.nuxeo.connect.update.PackageException
    • write

      protected void write(Map<String,Entry> registry)
    • writeEntry

      protected void writeEntry(Entry entry)
    • writeBaseVersion

      protected void writeBaseVersion(Version version)
    • writeVersion

      protected void writeVersion(Version version)
    • write

      protected void write(File file) throws IOException
      Parameters:
      file - Output file
      Throws:
      IOException
      Since:
      5.7