Package org.fcrepo.kernel.impl.models
Class FedoraResourceImpl
java.lang.Object
org.fcrepo.kernel.impl.models.FedoraResourceImpl
- All Implemented Interfaces:
org.fcrepo.kernel.api.models.FedoraResource
- Direct Known Subclasses:
BinaryImpl,ContainerImpl,NonRdfSourceDescriptionImpl,TimeMapImpl,TombstoneImpl
public class FedoraResourceImpl
extends Object
implements org.fcrepo.kernel.api.models.FedoraResource
Implementation of a Fedora resource, containing functionality common to the more concrete resource implementations.
- Author:
- bbpennel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.fcrepo.kernel.api.identifiers.FedoraIdprotected final org.fcrepo.kernel.api.models.ResourceFactoryprotected final org.fcrepo.kernel.api.Transaction -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFedoraResourceImpl(org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager, org.fcrepo.kernel.api.models.ResourceFactory resourceFactory, org.fcrepo.kernel.api.cache.UserTypesCache userTypesCache) -
Method Summary
Modifier and TypeMethodDescriptionorg.fcrepo.kernel.api.models.FedoraResourcefindMementoByDatetime(Instant mementoDatetime) org.fcrepo.kernel.api.models.FedoraResourcegetAcl()Optional<org.fcrepo.kernel.api.identifiers.FedoraId> Stream<org.fcrepo.kernel.api.models.FedoraResource> getChildren(Boolean recursive) org.fcrepo.kernel.api.models.FedoraResourceorg.fcrepo.kernel.api.models.FedoraResourceorg.fcrepo.kernel.api.models.FedoraResourceorg.fcrepo.kernel.api.identifiers.FedoraIdgetId()org.fcrepo.kernel.api.models.FedoraResourceorg.fcrepo.kernel.api.models.FedoraResourceorg.fcrepo.kernel.api.identifiers.FedoraIdprotected org.fcrepo.persistence.api.PersistentStorageSessiongetSystemTypes(boolean forRdf) org.fcrepo.kernel.api.models.TimeMaporg.fcrepo.kernel.api.RdfStreamgetTypes()booleanhasProperty(String relPath) booleanbooleanisAcl()booleanbooleanresolveSystemTypes(boolean forRdf) voidsetArchivalGroupId(org.fcrepo.kernel.api.identifiers.FedoraId archivalGroupId) protected voidsetCreatedBy(String createdBy) protected voidsetCreatedDate(Instant createdDate) protected voidvoidsetInteractionModel(String interactionModel) voidsetIsArchivalGroup(boolean isArchivalGroup) voidsetIsMemento(boolean isMemento) protected voidsetLastModifiedBy(String lastModifiedBy) protected voidsetLastModifiedDate(Instant lastModifiedDate) protected voidsetMementoDatetime(Instant mementoDatetime) protected voidsetParentId(org.fcrepo.kernel.api.identifiers.FedoraId parentId) protected voidsetStateToken(String stateToken) protected voidsetStorageRelativePath(String storageRelativePath) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.kernel.api.models.FedoraResource
getChildren
-
Field Details
-
resourceFactory
-
fedoraId
-
transaction
-
-
Constructor Details
-
FedoraResourceImpl
protected FedoraResourceImpl(org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager, org.fcrepo.kernel.api.models.ResourceFactory resourceFactory, org.fcrepo.kernel.api.cache.UserTypesCache userTypesCache)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getChildren
- Specified by:
getChildrenin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getContainer
- Specified by:
getContainerin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getOriginalResource
- Specified by:
getOriginalResourcein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getTimeMap
- Specified by:
getTimeMapin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getMementoDatetime
- Specified by:
getMementoDatetimein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
isMemento
- Specified by:
isMementoin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
isAcl
- Specified by:
isAclin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
findMementoByDatetime
- Specified by:
findMementoByDatetimein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getAcl
- Specified by:
getAclin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
hasProperty
- Specified by:
hasPropertyin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getCreatedDate
- Specified by:
getCreatedDatein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getLastModifiedDate
- Specified by:
getLastModifiedDatein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
hasType
- Specified by:
hasTypein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getTypes
- Specified by:
getTypesin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getSystemTypes
- Specified by:
getSystemTypesin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getUserTypes
- Specified by:
getUserTypesin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getTriples
- Specified by:
getTriplesin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getEtagValue
- Specified by:
getEtagValuein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getStateToken
- Specified by:
getStateTokenin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
isOriginalResource
- Specified by:
isOriginalResourcein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getDescription
- Specified by:
getDescriptionin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getDescribedResource
- Specified by:
getDescribedResourcein interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getSession
-
getParent
public org.fcrepo.kernel.api.models.FedoraResource getParent() throws org.fcrepo.kernel.api.exception.PathNotFoundException- Specified by:
getParentin interfaceorg.fcrepo.kernel.api.models.FedoraResource- Throws:
org.fcrepo.kernel.api.exception.PathNotFoundException
-
getParentId
- Specified by:
getParentIdin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getCreatedBy
- Specified by:
getCreatedByin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getFedoraId
- Specified by:
getFedoraIdin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getInteractionModel
- Specified by:
getInteractionModelin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
getStorageRelativePath
- Specified by:
getStorageRelativePathin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
setParentId
- Parameters:
parentId- the parentId to set
-
setTypes
- Parameters:
types- the types to set
-
setLastModifiedDate
- Parameters:
lastModifiedDate- the lastModifiedDate to set
-
setLastModifiedBy
- Parameters:
lastModifiedBy- the lastModifiedBy to set
-
setCreatedDate
- Parameters:
createdDate- the createdDate to set
-
setCreatedBy
- Parameters:
createdBy- the createdBy to set
-
setMementoDatetime
- Parameters:
mementoDatetime- the mementoDatetime to set
-
setStateToken
- Parameters:
stateToken- the stateToken to set
-
setEtag
- Parameters:
etag- the etag to set
-
setIsMemento
- Parameters:
isMemento- indicates if the resource is a memento
-
setIsArchivalGroup
- Parameters:
isArchivalGroup- true if the resource is an AG
-
setInteractionModel
- Parameters:
interactionModel- the resource's interaction model
-
resolveSystemTypes
-
setArchivalGroupId
- Parameters:
archivalGroupId- the FedoraId of the Archival Group for this resource
-
getArchivalGroupId
- Specified by:
getArchivalGroupIdin interfaceorg.fcrepo.kernel.api.models.FedoraResource
-
setStorageRelativePath
- Parameters:
storageRelativePath- the path to the content
-