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 Type
    Method
    Description
    findAllByCustomerEmailOrCustomerId(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.
    void
    removeAllByIds(Collection<String> segmentMemberIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Removes SegmentMembers by id
    save(D entity, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    saveAll(Iterable<D> entities, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
  • Method Details

    • save

      @Policy(operationTypes={UPDATE,DELETE,CREATE}, param=0) @NonNull D save(@NonNull D entity, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • saveAll

      @Policy(operationTypes={UPDATE,DELETE,CREATE}, param=0) @NonNull Iterable<D> saveAll(@NonNull Iterable<D> entities, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • 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 CustomerSegment id
      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 CustomerSegment id
      customerIds - the set of Customer ids
      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.
    • removeAllByIds

      void removeAllByIds(Collection<String> segmentMemberIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Removes SegmentMembers by id
      Parameters:
      segmentMemberIds - A collection of SegmentMember ids 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