Class ResourceHeaders

java.lang.Object
org.fcrepo.storage.ocfl.ResourceHeaders

public class ResourceHeaders extends Object
Resource headers contain metadata about Fedora resources in Fedora 6.

This class is based on ResourceHeadersImpl in fcrepo-persistence-common.

Author:
bbpennel, pwinckles
  • Method Details

    • builder

      public static ResourceHeaders.Builder builder()
    • builder

      public static ResourceHeaders.Builder builder(ResourceHeaders original)
    • getId

      public String getId()
      Returns:
      the fedora id
    • getParent

      public String getParent()
      Returns:
      the parent fedora id
    • getArchivalGroupId

      public String getArchivalGroupId()
      Returns:
      the fedora id of the archival group resource that contains this resource, or null
    • getStateToken

      public String getStateToken()
      Returns:
      the stateToken
    • getInteractionModel

      public String getInteractionModel()
      Returns:
      the interactionModel
    • getMimeType

      public String getMimeType()
      Returns:
      the mimeType
    • getFilename

      public String getFilename()
      Returns:
      the filename
    • getContentSize

      public long getContentSize()
      Content size may be -1 when there is no content or the content's size is unknown
      Returns:
      the contentSize
    • getDigests

      public Collection<URI> getDigests()
      Returns:
      the digests
    • getExternalHandling

      public String getExternalHandling()
      Returns:
      the externalHandling
    • getCreatedDate

      public Instant getCreatedDate()
      Returns:
      the createdDate
    • getCreatedBy

      public String getCreatedBy()
      Returns:
      the createdBy
    • getLastModifiedDate

      public Instant getLastModifiedDate()
      Returns:
      the lastModifiedDate
    • getLastModifiedBy

      public String getLastModifiedBy()
      Returns:
      the lastModifiedBy
    • getMementoCreatedDate

      public Instant getMementoCreatedDate()
      Returns:
      the timestamp when the memento was created
    • getExternalUrl

      public String getExternalUrl()
      Returns:
      the externalUrl
    • isArchivalGroup

      public boolean isArchivalGroup()
      Returns:
      if it is an archival group
    • isObjectRoot

      public boolean isObjectRoot()
      Returns:
      if it is an object root resource
    • isDeleted

      public boolean isDeleted()
      Returns:
      if the resource is deleted
    • getContentPath

      public String getContentPath()
      Returns:
      the path to the associated content file
    • getHeadersVersion

      public String getHeadersVersion()
      Returns:
      the version identifier of the headers file
    • getStorageRelativePath

      public String getStorageRelativePath()
      Returns:
      the path of the resource relative to the storage root
    • setStorageRelativePath

      protected void setStorageRelativePath(String storageRelativePath)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object