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>
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, ENABLE_PARTIAL_INDEX_WITH_FILTERS_KEY, END_DATE_KEY, NAME_KEY, START_DATE_KEY, TENANT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<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) voidreadAll()org.springframework.data.domain.Page<ReindexJob>readAll(org.springframework.data.domain.Pageable pageable) readAll(org.springframework.data.domain.Sort sort) 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.replace(String id, ReindexJob businessInstance) 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) update(String id, ReindexJob businessInstance) 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)
-
Constructor Details
-
NullReindexJobService
public NullReindexJobService()
-
-
Method Details
-
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
- 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
- Specified by:
readAllByIdsin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
- Specified by:
readAllin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
- Specified by:
readAllin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
update
- 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
- 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, ReindexJob createString> & com.broadleafcommerce.common.extension.DomainTypeAware> (ReindexJob businessInstance) - Specified by:
createin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
createAll
public <D,R extends org.springframework.data.repository.CrudRepository<D, List<ReindexJob> createAllString> & com.broadleafcommerce.common.extension.DomainTypeAware> (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, com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<ReindexJob> createAllAllowingPartialSuccessString> & com.broadleafcommerce.common.extension.DomainTypeAware> (List<ReindexJob> businessInstances) - Specified by:
createAllAllowingPartialSuccessin interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
delete
- Specified by:
deletein interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-