Package org.fcrepo.storage.ocfl
Class ResourceHeaders
java.lang.Object
org.fcrepo.storage.ocfl.ResourceHeaders
Resource headers contain metadata about Fedora resources in Fedora 6.
This class is based on ResourceHeadersImpl in fcrepo-persistence-common.
- Author:
- bbpennel, pwinckles
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating/mutating ResourceHeaders -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceHeaders.Builderbuilder()static ResourceHeaders.Builderbuilder(ResourceHeaders original) booleanlongContent size may be -1 when there is no content or the content's size is unknowngetId()inthashCode()booleanbooleanbooleanprotected voidsetStorageRelativePath(String storageRelativePath) toString()
-
Method Details
-
builder
-
builder
-
getId
- Returns:
- the fedora id
-
getParent
- Returns:
- the parent fedora id
-
getArchivalGroupId
- Returns:
- the fedora id of the archival group resource that contains this resource, or null
-
getStateToken
- Returns:
- the stateToken
-
getInteractionModel
- Returns:
- the interactionModel
-
getMimeType
- Returns:
- the mimeType
-
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
- Returns:
- the digests
-
getExternalHandling
- Returns:
- the externalHandling
-
getCreatedDate
- Returns:
- the createdDate
-
getCreatedBy
- Returns:
- the createdBy
-
getLastModifiedDate
- Returns:
- the lastModifiedDate
-
getLastModifiedBy
- Returns:
- the lastModifiedBy
-
getMementoCreatedDate
- Returns:
- the timestamp when the memento was created
-
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
- Returns:
- the path to the associated content file
-
getHeadersVersion
- Returns:
- the version identifier of the headers file
-
getStorageRelativePath
- Returns:
- the path of the resource relative to the storage root
-
setStorageRelativePath
-
toString
-
equals
-
hashCode
public int hashCode()
-