Class ArchiveProperties

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ArchiveRequestBody

    public class ArchiveProperties
    extends java.lang.Object
    implements java.io.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      java.util.Date getArchiveDate()
      Returns the date when the data source was archived (or discovered missing).
      java.lang.String getArchiveProcess()
      Returns the name of the process that either performed the archive or detected the missing data source.
      java.util.Map<java.lang.String,​java.lang.String> getArchiveProperties()
      Return the properties that characterize where the data source was archived to.
      int hashCode()
      Return hash code based on properties.
      void setArchiveDate​(java.util.Date archiveDate)
      Set up the date when the data source was archived (or discovered missing).
      void setArchiveProcess​(java.lang.String archiveProcess)
      Set up the name of the process that either performed the archive or detected the missing data source.
      void setArchiveProperties​(java.util.Map<java.lang.String,​java.lang.String> archiveProperties)
      Set up the properties that characterize where the data source was archived to.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 java.util.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​(java.util.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 java.lang.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​(java.lang.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 java.util.Map<java.lang.String,​java.lang.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​(java.util.Map<java.lang.String,​java.lang.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 java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        print out of variables in a JSON-style
      • equals

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

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