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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainedBy(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) voidvoidcommitTransaction(org.fcrepo.kernel.api.Transaction tx) containmentLastUpdated(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) getContainedBy(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) getContains(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) getContainsDeleted(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) 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 Details
-
RESOURCES_TABLE
- See Also:
-
FEDORA_ID_COLUMN
- See Also:
-
-
Constructor Details
-
ContainmentIndexImpl
public ContainmentIndexImpl()
-
-
Method Details
-
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
- 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
- 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
- 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
Get the data source backing this containment index- Returns:
- data source
-
setDataSource
Set the data source backing this containment index- Parameters:
dataSource- data source
-