Interface ResourceHeaders


public interface ResourceHeaders
Header information for fedora resources.
Author:
bbpennel
  • Field Details

  • Method Details

    • getId

      Get the identifier for the described resource.
      Returns:
      identifier for the resource.
    • getParent

      Get the identifier of the parent of the resource
      Returns:
      identifier of the parent
    • getArchivalGroupId

      Get the identifier of the archival group resource that contains this resource, or null if the resource is not an archival part resource
      Returns:
      identifier of the containing archival group resource or null
    • getStateToken

      Get the State Token value for the resource.
      Returns:
      state-token value
    • getInteractionModel

      Get the interaction model for the resource
      Returns:
      interaction model URI
    • getMimeType

      Get the mimetype describing the content contained by this resource
      Returns:
      mimetype
    • getFilename

      Get the filename for the content of this resource
      Returns:
      filename
    • getContentSize

      Get the size in bytes of the content of this resource. May be -1 if the size is unknown or there is no content.
      Returns:
      size
    • getDigests

      Get the list of all digest URIs recorded for this resource
      Returns:
      digest URIs
    • getExternalUrl

      Get the url of external content associated with this resource.
      Returns:
      external url
    • getExternalHandling

      Get the handling type for external content associated with this resource.
      Returns:
      external handling value
    • getCreatedDate

      Get the date this resource was created
      Returns:
      created date
    • getCreatedBy

      Get the created by for the resource
      Returns:
      created by
    • getLastModifiedDate

      Get the date this resource was last modified
      Returns:
      last modified date
    • getLastModifiedBy

      Get the last modified by value for the resource
      Returns:
      last modified by
    • getMementoCreatedDate

      Get the date a memento for this resource was created. This field should generally be kept in sync with the last modified date, but they may not be the same, in the case that a memento was created as a result of an update to a different resource. Additionally, this date is NOT the same as the actual memento timestamp, which is determined by the timestamp on the OCFL version.
      Returns:
      memento created date
    • isArchivalGroup

      boolean isArchivalGroup()
      Determine whether a resource is an Archival Group
      Returns:
      Archival Group status
    • isObjectRoot

      boolean isObjectRoot()
      Determine whether a resource is the object root
      Returns:
      true if the resource is at the root of a persistence object
    • isDeleted

      boolean isDeleted()
      Determine if the resource is now a tombstone.
      Returns:
      Deleted status.
    • getContentPath

      Returns the path to the content file the resource headers are associated with
      Returns:
      path the content file
    • getHeadersVersion

      Returns:
      the header version
    • getStorageRelativePath

      Returns:
      the content path relative to the OCFL object root