Class JpaCustomizedPromotionalProductRepository<D extends JpaPromotionalProduct>

java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.repository.product.relation.JpaCustomizedPromotionalProductRepository<D>
All Implemented Interfaces:
CustomizedPromotionalProductRepository<D>, org.springframework.beans.factory.InitializingBean

public class JpaCustomizedPromotionalProductRepository<D extends JpaPromotionalProduct> extends Object implements CustomizedPromotionalProductRepository<D>, org.springframework.beans.factory.InitializingBean
Author:
Sunny Yu
  • Constructor Details

    • JpaCustomizedPromotionalProductRepository

      public JpaCustomizedPromotionalProductRepository(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, List<com.broadleafcommerce.data.tracking.core.service.RsqlQueryTransformer> rsqlQueryTransformers, cz.jirutka.rsql.parser.ast.RSQLVisitor<jakarta.persistence.criteria.Predicate,Class<?>> rsqlVisitor, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder catalogFilterRuleCriteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • countNonProductionRecordsByProductIdsInTenant

      public long countNonProductionRecordsByProductIdsInTenant(@NonNull @NonNull Iterable<String> productContextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Description copied from interface: CustomizedPromotionalProductRepository
      Returns the count of non-production records that match the given productContextIds and the given tenant context.
      Specified by:
      countNonProductionRecordsByProductIdsInTenant in interface CustomizedPromotionalProductRepository<D extends JpaPromotionalProduct>
      Parameters:
      productContextIds - IDs of parent Products to match against
      context - Request context information around sandbox and multitenant state
      Returns:
      the count of non-production records that match the given productContextIds and the given tenant context
    • setRepository

      @Autowired @Lazy public void setRepository(PromotionalProductRepository<D> repository)
    • getCatalogQueryHelper

      protected JpaCatalogQueryHelper getCatalogQueryHelper()
    • setCatalogQueryHelper

      @Autowired public void setCatalogQueryHelper(JpaCatalogQueryHelper catalogQueryHelper)