java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.surveyaction.seal.SealManifest
Record Components:
manifestVersion - version of the manifest format
sealedElementGUID - unique identifier of the element that describes the sealed content
rootPathName - path name of the sealed file or directory, as it is catalogued
algorithm - algorithm used to hash the content of each member
sealedTime - when the content was sealed (ISO 8601)
sealedBy - who, or what, sealed the content
memberCount - number of members
totalSize - total size of the members in bytes
members - the members, in path order

public record SealManifest(int manifestVersion, String sealedElementGUID, String rootPathName, String algorithm, String sealedTime, String sealedBy, long memberCount, long totalSize, List<SealManifestMember> members) extends Record
SealManifest lists the members of sealed content as they were when the content was sealed. It is written once, to a file outside the sealed content, and never changed. The Sealed classification on the element that describes the content holds the location of the manifest file and the hash of its bytes.
  • Field Details

    • CURRENT_VERSION

      public static final int CURRENT_VERSION
      The version of the manifest format written by this release.
      See Also:
  • Constructor Details

    • SealManifest

      public SealManifest(int manifestVersion, String sealedElementGUID, String rootPathName, String algorithm, String sealedTime, String sealedBy, long memberCount, long totalSize, List<SealManifestMember> members)
      Creates an instance of a SealManifest record class.
      Parameters:
      manifestVersion - the value for the manifestVersion record component
      sealedElementGUID - the value for the sealedElementGUID record component
      rootPathName - the value for the rootPathName record component
      algorithm - the value for the algorithm record component
      sealedTime - the value for the sealedTime record component
      sealedBy - the value for the sealedBy record component
      memberCount - the value for the memberCount record component
      totalSize - the value for the totalSize record component
      members - the value for the members record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • manifestVersion

      public int manifestVersion()
      Returns the value of the manifestVersion record component.
      Returns:
      the value of the manifestVersion record component
    • sealedElementGUID

      public String sealedElementGUID()
      Returns the value of the sealedElementGUID record component.
      Returns:
      the value of the sealedElementGUID record component
    • rootPathName

      public String rootPathName()
      Returns the value of the rootPathName record component.
      Returns:
      the value of the rootPathName record component
    • algorithm

      public String algorithm()
      Returns the value of the algorithm record component.
      Returns:
      the value of the algorithm record component
    • sealedTime

      public String sealedTime()
      Returns the value of the sealedTime record component.
      Returns:
      the value of the sealedTime record component
    • sealedBy

      public String sealedBy()
      Returns the value of the sealedBy record component.
      Returns:
      the value of the sealedBy record component
    • memberCount

      public long memberCount()
      Returns the value of the memberCount record component.
      Returns:
      the value of the memberCount record component
    • totalSize

      public long totalSize()
      Returns the value of the totalSize record component.
      Returns:
      the value of the totalSize record component
    • members

      public List<SealManifestMember> members()
      Returns the value of the members record component.
      Returns:
      the value of the members record component