Interface PriceDataService<P extends PriceData>

  • All Superinterfaces:
    com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
    All Known Implementing Classes:
    DefaultPriceDataService

    public interface PriceDataService<P extends PriceData>
    extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
    Base service API for PriceData. Backed by a PriceDataRepository.
    Author:
    Chad Harchar (charchar)
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      com.broadleafcommerce.pricing.client.domain.PriceableTargetRef convertTargetToRef​(com.broadleafcommerce.pricing.client.domain.PriceableTarget target)  
      P create​(PriceList priceList, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      void delete​(PriceList priceList, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      Optional<P> findByPriceableTargetRefAndPriceListId​(com.broadleafcommerce.pricing.client.domain.PriceableTargetRef target, String priceListId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Finds the PriceData that has the given PriceData.target and
      org.springframework.data.domain.Page<P> findByPriceList​(String priceListId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      org.springframework.data.domain.Page<P> findByPriceList​(String priceListId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      org.springframework.data.domain.Page<P> findByPriceListAndTarget​(String priceListId, String targetType, Collection<String> targetIds, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      org.springframework.data.domain.Page<P> findByPriceListAndTarget​(String priceListId, String targetType, Collection<String> targetIds, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      List<P> findByTargetInAndPriceListIn​(Collection<com.broadleafcommerce.pricing.client.domain.PriceableTarget> targets, Collection<String> priceListIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      List<P> findByTargetRefInAndPriceListIn​(Collection<com.broadleafcommerce.pricing.client.domain.PriceableTargetRef> targets, Collection<String> priceListIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      Stream<P> readAllByPriceListId​(String priceListId, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      P readByContextId​(PriceList priceList, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      P replace​(PriceList priceList, String id, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      P update​(PriceList priceList, String id, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)  
      • Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService

        create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
      • Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService

        readAll, readAll, readAll, readAll
    • Method Detail

      • findByPriceList

        @NonNull
        @Deprecated(since="1.7.2",
                    forRemoval=true)
        org.springframework.data.domain.Page<P> findByPriceList​(@NonNull
                                                                String priceListId,
                                                                @Nullable
                                                                org.springframework.data.domain.Pageable page,
                                                                @Nullable
                                                                com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • findByPriceList

        @NonNull
        org.springframework.data.domain.Page<P> findByPriceList​(@NonNull
                                                                String priceListId,
                                                                @Nullable
                                                                cz.jirutka.rsql.parser.ast.Node filters,
                                                                @Nullable
                                                                org.springframework.data.domain.Pageable page,
                                                                @Nullable
                                                                com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • findByPriceListAndTarget

        @NonNull
        @Deprecated(since="1.7.2",
                    forRemoval=true)
        org.springframework.data.domain.Page<P> findByPriceListAndTarget​(@Nullable
                                                                         String priceListId,
                                                                         @Nullable
                                                                         String targetType,
                                                                         @Nullable
                                                                         Collection<String> targetIds,
                                                                         @Nullable
                                                                         org.springframework.data.domain.Pageable page,
                                                                         @Nullable
                                                                         com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • findByPriceListAndTarget

        @NonNull
        org.springframework.data.domain.Page<P> findByPriceListAndTarget​(@Nullable
                                                                         String priceListId,
                                                                         @Nullable
                                                                         String targetType,
                                                                         @Nullable
                                                                         Collection<String> targetIds,
                                                                         @Nullable
                                                                         cz.jirutka.rsql.parser.ast.Node filters,
                                                                         @Nullable
                                                                         org.springframework.data.domain.Pageable page,
                                                                         @Nullable
                                                                         com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • readAllByPriceListId

        Stream<P> readAllByPriceListId​(String priceListId,
                                       @Nullable
                                       cz.jirutka.rsql.parser.ast.Node filters,
                                       @Nullable
                                       com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • findByPriceableTargetRefAndPriceListId

        @NonNull
        Optional<P> findByPriceableTargetRefAndPriceListId​(@NonNull
                                                           com.broadleafcommerce.pricing.client.domain.PriceableTargetRef target,
                                                           @NonNull
                                                           String priceListId,
                                                           @Nullable
                                                           com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Finds the PriceData that has the given PriceData.target and
        Parameters:
        target -
        priceListId -
        context -
        Returns:
      • findByTargetRefInAndPriceListIn

        List<P> findByTargetRefInAndPriceListIn​(@NonNull
                                                Collection<com.broadleafcommerce.pricing.client.domain.PriceableTargetRef> targets,
                                                @NonNull
                                                Collection<String> priceListIds,
                                                @Nullable
                                                com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • findByTargetInAndPriceListIn

        @NonNull
        List<P> findByTargetInAndPriceListIn​(@NonNull
                                             Collection<com.broadleafcommerce.pricing.client.domain.PriceableTarget> targets,
                                             @NonNull
                                             Collection<String> priceListIds,
                                             @Nullable
                                             com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • readByContextId

        P readByContextId​(@NonNull
                          PriceList priceList,
                          @NonNull
                          String id,
                          @NonNull
                          com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • update

        P update​(@NonNull
                 PriceList priceList,
                 @NonNull
                 String id,
                 @NonNull
                 P businessInstance,
                 @NonNull
                 com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • delete

        void delete​(@NonNull
                    PriceList priceList,
                    @NonNull
                    String id,
                    @NonNull
                    com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • replace

        P replace​(@NonNull
                  PriceList priceList,
                  @NonNull
                  String id,
                  @NonNull
                  P businessInstance,
                  @NonNull
                  com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • create

        P create​(@NonNull
                 PriceList priceList,
                 @NonNull
                 P businessInstance,
                 @NonNull
                 com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • convertTargetToRef

        @Nullable
        com.broadleafcommerce.pricing.client.domain.PriceableTargetRef convertTargetToRef​(@Nullable
                                                                                          com.broadleafcommerce.pricing.client.domain.PriceableTarget target)