Class 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
    • Method Detail

      • getContains

        public Stream<StringgetContains​(@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<StringgetContainsDeleted​(@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
      • 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

        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