Class NullReindexJobService

  • All Implemented Interfaces:
    com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>, ReindexJobService<ReindexJob>

    public class NullReindexJobService
    extends Object
    implements ReindexJobService<ReindexJob>
    Null implementation for ReindexJob tracking if no implementation that supports persistence is defined. Returns a single "null" instance for each call.
    • Constructor Detail

      • NullReindexJobService

        public NullReindexJobService()
    • Method Detail

      • readByActiveStatus

        public org.springframework.data.domain.Page<ReindexJob> readByActiveStatus​(boolean isActive,
                                                                                   org.springframework.data.domain.Pageable pageable,
                                                                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Description copied from interface: ReindexJobService
        Returns either active or inactive ReindexJobs. Active jobs are any jobs in the IN_PROGRESS state, while inactive jobs may be in either SUCCESS or FAILED states.
        Specified by:
        readByActiveStatus in interface ReindexJobService<ReindexJob>
        Parameters:
        isActive - The active state of the reindex job
        pageable - The page
        context - The context
        Returns:
        A page of reindex jobs that are active or inactive.
      • readAllByNameContaining

        public org.springframework.data.domain.Page<ReindexJob> readAllByNameContaining​(String label,
                                                                                        cz.jirutka.rsql.parser.ast.Node filters,
                                                                                        org.springframework.data.domain.Pageable page,
                                                                                        com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Description copied from interface: ReindexJobService
        Retrieves a paged list of reindex jobs filtered by the name
        Specified by:
        readAllByNameContaining in interface ReindexJobService<ReindexJob>
        Parameters:
        label - 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.
      • readById

        public ReindexJob readById​(String id)
        Specified by:
        readById in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • readAll

        public org.springframework.data.domain.Page<ReindexJob> readAll​(org.springframework.data.domain.Pageable pageable)
        Specified by:
        readAll in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • readAllByIds

        public List<ReindexJob> readAllByIds​(Iterable<String> ids)
        Specified by:
        readAllByIds in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • readAll

        public List<ReindexJob> readAll()
        Specified by:
        readAll in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • readAll

        public List<ReindexJob> readAll​(org.springframework.data.domain.Sort sort)
        Specified by:
        readAll in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • update

        public ReindexJob update​(String id,
                                 ReindexJob businessInstance)
        Specified by:
        update in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • updateAll

        public List<ReindexJob> updateAll​(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> updates)
        Specified by:
        updateAll in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • updateAllAllowingPartialSuccess

        public com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<ReindexJob> updateAllAllowingPartialSuccess​(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> updates)
        Specified by:
        updateAllAllowingPartialSuccess in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • replace

        public ReindexJob replace​(String id,
                                  ReindexJob businessInstance)
        Specified by:
        replace in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • replaceAll

        public List<ReindexJob> replaceAll​(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> replacements)
        Specified by:
        replaceAll in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • replaceAllAllowingPartialSuccess

        public com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<ReindexJob> replaceAllAllowingPartialSuccess​(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> replacements)
        Specified by:
        replaceAllAllowingPartialSuccess in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • create

        public <D,​R extends org.springframework.data.repository.CrudRepository<D,​String> & com.broadleafcommerce.common.extension.DomainTypeAware> ReindexJob create​(ReindexJob businessInstance)
        Specified by:
        create in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • createAll

        public <D,​R extends org.springframework.data.repository.CrudRepository<D,​String> & com.broadleafcommerce.common.extension.DomainTypeAware> List<ReindexJob> createAll​(List<ReindexJob> businessInstances)
        Specified by:
        createAll in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • createAllAllowingPartialSuccess

        public <D,​R extends org.springframework.data.repository.CrudRepository<D,​String> & com.broadleafcommerce.common.extension.DomainTypeAware> com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<ReindexJob> createAllAllowingPartialSuccess​(List<ReindexJob> businessInstances)
        Specified by:
        createAllAllowingPartialSuccess in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
      • delete

        public void delete​(String id)
        Specified by:
        delete in interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>