Package org.fcrepo.kernel.impl
Class ContainmentIndexImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.ContainmentIndexImpl
-
- All Implemented Interfaces:
org.fcrepo.kernel.api.ContainmentIndex
@Component("containmentIndexImpl") public class ContainmentIndexImpl extends Object implements org.fcrepo.kernel.api.ContainmentIndex- Since:
- 6.0.0
- Author:
- peichman, whikloj
-
-
Field Summary
Fields Modifier and Type Field Description static StringFEDORA_ID_COLUMNstatic StringRESOURCES_TABLE
-
Constructor Summary
Constructors Constructor Description ContainmentIndexImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)voidaddContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child, Instant startTime, Instant endTime)voidclearAllTransactions()voidcommitTransaction(org.fcrepo.kernel.api.Transaction tx)InstantcontainmentLastUpdated(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)StringgetContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)org.fcrepo.kernel.api.identifiers.FedoraIdgetContainerIdByPath(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean checkDeleted)Stream<String>getContains(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)Stream<String>getContainsDeleted(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)DataSourcegetDataSource()Get the data source backing this containment indexbooleanhasResourcesStartingWith(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)voidpurgeResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)voidremoveContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)voidremoveResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)voidreset()booleanresourceExists(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean includeDeleted)voidrollbackTransaction(org.fcrepo.kernel.api.Transaction tx)voidsetDataSource(DataSource dataSource)Set the data source backing this containment index
-
-
-
Field Detail
-
RESOURCES_TABLE
public static final String RESOURCES_TABLE
- See Also:
- Constant Field Values
-
FEDORA_ID_COLUMN
public static final String FEDORA_ID_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContainmentIndexImpl
public ContainmentIndexImpl()
-
-
Method Detail
-
getContains
public Stream<String> getContains(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
getContainsin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getContainsDeleted
public Stream<String> getContainsDeleted(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
getContainsDeletedin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getContainedBy
public String getContainedBy(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
- Specified by:
getContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
addContainedBy
public void addContainedBy(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)
- Specified by:
addContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
addContainedBy
public void addContainedBy(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child, Instant startTime, Instant endTime)
- Specified by:
addContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
removeContainedBy
public void removeContainedBy(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)
- Specified by:
removeContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
removeResource
public void removeResource(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
- Specified by:
removeResourcein interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
purgeResource
public void purgeResource(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
- Specified by:
purgeResourcein interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
commitTransaction
public void commitTransaction(org.fcrepo.kernel.api.Transaction tx)
- Specified by:
commitTransactionin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
rollbackTransaction
@Transactional(propagation=NOT_SUPPORTED) public void rollbackTransaction(org.fcrepo.kernel.api.Transaction tx)
- Specified by:
rollbackTransactionin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
clearAllTransactions
public void clearAllTransactions()
- Specified by:
clearAllTransactionsin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
resourceExists
public boolean resourceExists(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean includeDeleted)
- Specified by:
resourceExistsin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getContainerIdByPath
public org.fcrepo.kernel.api.identifiers.FedoraId getContainerIdByPath(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean checkDeleted)
- Specified by:
getContainerIdByPathin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
reset
public void reset()
- Specified by:
resetin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
hasResourcesStartingWith
public boolean hasResourcesStartingWith(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
hasResourcesStartingWithin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
containmentLastUpdated
public Instant containmentLastUpdated(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
containmentLastUpdatedin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getDataSource
public DataSource getDataSource()
Get the data source backing this containment index- Returns:
- data source
-
setDataSource
public void setDataSource(DataSource dataSource)
Set the data source backing this containment index- Parameters:
dataSource- data source
-
-