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 final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)
     
    void
    addContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child, Instant startTime, Instant endTime)
     
    void
     
    void
    commitTransaction(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.FedoraId
    getContainerIdByPath(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 index
    boolean
    hasResourcesStartingWith(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
     
    void
    purgeResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
     
    void
    removeContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)
     
    void
    removeResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
     
    void
     
    boolean
    resourceExists(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean includeDeleted)
     
    void
    rollbackTransaction(org.fcrepo.kernel.api.Transaction tx)
     
    void
    Set the data source backing this containment index

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getContains

      public Stream<String> getContains(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
      Specified by:
      getContains in interface org.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:
      getContainsDeleted in interface org.fcrepo.kernel.api.ContainmentIndex
    • getContainedBy

      public String getContainedBy(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
      Specified by:
      getContainedBy in interface org.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:
      addContainedBy in interface org.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:
      addContainedBy in interface org.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:
      removeContainedBy in interface org.fcrepo.kernel.api.ContainmentIndex
    • removeResource

      public void removeResource(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
      Specified by:
      removeResource in interface org.fcrepo.kernel.api.ContainmentIndex
    • purgeResource

      public void purgeResource(@Nonnull org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)
      Specified by:
      purgeResource in interface org.fcrepo.kernel.api.ContainmentIndex
    • commitTransaction

      public void commitTransaction(org.fcrepo.kernel.api.Transaction tx)
      Specified by:
      commitTransaction in interface org.fcrepo.kernel.api.ContainmentIndex
    • rollbackTransaction

      @Transactional(propagation=NOT_SUPPORTED) public void rollbackTransaction(org.fcrepo.kernel.api.Transaction tx)
      Specified by:
      rollbackTransaction in interface org.fcrepo.kernel.api.ContainmentIndex
    • clearAllTransactions

      public void clearAllTransactions()
      Specified by:
      clearAllTransactions in interface org.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:
      resourceExists in interface org.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:
      getContainerIdByPath in interface org.fcrepo.kernel.api.ContainmentIndex
    • reset

      public void reset()
      Specified by:
      reset in interface org.fcrepo.kernel.api.ContainmentIndex
    • hasResourcesStartingWith

      public boolean hasResourcesStartingWith(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
      Specified by:
      hasResourcesStartingWith in interface org.fcrepo.kernel.api.ContainmentIndex
    • containmentLastUpdated

      public Instant containmentLastUpdated(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
      Specified by:
      containmentLastUpdated in interface org.fcrepo.kernel.api.ContainmentIndex
    • 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