Interface DataFeedProcessService<P extends DataFeedProcess>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultDataFeedProcessService
public interface DataFeedProcessService<P extends DataFeedProcess>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service API for
DataFeedProcess
. Supported by DataFeedProcessRepository
.-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<P>
readAllByName
(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads theDataFeedProcess
instances that matched the given name and filters.readByContextIdOpt
(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Similar toCrudEntityService.readByContextId(String, ContextInfo)
, but returns anOptional
instead of throwingEntityMissingException
when not found.readByProcessTypeAndEnabledAndApplication
(String processType, boolean isEnabled, String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allDataFeedProcess
instances matching the given criteria.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByName
org.springframework.data.domain.Page<P> readAllByName(@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) Reads theDataFeedProcess
instances that matched the given name and filters.- Parameters:
name
- the data feed process namefilters
- the RSQLNode
used to restrict resultpage
- the requested page of results from the databasecontext
- context information around multitenant state- Returns:
- the
DataFeedProcess
instances that matched the given name and filters
-
readByContextIdOpt
Optional<P> readByContextIdOpt(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Similar toCrudEntityService.readByContextId(String, ContextInfo)
, but returns anOptional
instead of throwingEntityMissingException
when not found.- Parameters:
id
- The context id for the entity. This is the id by which the business recognizes the item.context
- Context information used to discriminate the correct version of an entity by context id when multiple verions may be available across sandboxes, catalogs and applications.- Returns:
- an
Optional
containing the narrowed entity instance in the form of a business instance, elseOptional.empty()
-
readByProcessTypeAndEnabledAndApplication
List<P> readByProcessTypeAndEnabledAndApplication(String processType, boolean isEnabled, @Nullable String applicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allDataFeedProcess
instances matching the given criteria.- Parameters:
processType
- theDataFeedProcess.getProcessType()
to matchisEnabled
- the value ofDataFeedProcess.isEnabled()
to matchapplicationId
- (optional) if provided, results will be filtered to only those who match the givenDataFeedProcess.getApplicationId()
contextInfo
- context information around multitenant state- Returns:
- a list of found results
-