Class NullReindexJobService
- java.lang.Object
-
- com.broadleafcommerce.search.index.core.service.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.
-
-
Field Summary
-
Fields inherited from interface com.broadleafcommerce.search.index.core.service.ReindexJobService
AUTHOR_KEY, NAME_KEY
-
-
Constructor Summary
Constructors Constructor Description NullReindexJobService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <D,R extends org.springframework.data.repository.CrudRepository<D,String> & com.broadleafcommerce.common.extension.DomainTypeAware>
ReindexJobcreate(ReindexJob businessInstance)<D,R extends org.springframework.data.repository.CrudRepository<D,String> & com.broadleafcommerce.common.extension.DomainTypeAware>
List<ReindexJob>createAll(List<ReindexJob> businessInstances)<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)voiddelete(String id)List<ReindexJob>readAll()org.springframework.data.domain.Page<ReindexJob>readAll(org.springframework.data.domain.Pageable pageable)List<ReindexJob>readAll(org.springframework.data.domain.Sort sort)List<ReindexJob>readAllByIds(Iterable<String> ids)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)Retrieves a paged list of reindex jobs filtered by the nameorg.springframework.data.domain.Page<ReindexJob>readByActiveStatus(boolean isActive, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Returns either active or inactiveReindexJobs.ReindexJobreadById(String id)ReindexJobreplace(String id, ReindexJob businessInstance)List<ReindexJob>replaceAll(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> replacements)com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<ReindexJob>replaceAllAllowingPartialSuccess(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> replacements)ReindexJobupdate(String id, ReindexJob businessInstance)List<ReindexJob>updateAll(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> updates)com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<ReindexJob>updateAllAllowingPartialSuccess(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> updates)
-
-
-
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:ReindexJobServiceReturns either active or inactiveReindexJobs. Active jobs are any jobs in theIN_PROGRESSstate, while inactive jobs may be in eitherSUCCESSorFAILEDstates.- Specified by:
readByActiveStatusin interfaceReindexJobService<ReindexJob>- Parameters:
isActive- The active state of the reindex jobpageable- The pagecontext- 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:ReindexJobServiceRetrieves a paged list of reindex jobs filtered by the name- Specified by:
readAllByNameContainingin interfaceReindexJobService<ReindexJob>- Parameters:
label- The name of the job that is being searched forfilters- Additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.page- The page of results from the databasecontext- 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:
readByIdin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
public org.springframework.data.domain.Page<ReindexJob> readAll(org.springframework.data.domain.Pageable pageable)
- Specified by:
readAllin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAllByIds
public List<ReindexJob> readAllByIds(Iterable<String> ids)
- Specified by:
readAllByIdsin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
public List<ReindexJob> readAll()
- Specified by:
readAllin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
public List<ReindexJob> readAll(org.springframework.data.domain.Sort sort)
- Specified by:
readAllin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
update
public ReindexJob update(String id, ReindexJob businessInstance)
- Specified by:
updatein interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
updateAll
public List<ReindexJob> updateAll(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> updates)
- Specified by:
updateAllin interfacecom.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:
updateAllAllowingPartialSuccessin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
replace
public ReindexJob replace(String id, ReindexJob businessInstance)
- Specified by:
replacein interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
replaceAll
public List<ReindexJob> replaceAll(List<com.broadleafcommerce.data.tracking.core.service.Update<ReindexJob>> replacements)
- Specified by:
replaceAllin interfacecom.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:
replaceAllAllowingPartialSuccessin interfacecom.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:
createin interfacecom.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:
createAllin interfacecom.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:
createAllAllowingPartialSuccessin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
delete
public void delete(String id)
- Specified by:
deletein interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
-