Interface CustomizedCustomerRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
- All Known Subinterfaces:
CustomerRepository<D>,JpaCustomerRepository<D>
- All Known Implementing Classes:
JpaCustomizedCustomerRepository
public interface CustomizedCustomerRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>Advanced functionality related toCustomer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>findAllDistinctContextIds(int page, cz.jirutka.rsql.parser.ast.Node filters)Retrieves a list of unique customer context IDs no larger than page.Stream<D>readCustomersPagingStream(cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Reads all customers matching the given filters.
-
-
-
Method Detail
-
findAllDistinctContextIds
@Policy(operationTypes=READ) List<String> findAllDistinctContextIds(int page, @NonNull cz.jirutka.rsql.parser.ast.Node filters)
Retrieves a list of unique customer context IDs no larger than page. It is expected that any appropriate offset is achieved through criteria designated infilters.- Parameters:
page- the requested amount of results from the database. -1 indicates no limit.filters- additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.- Returns:
- unique customer IDs
-
readCustomersPagingStream
Stream<D> readCustomersPagingStream(@Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reads all customers matching the given filters. In case filters are empty, all customers are returned.- Parameters:
filters- additional filters to apply in the querycontextInfo- Request context information around sandbox and multitenant state- Returns:
- the customers matching the given filters
-
-