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 SummaryModifier 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- the- CustomerSegmentid
- filters- additional filters to apply in the query
- contextInfo- 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- the- CustomerSegmentid
- customerIds- the set of- Customerids
- contextInfo- 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 ID
- segmentMatchRule- The segment's rule used to identify members
- pageable- the requested page of results
- contextInfo- 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.
 
- 
removeAllByIdsvoid removeAllByIds(Collection<String> segmentMemberIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) RemovesSegmentMembersby id- Parameters:
- segmentMemberIds- A collection of- SegmentMemberids used to identify the records to be removed
- contextInfo- 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 email
- customerId- Customer's ID
- contextInfo- Request context information around sandbox and multitenant state
- Returns:
- the segment members for the specified customer segment id and customer email addresses
 
 
-