Interface ReindexJobService<P extends ReindexJob>
-
- Type Parameters:
P
- The business domain type
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<P>
- All Known Implementing Classes:
NullReindexJobService
public interface ReindexJobService<P extends ReindexJob> extends com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<P>
Service API forReindexJob
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHOR_KEY
Key for the author of a reindex job.static String
NAME_KEY
Key for the name of a reindex job.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<P>
readAllByNameContaining(String name, 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<P>
readByActiveStatus(boolean isActive, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Returns either active or inactiveReindexJobs
.-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByIds, readById, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess
-
-
-
-
Field Detail
-
AUTHOR_KEY
static final String AUTHOR_KEY
Key for the author of a reindex job.The default location for this is in the process state and may be retrieved with
ProcessStateHolder.getAdditionalProperty(String)
- See Also:
- Constant Field Values
-
NAME_KEY
static final String NAME_KEY
Key for the name of a reindex job.The default location for this is in the process state and may be retrieved with
ProcessStateHolder.getAdditionalProperty(String)
- See Also:
- Constant Field Values
-
-
Method Detail
-
readByActiveStatus
org.springframework.data.domain.Page<P> readByActiveStatus(boolean isActive, org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Returns either active or inactiveReindexJobs
. Active jobs are any jobs in theIN_PROGRESS
state, while inactive jobs may be in eitherSUCCESS
orFAILED
states.- 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
org.springframework.data.domain.Page<P> readAllByNameContaining(@Nullable String name, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Retrieves a paged list of reindex jobs filtered by the name- Parameters:
name
- 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.
-
-