Package org.fcrepo.kernel.impl.models
Class TombstoneImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.models.FedoraResourceImpl
-
- org.fcrepo.kernel.impl.models.TombstoneImpl
-
- All Implemented Interfaces:
FedoraResource
,Tombstone
public class TombstoneImpl extends FedoraResourceImpl implements Tombstone
Tombstone class- Author:
- whikloj
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
fedoraId, resourceFactory, transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TombstoneImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, FedoraResource original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FedoraResource
getDeletedObject()
Return the object this tombstone is for.FedoraId
getFedoraId()
Get the FedoraId for this resource.List<URI>
getSystemTypes(boolean forRdf)
Get only the system defined types from their RDF.List<URI>
getUserTypes()
Get only the user provided types from their RDF.-
Methods inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
findMementoByDatetime, getAcl, getArchivalGroupId, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescribedResource, getDescription, getEtagValue, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getSession, getStateToken, getTimeMap, getTriples, getTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource, resolveSystemTypes, setArchivalGroupId, setCreatedBy, setCreatedDate, setEtag, setInteractionModel, setIsArchivalGroup, setIsMemento, setLastModifiedBy, setLastModifiedDate, setMementoDatetime, setParentId, setStateToken, setTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.kernel.api.models.FedoraResource
findMementoByDatetime, getAcl, getArchivalGroupId, getChildren, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescribedResource, getDescription, getEtagValue, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getStateToken, getTimeMap, getTriples, getTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource
-
-
-
-
Constructor Detail
-
TombstoneImpl
protected TombstoneImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, FedoraResource original)
-
-
Method Detail
-
getDeletedObject
public FedoraResource getDeletedObject()
Description copied from interface:Tombstone
Return the object this tombstone is for.- Specified by:
getDeletedObject
in interfaceTombstone
- Returns:
- the original deleted resource.
-
getFedoraId
public FedoraId getFedoraId()
Description copied from interface:FedoraResource
Get the FedoraId for this resource.- Specified by:
getFedoraId
in interfaceFedoraResource
- Overrides:
getFedoraId
in classFedoraResourceImpl
- Returns:
- the FedoraId identifier.
-
getUserTypes
public List<URI> getUserTypes()
Description copied from interface:FedoraResource
Get only the user provided types from their RDF.- Specified by:
getUserTypes
in interfaceFedoraResource
- Overrides:
getUserTypes
in classFedoraResourceImpl
- Returns:
- a list of types from the user provided RDF.
-
getSystemTypes
public List<URI> getSystemTypes(boolean forRdf)
Description copied from interface:FedoraResource
Get only the system defined types from their RDF.- Specified by:
getSystemTypes
in interfaceFedoraResource
- Overrides:
getSystemTypes
in classFedoraResourceImpl
- Parameters:
forRdf
- whether we only want types for displaying in a RDF body.- Returns:
- a list of types from the user provided RDF.
-
-