Interface PromotionalProductService<P extends PromotionalProduct>

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

public interface PromotionalProductService<P extends PromotionalProduct> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service API for PromotionalProducts. Supported by PromotionalProductRepository.
Author:
Samarth Dhruva (samarthd)
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.springframework.data.domain.Page<P>
    readAllByProductId(String productId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all of the PromotionalProducts associated with the given product ID.
    readAllByProductIds(Collection<String> productIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all of the PromotionalProducts associated with the given product IDs.

    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 Details

    • readAllByProductId

      org.springframework.data.domain.Page<P> readAllByProductId(String productId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all of the PromotionalProducts associated with the given product ID.
      Parameters:
      productId - The Product ID for which to find associated PromotionalProducts
      filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
      page - the requested page of results from the database
      contextInfo - the context to query within
      Returns:
      Reads all of the PromotionalProducts associated with the given product ID.
    • readAllByProductIds

      List<P> readAllByProductIds(Collection<String> productIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all of the PromotionalProducts associated with the given product IDs.
      Parameters:
      productIds - The Product IDs for which to find associated PromotionalProducts
      contextInfo - the context to query within
      Returns:
      Reads all of the PromotionalProducts associated with the given product IDs.
    • getRepositoryDomain

      @NonNull String getRepositoryDomain()