Package org.fcrepo.storage.ocfl
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceHeaders.BuilderBuilder for creating/mutating ResourceHeaders
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceHeaders.Builderbuilder()static ResourceHeaders.Builderbuilder(ResourceHeaders original)booleanequals(Object o)StringgetArchivalGroupId()StringgetContentPath()longgetContentSize()Content size may be -1 when there is no content or the content's size is unknownStringgetCreatedBy()InstantgetCreatedDate()Collection<URI>getDigests()StringgetExternalHandling()StringgetExternalUrl()StringgetFilename()StringgetId()StringgetInteractionModel()StringgetLastModifiedBy()InstantgetLastModifiedDate()StringgetMimeType()StringgetParent()StringgetStateToken()inthashCode()booleanisArchivalGroup()booleanisDeleted()booleanisObjectRoot()StringtoString()
-
-
-
Method Detail
-
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
-
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
-
-