Class JpaCustomizedItemListRepository<D extends JpaItemList>

  • All Implemented Interfaces:
    CustomizedItemListRepository<D>, org.springframework.beans.factory.InitializingBean

    public class JpaCustomizedItemListRepository<D extends JpaItemList>
    extends Object
    implements CustomizedItemListRepository<D>, org.springframework.beans.factory.InitializingBean
    JPA implementation of a customized item list item repository.
    Author:
    Jacob Mitash
    • Constructor Detail

      • JpaCustomizedItemListRepository

        public JpaCustomizedItemListRepository​(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil,
                                               com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder criteriaBuilder,
                                               com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager typeManager)
    • Method Detail

      • afterPropertiesSet

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

        @Autowired
        @Lazy
        public void setRepository​(ItemListRepository<D> repository)
      • deleteAllByIds

        @Transactional("cartTransactionManager")
        public void deleteAllByIds​(Collection<String> itemListIds,
                                   @Nullable
                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Description copied from interface: CustomizedItemListRepository
        Delete multiple item lists by id
        Specified by:
        deleteAllByIds in interface CustomizedItemListRepository<D extends JpaItemList>
        Parameters:
        itemListIds - the IDs of the lists to delete
        context - the request context information
      • getNarrowingHelper

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