Class EgeriaBaseArchiveWriter

java.lang.Object
org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveWriter
org.odpi.openmetadata.samples.archiveutilities.EgeriaBaseArchiveWriter
Direct Known Subclasses:
CocoBusinessSystemsArchiveWriter, CocoClinicalTrialsArchiveWriter, CocoComboArchiveWriter, CocoGovernanceEnginesArchiveWriter, CocoGovernanceProgramArchiveWriter, CocoOrganizationArchiveWriter, CocoSustainabilityArchiveWriter, ContentPackBaseArchiveWriter

public abstract class EgeriaBaseArchiveWriter extends OMRSArchiveWriter
CocoBaseArchiveWriter provides a base class for utilities creating a physical open metadata archive file containing definitions for Coco Pharmaceuticals.
  • Field Details

  • Constructor Details

    • EgeriaBaseArchiveWriter

      protected EgeriaBaseArchiveWriter(String archiveGUID, String archiveName, String archiveDescription, Date creationDate, String archiveFileName)
      Constructor for an archive.
      Parameters:
      archiveGUID - unique identifier of the archive
      archiveName - name of the archive
      archiveDescription - description of archive
      creationDate - date/time this archive writer ran
      archiveFileName - name of file to write archive to
    • EgeriaBaseArchiveWriter

      protected EgeriaBaseArchiveWriter(String archiveGUID, String archiveName, String archiveDescription, Date creationDate, String archiveFileName, OpenMetadataArchive[] additionalDependencies)
      Constructor for an archive.
      Parameters:
      archiveGUID - unique identifier of the archive
      archiveName - name of the archive
      archiveDescription - description of archive
      creationDate - date/time this archive writer ran
      archiveFileName - name of file to write archive to
      additionalDependencies - archive that this archive is dependent on
  • Method Details

    • setArchiveBuilder

      public void setArchiveBuilder(OMRSArchiveBuilder archiveBuilder, GovernanceArchiveHelper archiveHelper)
      Provide an alternative archive builder. Used when consolidating archives.
      Parameters:
      archiveBuilder - new archive builder
    • getOpenMetadataArchive

      public OpenMetadataArchive getOpenMetadataArchive()
      Returns the open metadata archive containing new metadata entities.
      Returns:
      populated open metadata archive object
    • getArchiveContent

      public abstract void getArchiveContent()
      Implemented by subclass to add the content.
    • writeOpenMetadataArchive

      public void writeOpenMetadataArchive()
      Generates and writes out the open metadata archive created in the builder.
    • writeOpenMetadataArchive

      public void writeOpenMetadataArchive(String folderName)
      Generates and writes out the open metadata archive created in the builder.
      Parameters:
      folderName - name of the folder to add the archive into