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
CocoBaseArchiveWriter provides a base class for utilities creating a physical open metadata archive file containing definitions for
Coco Pharmaceuticals.
-
Field Summary
Modifier and TypeFieldDescriptionprotected OMRSArchiveBuilder
protected final String
protected final String
protected GovernanceArchiveHelper
protected static final String
protected final String
protected static final OpenMetadataArchiveType
protected final Date
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
EgeriaBaseArchiveWriter
(String archiveGUID, String archiveName, String archiveDescription, Date creationDate, String archiveFileName) Constructor for an archive.protected
EgeriaBaseArchiveWriter
(String archiveGUID, String archiveName, String archiveDescription, Date creationDate, String archiveFileName, OpenMetadataArchive[] additionalDependencies) Constructor for an archive. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Implemented by subclass to add the content.Returns the open metadata archive containing new metadata entities.void
setArchiveBuilder
(OMRSArchiveBuilder archiveBuilder, GovernanceArchiveHelper archiveHelper) Provide an alternative archive builder.void
Generates and writes out the open metadata archive created in the builder.void
writeOpenMetadataArchive
(String folderName) Generates and writes out the open metadata archive created in the builder.Methods inherited from class org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveWriter
getOpenMetadataArchiveFileConnection, writeOpenMetadataArchive, writeOpenMetadataArchive
-
Field Details
-
archiveLicense
- See Also:
-
archiveType
-
originatorName
- See Also:
-
guidMapFileName
- See Also:
-
openMetadataValidValueSetPrefix
- See Also:
-
versionName
- See Also:
-
archiveBuilder
-
archiveHelper
-
archiveGUID
-
archiveName
-
creationDate
-
archiveFileName
-
-
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 archivearchiveName
- name of the archivearchiveDescription
- description of archivecreationDate
- date/time this archive writer ranarchiveFileName
- 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 archivearchiveName
- name of the archivearchiveDescription
- description of archivecreationDate
- date/time this archive writer ranarchiveFileName
- name of file to write archive toadditionalDependencies
- 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
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
Generates and writes out the open metadata archive created in the builder.- Parameters:
folderName
- name of the folder to add the archive into
-