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) void
readAll()
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:ReindexJobService
Returns either active or inactiveReindexJobs
. Active jobs are any jobs in theIN_PROGRESS
state, while inactive jobs may be in eitherSUCCESS
orFAILED
states.- Specified by:
readByActiveStatus
in 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:ReindexJobService
Retrieves a paged list of reindex jobs filtered by the name- Specified by:
readAllByNameContaining
in interfaceReindexJobService<ReindexJob>
- Parameters:
label
- The name of the job that is being searched forfilters
- Additional filters to apply in the query. Should beEmptyNode
if 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:
readById
in 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:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAllByIds
- Specified by:
readAllByIds
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
- Specified by:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
- Specified by:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
update
- Specified by:
update
in 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:
updateAll
in 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:
updateAllAllowingPartialSuccess
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
replace
- Specified by:
replace
in 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:
replaceAll
in 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:
replaceAllAllowingPartialSuccess
in 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:
create
in 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:
createAll
in 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:
createAllAllowingPartialSuccess
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
delete
- Specified by:
delete
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-