Interface CustomizedSegmentMemberRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Known Subinterfaces:
JpaSegmentMemberRepository<D>,SegmentMemberRepository<D>
- All Known Implementing Classes:
JpaCustomizedSegmentMemberRepository
public interface CustomizedSegmentMemberRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByCustomerEmailOrCustomerId(String customerEmail, String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds the segment members for the specified customer segment id and customer email addresses.findAllBySegmentIdAndCustomerIdIn(String segmentId, Set<String> customerIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the segment members for the specified customer segment id and customer ids.org.springframework.data.domain.Page<D>findAllBySegmentIdAndNotMatchingSegmentRule(String segmentId, String segmentMatchRule, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the segment members for the specified customer segment id that no longer match the segment's rule.readAllBySegmentId(String segmentId, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the segment members for the specified customer segment id matching the given filters.voidremoveAllByIds(Collection<String> segmentMemberIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) RemovesSegmentMembersby idsaveAll(Iterable<D> entities, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Method Details
-
save
-
saveAll
-
readAllBySegmentId
@Policy(operationTypes=READ) Stream<D> readAllBySegmentId(String segmentId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the segment members for the specified customer segment id matching the given filters.- Parameters:
segmentId- theCustomerSegmentidfilters- additional filters to apply in the querycontextInfo- Request context information around sandbox and multitenant state- Returns:
- the segment members for the specified customer segment id matching the given filters
-
findAllBySegmentIdAndCustomerIdIn
@Policy(operationTypes=READ) Stream<D> findAllBySegmentIdAndCustomerIdIn(String segmentId, Set<String> customerIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the segment members for the specified customer segment id and customer ids.- Parameters:
segmentId- theCustomerSegmentidcustomerIds- the set ofCustomeridscontextInfo- Request context information around sandbox and multitenant state- Returns:
- the segment members for the specified customer segment id and customer ids
-
findAllBySegmentIdAndNotMatchingSegmentRule
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllBySegmentIdAndNotMatchingSegmentRule(String segmentId, String segmentMatchRule, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the segment members for the specified customer segment id that no longer match the segment's rule.- Parameters:
segmentId- The segment IDsegmentMatchRule- The segment's rule used to identify memberspageable- the requested page of resultscontextInfo- Context information surrounding sandboxing and multitenant state- Returns:
- Reads the segment members for the specified customer segment id that no longer match the segment's rule.
-
removeAllByIds
void removeAllByIds(Collection<String> segmentMemberIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) RemovesSegmentMembersby id- Parameters:
segmentMemberIds- A collection ofSegmentMemberids used to identify the records to be removedcontextInfo- Context information surrounding sandboxing and multitenant state
-
findAllByCustomerEmailOrCustomerId
@Policy(operationTypes=READ) List<D> findAllByCustomerEmailOrCustomerId(String customerEmail, String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds the segment members for the specified customer segment id and customer email addresses.- Parameters:
customerEmail- Customer's emailcustomerId- Customer's IDcontextInfo- Request context information around sandbox and multitenant state- Returns:
- the segment members for the specified customer segment id and customer email addresses
-