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)
void
delete(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
.ReindexJob
readById(String id)
ReindexJob
replace(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)
ReindexJob
update(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: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
public ReindexJob readById(String id)
- 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
public List<ReindexJob> readAllByIds(Iterable<String> ids)
- Specified by:
readAllByIds
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
public List<ReindexJob> readAll()
- Specified by:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
readAll
public List<ReindexJob> readAll(org.springframework.data.domain.Sort sort)
- Specified by:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
update
public ReindexJob update(String id, ReindexJob businessInstance)
- 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
public ReindexJob replace(String id, ReindexJob businessInstance)
- 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,String> & com.broadleafcommerce.common.extension.DomainTypeAware> ReindexJob create(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,String> & com.broadleafcommerce.common.extension.DomainTypeAware> List<ReindexJob> createAll(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,String> & com.broadleafcommerce.common.extension.DomainTypeAware> com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<ReindexJob> createAllAllowingPartialSuccess(List<ReindexJob> businessInstances)
- Specified by:
createAllAllowingPartialSuccess
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
delete
public void delete(String id)
- Specified by:
delete
in interfacecom.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<ReindexJob>
-
-