Package org.fcrepo.persistence.ocfl.impl
Class ResourceHeadersAdapter
java.lang.Object
org.fcrepo.persistence.ocfl.impl.ResourceHeadersAdapter
- All Implemented Interfaces:
org.fcrepo.kernel.api.models.ResourceHeaders
public class ResourceHeadersAdapter
extends Object
implements org.fcrepo.kernel.api.models.ResourceHeaders
Adapter for converting between different ResourceHeader implementations.
- Author:
- pwinckles
-
Field Summary
Fields inherited from interface org.fcrepo.kernel.api.models.ResourceHeaders
V1_0 -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorResourceHeadersAdapter(org.fcrepo.persistence.common.ResourceHeadersImpl kernelHeaders) ResourceHeadersAdapter(org.fcrepo.storage.ocfl.ResourceHeaders storageHeaders) -
Method Summary
Modifier and TypeMethodDescriptionorg.fcrepo.persistence.common.ResourceHeadersImplorg.fcrepo.storage.ocfl.ResourceHeadersorg.fcrepo.kernel.api.identifiers.FedoraIdlongorg.fcrepo.kernel.api.identifiers.FedoraIdgetId()org.fcrepo.kernel.api.identifiers.FedoraIdbooleanbooleanbooleanvoidsetArchivalGroup(boolean flag) voidsetArchivalGroupId(org.fcrepo.kernel.api.identifiers.FedoraId archivalGroupId) voidsetContentPath(String contentPath) Sets the path to the content file associated with the header filevoidsetContentSize(Long contentSize) voidsetCreatedBy(String createdBy) voidsetCreatedDate(Instant createdDate) voidsetDeleted(boolean deleted) Set deleted status flag.voidsetDigests(Collection<URI> digests) voidsetExternalHandling(String externalHandling) voidsetExternalUrl(String externalUrl) voidsetFilename(String filename) voidsetHeadersVersion(String headersVersion) voidsetId(org.fcrepo.kernel.api.identifiers.FedoraId id) voidsetInteractionModel(String interactionModel) voidsetLastModifiedBy(String lastModifiedBy) voidsetLastModifiedDate(Instant lastModifiedDate) voidsetMementoCreatedDate(Instant mementoCreatedDate) voidsetMimeType(String mimeType) voidsetObjectRoot(boolean flag) voidsetParent(org.fcrepo.kernel.api.identifiers.FedoraId parent) voidsetStateToken(String stateToken)
-
Constructor Details
-
ResourceHeadersAdapter
public ResourceHeadersAdapter()Default constructor -
ResourceHeadersAdapter
- Parameters:
storageHeaders- storage headers to adapt
-
ResourceHeadersAdapter
- Parameters:
kernelHeaders- kernel headers to adapt
-
-
Method Details
-
asStorageHeaders
- Returns:
- the headers as storage headers
-
asKernelHeaders
- Returns:
- the headers as kernel headers
-
getId
- Specified by:
getIdin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setId
- Parameters:
id- the fedora id to set
-
getParent
- Specified by:
getParentin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setParent
- Parameters:
parent- the parent to set
-
getArchivalGroupId
- Specified by:
getArchivalGroupIdin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setArchivalGroupId
- Parameters:
archivalGroupId- the archivalGroupId to set
-
getStateToken
- Specified by:
getStateTokenin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setStateToken
- Parameters:
stateToken- the stateToken to set
-
getInteractionModel
- Specified by:
getInteractionModelin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setInteractionModel
- Parameters:
interactionModel- the interactionModel to set
-
getMimeType
- Specified by:
getMimeTypein interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setMimeType
- Parameters:
mimeType- the mimeType to set
-
getFilename
- Specified by:
getFilenamein interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setFilename
- Parameters:
filename- the filename to set
-
getContentSize
- Specified by:
getContentSizein interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setContentSize
- Parameters:
contentSize- the contentSize to set
-
getDigests
- Specified by:
getDigestsin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setDigests
- Parameters:
digests- the digests to set
-
getExternalHandling
- Specified by:
getExternalHandlingin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setExternalHandling
- Parameters:
externalHandling- the externalHandling to set
-
getCreatedDate
- Specified by:
getCreatedDatein interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setCreatedDate
- Parameters:
createdDate- the createdDate to set
-
getCreatedBy
- Specified by:
getCreatedByin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setCreatedBy
- Parameters:
createdBy- the createdBy to set
-
getLastModifiedDate
- Specified by:
getLastModifiedDatein interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setLastModifiedDate
- Parameters:
lastModifiedDate- the lastModifiedDate to set
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setLastModifiedBy
- Parameters:
lastModifiedBy- the lastModifiedBy to set
-
getMementoCreatedDate
- Specified by:
getMementoCreatedDatein interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setMementoCreatedDate
- Parameters:
mementoCreatedDate- the mementoCreatedDate to set
-
setExternalUrl
- Parameters:
externalUrl- the externalUrl to set
-
getExternalUrl
- Specified by:
getExternalUrlin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setArchivalGroup
- Parameters:
flag- boolean flag
-
isArchivalGroup
- Specified by:
isArchivalGroupin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setObjectRoot
- Parameters:
flag- boolean flag
-
isObjectRoot
- Specified by:
isObjectRootin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setDeleted
Set deleted status flag.- Parameters:
deleted- true if deleted (a tombstone).
-
isDeleted
- Specified by:
isDeletedin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
getContentPath
- Specified by:
getContentPathin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setContentPath
Sets the path to the content file associated with the header file- Parameters:
contentPath- path to content file
-
getHeadersVersion
- Specified by:
getHeadersVersionin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-
setHeadersVersion
- Parameters:
headersVersion- the headers version to set
-
getStorageRelativePath
- Specified by:
getStorageRelativePathin interfaceorg.fcrepo.kernel.api.models.ResourceHeaders
-