Interface PromotionalCategoryProductRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Superinterfaces:
CustomizedPromotionalCategoryProductRepository<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:
JpaPromotionalCategoryProductRepository<D>

@NoRepositoryBean public interface PromotionalCategoryProductRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedPromotionalCategoryProductRepository<D>
Repository for persistent counter-parts of PromotionalCategoryProducts.
Author:
Samarth Dhruva (samarthd)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findByCategoryContextIdAndPromotionalProductTypeContainingIgnoreCase(String categoryContextId, String type, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the category promotional products in the database associated with the given category context ID, optionally filtered by the relationship type.
    findByPromotionalProductContextIdAndCategoryContextId(String productContextId, String categoryContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find the PromotionalCategoryProduct associated with the given product context ID and category context ID.

    Methods inherited from interface com.broadleafcommerce.catalog.repository.CustomizedPromotionalCategoryProductRepository

    findByCategoryContextId

    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

    • findByCategoryContextIdAndPromotionalProductTypeContainingIgnoreCase

      @Policy(operationTypes=READ) @NonNull org.springframework.data.domain.Page<D> findByCategoryContextIdAndPromotionalProductTypeContainingIgnoreCase(@NonNull String categoryContextId, @NonNull String type, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the category promotional products in the database associated with the given category context ID, optionally filtered by the relationship type.
      Parameters:
      categoryContextId - the category context ID to find the relations for
      type - the type of promotion to filter by (optional)
      page - the requested page of results from the database
      contextInfo - context surrounding sandboxing and multitenant state
      Returns:
      the category promotional products in the database that match the given category context ID
      See Also:
    • findByPromotionalProductContextIdAndCategoryContextId

      @Policy(operationTypes=READ) Optional<D> findByPromotionalProductContextIdAndCategoryContextId(String productContextId, String categoryContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find the PromotionalCategoryProduct associated with the given product context ID and category context ID.
      Parameters:
      productContextId - the product context ID
      categoryContextId - the category context ID
      contextInfo - context surrounding sandboxing and multitenant state
      Returns:
      an Optional containing the PromotionalCategoryProduct that was found, or empty if no item was found