Class 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 Detail

      • getId

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

        public String getParent()
        Returns:
        the parent fedora id
      • 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
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object