Interface CustomerSegmentRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
,org.springframework.data.repository.Repository<D,
,String> com.broadleafcommerce.data.tracking.core.TrackableRepository<D>
,com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
- All Known Subinterfaces:
JpaCustomerSegmentRepository<D>
@NoRepositoryBean
public interface CustomerSegmentRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Handles persistence operations for
CustomerSegments
.- Author:
- Chris Schneider (cschneider), Nathan Moore (nathandmoore)
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByContextIdIn
(Collection<String> contextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds all the matchingCustomerSegments
by context id.findAllByCustomerSegmentTypeAndRuleEvaluationType
(String segmentType, String ruleType, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds all the matchingCustomerSegments
byCustomerSegment.getCustomerSegmentType()
andCustomerSegment.getRuleEvaluationType()
.Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository
archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAll
-
Method Details
-
findAllByCustomerSegmentTypeAndRuleEvaluationType
@Policy(operationTypes=READ) List<D> findAllByCustomerSegmentTypeAndRuleEvaluationType(String segmentType, String ruleType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds all the matchingCustomerSegments
byCustomerSegment.getCustomerSegmentType()
andCustomerSegment.getRuleEvaluationType()
.- Parameters:
segmentType
- The type of segment. SeeCustomerSegmentType
.ruleType
- The type of the match rule. SeeDefaultCustomerSegmentRuleEvaluationType
.context
- Additional sandbox and multitenant info.- Returns:
- The matching
CustomerSegments
.
-
findAllByContextIdIn
@Policy(operationTypes=READ) List<D> findAllByContextIdIn(Collection<String> contextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds all the matchingCustomerSegments
by context id.- Parameters:
contextIds
- Collection of ids.context
- Additional sandbox and multitenant info.- Returns:
- The matching
CustomerSegments
.
-