Interface ReindexJobRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<D,​String>, com.broadleafcommerce.common.extension.DomainTypeAware, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>, org.springframework.data.repository.PagingAndSortingRepository<D,​String>, org.springframework.data.repository.Repository<D,​String>

    @NoRepositoryBean
    public interface ReindexJobRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
    extends org.springframework.data.repository.PagingAndSortingRepository<D,​String>, com.broadleafcommerce.common.extension.DomainTypeAware, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.springframework.data.domain.Page<D> findByNameContainingIgnoreCase​(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Retrieves a paged list of reindex jobs filtered by the name
      org.springframework.data.domain.Page<D> readByStatus​(ReindexStatus status, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns Reindex jobs whose status equals the value.
      org.springframework.data.domain.Page<D> readByStatusNot​(ReindexStatus status, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns Reindex jobs whose status does not equal the value of status.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
      • Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware

        getDomainType
      • Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor

        exists, findAll, findAll, findAll, findAll
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll, findAll
    • Method Detail

      • readByStatus

        org.springframework.data.domain.Page<D> readByStatus​(ReindexStatus status,
                                                             org.springframework.data.domain.Pageable pageable,
                                                             @Nullable
                                                             com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Returns Reindex jobs whose status equals the value.
        Parameters:
        status - The status of the job
        pageable - The page
        contextInfo - The Context
        Returns:
        Page of reindex jobs matching the status
        See Also:
        ReindexStatus
      • readByStatusNot

        org.springframework.data.domain.Page<D> readByStatusNot​(ReindexStatus status,
                                                                org.springframework.data.domain.Pageable pageable,
                                                                @Nullable
                                                                com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Returns Reindex jobs whose status does not equal the value of status.

        Parameters:
        status - The status which the job should not have.
        pageable - The page
        contextInfo - The Context
        Returns:
        Page of reindex jobs not matching the status.
        See Also:
        ReindexStatus
      • findByNameContainingIgnoreCase

        @Policy(operationTypes=READ)
        org.springframework.data.domain.Page<D> findByNameContainingIgnoreCase​(String name,
                                                                               cz.jirutka.rsql.parser.ast.Node filters,
                                                                               org.springframework.data.domain.Pageable page,
                                                                               com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Retrieves a paged list of reindex jobs filtered by the name
        Parameters:
        name - The name of the job that is being searched for
        filters - Additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
        page - The page of results from the database
        context - The context information around sandbox and multi-tenant state
        Returns:
        Page of reindex jobs matching the name and filters.
        See Also:
        ReindexStatus