java.lang.Object
org.odpi.openmetadata.adapters.connectors.surveyaction.seal.SealVerification

public class SealVerification extends Object
SealVerification is the result of comparing sealed content with its manifest.
  • Constructor Details

    • SealVerification

      public SealVerification(SealVerificationLevel level)
      Constructor.
      Parameters:
      level - how thorough the verification is
  • Method Details

    • getLevel

      public SealVerificationLevel getLevel()
      Return how thorough the verification was.
      Returns:
      level
    • getChangedMembers

      public List<String> getChangedMembers()
      Return the members whose size, last modified time (quick verification) or content (full verification) is different from the manifest.
      Returns:
      relative paths
    • getMissingMembers

      public List<String> getMissingMembers()
      Return the members in the manifest that can not be found.
      Returns:
      relative paths
    • getAddedMembers

      public List<String> getAddedMembers()
      Return the files in the sealed directory that are not in the manifest.
      Returns:
      relative paths
    • getUnreadableMembers

      public List<String> getUnreadableMembers()
      Return the members that could not be read, and so could not be hashed.
      Returns:
      relative paths
    • getCheckedCount

      public long getCheckedCount()
      Return the number of members in the manifest that were looked for.
      Returns:
      count
    • getManifestProblem

      public String getManifestProblem()
      Return why the manifest could not be used (null if it could).
      Returns:
      description or null
    • isManifestAltered

      public boolean isManifestAltered()
      Return whether the manifest is different from when the content was sealed.
      Returns:
      boolean
    • getStatus

      public SealStatus getStatus()
      Return the status that this verification gives the seal. Missing members are reported in preference to changed members, since nothing more can be said about a member that is not there.
      Returns:
      status
    • isBroken

      public boolean isBroken()
      Return whether the verification found evidence that the sealed content is not as it was sealed.
      Returns:
      boolean