Class OpenMetadataArchiveProperties
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.archivestore.properties.OpenMetadataArchiveElementHeader
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.archivestore.properties.OpenMetadataArchiveProperties
-
- All Implemented Interfaces:
Serializable
public class OpenMetadataArchiveProperties extends OpenMetadataArchiveElementHeader
OpenMetadataArchiveProperties defines the properties of an open metadata archive. This includes the following properties:- Unique identifier (GUID) of the archive. This is used as the metadata collection id for the elements in the archive.
- Archive name. This is used as the name of the metadata collection for the elements in the archive.
- Archive description. This helps people choose which archive they want.
- Archive Type (CONTENT_PACK or METADATA_EXPORT). A content pack is a reusable collection of metadata elements. A metadata export is an extraction of metadata from a cohort for backup/restore or to create metadata to send to a disconnected cohort.
- Archive Version. A descriptive name for the version of this archive.
- Originator name. This becomes the creation user id in the elements if it is not already specified.
- Originator organization. Name of the organization that created the archive.
- Originator license. The license associated with the metadata content. Null means no restrictions.
- Creation date is the date that the archive was created. This will become the creationTime in the elements if not already specified.
- GUIDs for archives that this archive depends on. This helps the open metadata repository services load the archives in the right order. Null here means no dependencies.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenMetadataArchiveProperties()Default constructor that relies on initialization of variables in their declaration.OpenMetadataArchiveProperties(OpenMetadataArchiveProperties template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.StringgetArchiveDescription()Return the description for this open metadata archive.StringgetArchiveGUID()Return the unique identifier for this archive.StringgetArchiveName()Return the descriptive name for this open metadata archive.OpenMetadataArchiveTypegetArchiveType()Return the type of this open metadata archive.StringgetArchiveVersion()Return the descriptive version name for this archive.DategetCreationDate()Return the date that this open metadata archive was created.List<String>getDependsOnArchives()Return the list of GUIDs for open metadata archives that need to be loaded before this one.StringgetOriginatorLicense()Return the default license for all instance in this archive (this value can be overridden in individual instances in the archive).StringgetOriginatorName()Return the name of the originator of this open metadata archive.StringgetOriginatorOrganization()Return the name of the organization that provided this archive.inthashCode()Return a hash code based on the values of this object.voidsetArchiveDescription(String archiveDescription)Set up the description for this open metadata archive.voidsetArchiveGUID(String archiveGUID)Set up the unique identifier for this open metadata archive.voidsetArchiveName(String archiveName)Set up the descriptive name for this open metadata archive.voidsetArchiveType(OpenMetadataArchiveType archiveType)Set up the type of this open metadata archive.voidsetArchiveVersion(String archiveVersion)Set up the descriptive version name for this archive.voidsetCreationDate(Date creationDate)Set up the date that this open metadata archive was created.voidsetDependsOnArchives(List<String> dependsOnArchives)Set up the list of GUIDs for open metadata archives that need to be loaded before this one.voidsetOriginatorLicense(String originatorLicense)Set up the default license for all instances in this archive (this value can be overridden in individual instances in the archive).voidsetOriginatorName(String originatorName)Set up the name of the originator of this open metadata archive.voidsetOriginatorOrganization(String originatorOrganization)Set up the name of the organization that provided this archive.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
OpenMetadataArchiveProperties
public OpenMetadataArchiveProperties()
Default constructor that relies on initialization of variables in their declaration.
-
OpenMetadataArchiveProperties
public OpenMetadataArchiveProperties(OpenMetadataArchiveProperties template)
Copy/clone constructor- Parameters:
template- object to copy.
-
-
Method Detail
-
getArchiveGUID
public String getArchiveGUID()
Return the unique identifier for this archive.- Returns:
- String guid
-
setArchiveGUID
public void setArchiveGUID(String archiveGUID)
Set up the unique identifier for this open metadata archive.- Parameters:
archiveGUID- String guid
-
getArchiveName
public String getArchiveName()
Return the descriptive name for this open metadata archive.- Returns:
- String name
-
setArchiveName
public void setArchiveName(String archiveName)
Set up the descriptive name for this open metadata archive.- Parameters:
archiveName- String name
-
getArchiveDescription
public String getArchiveDescription()
Return the description for this open metadata archive.- Returns:
- String description
-
setArchiveDescription
public void setArchiveDescription(String archiveDescription)
Set up the description for this open metadata archive.- Parameters:
archiveDescription- String description
-
getArchiveType
public OpenMetadataArchiveType getArchiveType()
Return the type of this open metadata archive.- Returns:
- OpenMetadataArchiveType enum
-
setArchiveType
public void setArchiveType(OpenMetadataArchiveType archiveType)
Set up the type of this open metadata archive.- Parameters:
archiveType- OpenMetadataArchiveType enum
-
getArchiveVersion
public String getArchiveVersion()
Return the descriptive version name for this archive.- Returns:
- string version
-
setArchiveVersion
public void setArchiveVersion(String archiveVersion)
Set up the descriptive version name for this archive.- Parameters:
archiveVersion- string version
-
getOriginatorName
public String getOriginatorName()
Return the name of the originator of this open metadata archive. This will be used as the name of the creator for each element in the archive.- Returns:
- String name
-
setOriginatorName
public void setOriginatorName(String originatorName)
Set up the name of the originator of this open metadata archive. This will be used as the name of the creator for each element in the archive.- Parameters:
originatorName- String name
-
getOriginatorOrganization
public String getOriginatorOrganization()
Return the name of the organization that provided this archive.- Returns:
- String organization name
-
setOriginatorOrganization
public void setOriginatorOrganization(String originatorOrganization)
Set up the name of the organization that provided this archive.- Parameters:
originatorOrganization- String name
-
getOriginatorLicense
public String getOriginatorLicense()
Return the default license for all instance in this archive (this value can be overridden in individual instances in the archive). A null value means no restrictions.- Returns:
- license string
-
setOriginatorLicense
public void setOriginatorLicense(String originatorLicense)
Set up the default license for all instances in this archive (this value can be overridden in individual instances in the archive). A null value means no restrictions.- Parameters:
originatorLicense- license string
-
getCreationDate
public Date getCreationDate()
Return the date that this open metadata archive was created.- Returns:
- Date object
-
setCreationDate
public void setCreationDate(Date creationDate)
Set up the date that this open metadata archive was created.- Parameters:
creationDate- Date object
-
getDependsOnArchives
public List<String> getDependsOnArchives()
Return the list of GUIDs for open metadata archives that need to be loaded before this one.- Returns:
- list of guids
-
setDependsOnArchives
public void setDependsOnArchives(List<String> dependsOnArchives)
Set up the list of GUIDs for open metadata archives that need to be loaded before this one.- Parameters:
dependsOnArchives- list of guids
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
-
-