Package org.fcrepo.kernel.api.models
Interface ResourceHeaders
-
public interface ResourceHeaders
Header information for fedora resources.- Author:
- bbpennel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentPath()Returns the path to the content file the resource headers are associated withlonggetContentSize()Get the size in bytes of the content of this resource.StringgetCreatedBy()Get the created by for the resourceInstantgetCreatedDate()Get the date this resource was createdCollection<URI>getDigests()Get the list of all digest URIs recorded for this resourceStringgetExternalHandling()Get the handling type for external content associated with this resource.StringgetExternalUrl()Get the url of external content associated with this resource.StringgetFilename()Get the filename for the content of this resourceFedoraIdgetId()Get the identifier for the described resource.StringgetInteractionModel()Get the interaction model for the resourceStringgetLastModifiedBy()Get the last modified by value for the resourceInstantgetLastModifiedDate()Get the date this resource was last modifiedStringgetMimeType()Get the mimetype describing the content contained by this resourceFedoraIdgetParent()Get the identifier of the parent of the resourceStringgetStateToken()Get the State Token value for the resource.booleanisArchivalGroup()Determine whether a resource is an Archival GroupbooleanisDeleted()Determine if the resource is now a tombstone.booleanisObjectRoot()Determine whether a resource is the object root
-
-
-
Method Detail
-
getId
FedoraId getId()
Get the identifier for the described resource.- Returns:
- identifier for the resource.
-
getParent
FedoraId getParent()
Get the identifier of the parent of the resource- Returns:
- identifier of the parent
-
getStateToken
String getStateToken()
Get the State Token value for the resource.- Returns:
- state-token value
-
getInteractionModel
String getInteractionModel()
Get the interaction model for the resource- Returns:
- interaction model URI
-
getMimeType
String getMimeType()
Get the mimetype describing the content contained by this resource- Returns:
- mimetype
-
getFilename
String getFilename()
Get the filename for the content of this resource- Returns:
- filename
-
getContentSize
long 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
Collection<URI> getDigests()
Get the list of all digest URIs recorded for this resource- Returns:
- digest URIs
-
getExternalUrl
String getExternalUrl()
Get the url of external content associated with this resource.- Returns:
- external url
-
getExternalHandling
String getExternalHandling()
Get the handling type for external content associated with this resource.- Returns:
- external handling value
-
getCreatedDate
Instant getCreatedDate()
Get the date this resource was created- Returns:
- created date
-
getCreatedBy
String getCreatedBy()
Get the created by for the resource- Returns:
- created by
-
getLastModifiedDate
Instant getLastModifiedDate()
Get the date this resource was last modified- Returns:
- last modified date
-
getLastModifiedBy
String getLastModifiedBy()
Get the last modified by value for the resource- Returns:
- last modified by
-
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:
-
isDeleted
boolean isDeleted()
Determine if the resource is now a tombstone.- Returns:
- Deleted status.
-
getContentPath
String getContentPath()
Returns the path to the content file the resource headers are associated with- Returns:
- path the content file
-
-