Class ArchiveProperties

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    ArchiveRequestBody

    public class ArchiveProperties
    extends Object
    implements Serializable
    ArchiveProperties defined the properties that are stored when a data source is archived or deleted. This allows the Asset to remain in the metadata repository after the real-world artifact has gone. This is important to prevent lineage graphs from becoming fragmented.
    See Also:
    Serialized Form
    • Constructor Detail

      • ArchiveProperties

        public ArchiveProperties()
        Default constructor
      • ArchiveProperties

        public ArchiveProperties​(ArchiveProperties template)
        Copy/clone constructor for the template properties.
        Parameters:
        template - template object to copy.
    • Method Detail

      • getArchiveDate

        public Date getArchiveDate()
        Returns the date when the data source was archived (or discovered missing). Null means "now".
        Returns:
        date of archive
      • setArchiveDate

        public void setArchiveDate​(Date archiveDate)
        Set up the date when the data source was archived (or discovered missing). Null means "now".
        Parameters:
        archiveDate - date of archive
      • getArchiveProcess

        public String getArchiveProcess()
        Returns the name of the process that either performed the archive or detected the missing data source.
        Returns:
        String name
      • setArchiveProcess

        public void setArchiveProcess​(String archiveProcess)
        Set up the name of the process that either performed the archive or detected the missing data source.
        Parameters:
        archiveProcess - String name
      • getArchiveProperties

        public Map<String,​String> getArchiveProperties()
        Return the properties that characterize where the data source was archived to.
        Returns:
        map of name value pairs, all strings
      • setArchiveProperties

        public void setArchiveProperties​(Map<String,​String> archiveProperties)
        Set up the properties that characterize where the data source was archived to.
        Parameters:
        archiveProperties - map of name value pairs, all strings
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return has code based on properties.
        Overrides:
        hashCode in class Object
        Returns:
        int