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 Details

    • findAllByUserRef

      @Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllByUserRef(String userRef)
    • findAllByUserRefTypeAndUserRef

      @Policy(operationTypes=READ) List<D> findAllByUserRefTypeAndUserRef(String userRefType, String userRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • 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 subscription
      userRefType - type of the owning user
      userRef - id of the owning user
      contextInfo - 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)
    • findAllByUserRefTypeAndUserRefAndSubscriptionStatus

      @Policy(operationTypes=READ) List<D> findAllByUserRefTypeAndUserRefAndSubscriptionStatus(String userRefType, String userRef, String subscriptionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • findAllPriorSubscriptionByNextSubscriptionId

      @Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllPriorSubscriptionByNextSubscriptionId(List<String> subscriptionIds)
    • findAllPriorSubscriptionsByNextSubscriptionIn

      @Policy(operationTypes=READ) default List<D> findAllPriorSubscriptionsByNextSubscriptionIn(List<String> subscriptionIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • findByNextSubscriptionIn

      @Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findByNextSubscriptionIn(List<String> nextSubscriptionIds)
    • findAllByNextSubscriptionIn

      @Policy(operationTypes=READ) List<D> findAllByNextSubscriptionIn(List<String> nextSubscriptionIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • findAllBySubscriptionIdIn

      @Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllBySubscriptionIdIn(List<String> ids)
      Deprecated.
      Use TrackableRepository.findAllByContextId(Iterable, ContextInfo) instead
      Find all the P entities by their IDs
    • findAllByUserRefAndSubscriptionStatusIn

      @Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllByUserRefAndSubscriptionStatusIn(String userRef, String[] statuses)
      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)
      Find the JpaSubscription entity by Subscription Source Ref
    • findBySubscriptionSourceRef

      @Policy(operationTypes=READ) Optional<D> findBySubscriptionSourceRef(String subscriptionSourceRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find the JpaSubscription entity by Subscription Source Ref