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
ReindexJob
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Key for the author of a reindex job.static final String
Key for toggling a partial reindex based on applicable filters.static final String
Key for the end date of a reindex job.static final String
Key for the name of a reindex job.static final String
Key for the start date of a reindex job.static final String
Key for the tenant of a reindex job. -
Method Summary
Modifier and TypeMethodDescriptionorg.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 Details
-
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:
-
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:
-
ENABLE_PARTIAL_INDEX_WITH_FILTERS_KEY
Key for toggling a partial reindex based on applicable filters.The default location for this is in the process state and may be retrieved with
ProcessStateHolder.getAdditionalProperty(String)
- See Also:
-
START_DATE_KEY
Key for the start date of a reindex job. This can be utilized to determine a minimum time range, filtering items to be indexed.The default location for this is in the process state and may be retrieved with
ProcessStateHolder.getAdditionalProperty(String)
- See Also:
-
END_DATE_KEY
Key for the end date of a reindex job. This can be utilized to determine a maximum time range, filtering items to be indexed.The default location for this is in the process state and may be retrieved with
ProcessStateHolder.getAdditionalProperty(String)
- See Also:
-
TENANT_KEY
Key for the tenant of a reindex job. This can be utilized to determine a tenant ID, filtering items to be indexed.The default location for this is in the process state and may be retrieved with
ProcessStateHolder.getAdditionalProperty(String)
- See Also:
-
-
Method Details
-
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.
-