Interface SubscriptionRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedSubscriptionRepository<D>,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:
JpaSubscriptionRepository<D>
@NoRepositoryBean
public interface SubscriptionRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, CustomizedSubscriptionRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByNextSubscriptionIn(List<String> nextSubscriptionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.findAllByUserRef(String userRef) Deprecated.findAllByUserRefAndSubscriptionStatus(String userRef, String subscriptionStatus) Deprecated.findAllByUserRefAndSubscriptionStatusIn(String userRef, String[] statuses) Deprecated.findAllByUserRefTypeAndUserRef(String userRefType, String userRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<D>findAllByUserRefTypeAndUserRef(String userRefType, String userRef, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findAllByUserRefTypeAndUserRefAndSubscriptionStatus(String userRefType, String userRef, String subscriptionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findAllByUserRefTypeAndUserRefAndSubscriptionStatusIn(String userRefType, String userRef, List<String> statuses, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all the P entities by userRefType, userRef, and statusesfindAllPriorSubscriptionByNextSubscriptionId(List<String> subscriptionIds) Deprecated.findAllPriorSubscriptionsByNextSubscriptionIn(List<String> subscriptionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findByContextIdAndUserRefTypeAndUserRef(String subscriptionId, String userRefType, String userRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a user-owned subscription with items for a given idfindByNextSubscriptionIn(List<String> nextSubscriptionIds) Deprecated.UsefindAllByNextSubscriptionIn(List, ContextInfo)insteadfindBySubscriptionSourceRef(@NotBlank String subscriptionSourceRef) Deprecated.UsefindBySubscriptionSourceRef(String, ContextInfo)insteadfindBySubscriptionSourceRef(String subscriptionSourceRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find theJpaSubscriptionentity by Subscription Source RefMethods inherited from interface com.broadleafcommerce.subscription.repository.CustomizedSubscriptionRepository
countAllBySubscriptionStatus, countAllBySubscriptionStatus, findAllByPriceData, findAllBySubscriptionStatus, findAllBySubscriptionStatusAndBillingOperationStatus, findAllBySubscriptionStatusInAndNextBillDateBeforeOrNextStatusChangeDateBeforeOrEndOfTermDateBefore, findAllBySubscriptionStatusInAndNextBillDateBeforeOrNullAndNextStatusChangeDateBefore, findAllByUserRefAndSubscriptionItemsItemRefIn, findAllByUserRefTypeAndUserRefAndActive, findAllByUserRefTypeAndUserRefAndSubscriptionItemsItemRefIn, findByMatchingSubscriptionSource, findContextIdsBySubscriptionStatus, listSubscriptionsMethods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods 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, setTrackableBehaviorUtilMethods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAll
-
Method Details
-
findAllByUserRef
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllByUserRef(String userRef) Deprecated. -
findAllByUserRefTypeAndUserRef
-
findAllByUserRefTypeAndUserRef
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByUserRefTypeAndUserRef(String userRefType, String userRef, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
findByContextIdAndUserRefTypeAndUserRef
@Policy(operationTypes=READ) Optional<D> findByContextIdAndUserRefTypeAndUserRef(String subscriptionId, String userRefType, String userRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a user-owned subscription with items for a given id- Parameters:
subscriptionId- The id of the subscriptionuserRefType- type of the owning useruserRef- id of the owning usercontextInfo- context information around multi-tenant state- Returns:
- a user-owned subscription with items for a given id
-
findAllByUserRefAndSubscriptionStatus
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllByUserRefAndSubscriptionStatus(String userRef, String subscriptionStatus) Deprecated. -
findAllByUserRefTypeAndUserRefAndSubscriptionStatus
-
findAllPriorSubscriptionByNextSubscriptionId
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllPriorSubscriptionByNextSubscriptionId(List<String> subscriptionIds) Deprecated. -
findAllPriorSubscriptionsByNextSubscriptionIn
-
findByNextSubscriptionIn
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findByNextSubscriptionIn(List<String> nextSubscriptionIds) Deprecated.UsefindAllByNextSubscriptionIn(List, ContextInfo)instead -
findAllByNextSubscriptionIn
-
findAllBySubscriptionIdIn
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllBySubscriptionIdIn(List<String> ids) Deprecated.UseTrackableRepository.findAllByContextId(Iterable, ContextInfo)insteadFind all the P entities by their IDs -
findAllByUserRefAndSubscriptionStatusIn
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllByUserRefAndSubscriptionStatusIn(String userRef, String[] statuses) Deprecated.Find all the P entities by UserId and statuses -
findAllByUserRefTypeAndUserRefAndSubscriptionStatusIn
@Policy(operationTypes=READ) List<D> findAllByUserRefTypeAndUserRefAndSubscriptionStatusIn(String userRefType, String userRef, List<String> statuses, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all the P entities by userRefType, userRef, and statuses -
findBySubscriptionSourceRef
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default Optional<D> findBySubscriptionSourceRef(@NotBlank @NotBlank String subscriptionSourceRef) Deprecated.UsefindBySubscriptionSourceRef(String, ContextInfo)insteadFind theJpaSubscriptionentity by Subscription Source Ref -
findBySubscriptionSourceRef
@Policy(operationTypes=READ) Optional<D> findBySubscriptionSourceRef(String subscriptionSourceRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find theJpaSubscriptionentity by Subscription Source Ref
-
TrackableRepository.findAllByContextId(Iterable, ContextInfo)instead