Class JpaCustomizedDataDrivenEnumRepository<D extends JpaDataDrivenEnum>

java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.repository.enumeration.JpaCustomizedDataDrivenEnumRepository<D>
All Implemented Interfaces:
CustomizedDataDrivenEnumRepository<D>, org.springframework.beans.factory.InitializingBean

public class JpaCustomizedDataDrivenEnumRepository<D extends JpaDataDrivenEnum> extends Object implements CustomizedDataDrivenEnumRepository<D>, org.springframework.beans.factory.InitializingBean
Author:
Sunny Yu
  • Constructor Details

    • JpaCustomizedDataDrivenEnumRepository

      public JpaCustomizedDataDrivenEnumRepository(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder filterRulesCriteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
  • Method Details

    • afterPropertiesSet

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

      @Autowired @Lazy public void setRepository(DataDrivenEnumRepository<D> repository)
    • findAllByContextIdIn

      public Stream<D> findAllByContextIdIn(Collection<String> contextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CustomizedDataDrivenEnumRepository
      Retrieves all data driven enums whose context IDs match any of the given IDs.
      Specified by:
      findAllByContextIdIn in interface CustomizedDataDrivenEnumRepository<D extends JpaDataDrivenEnum>
      Parameters:
      contextIds - the context IDs to query for
      contextInfo - context information around sandbox and multitenant state
      Returns:
      all data driven enums whose context IDs match any of the given IDs
    • buildContextIdInFilter

      protected jakarta.persistence.criteria.Predicate buildContextIdInFilter(Collection<String> contextIds, jakarta.persistence.criteria.Root<D> dataDrivenEnumEntity, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, Map<String,Object> parameterValues)
    • getNarrowingHelper

      protected com.broadleafcommerce.data.tracking.jpa.filtering.narrow.JpaNarrowingHelper getNarrowingHelper()
    • getEntityManager

      protected jakarta.persistence.EntityManager getEntityManager()