Interface CustomizedProductTagRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Known Subinterfaces:
JpaProductTagRepository<D>, ProductTagRepository<D>
All Known Implementing Classes:
JpaCustomizedProductTagRepository

public interface CustomizedProductTagRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Author:
Nathan Moore (nathandmoore)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findAllByProductContextIdAndIsSorted(String productContextId, boolean isSorted, @NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns all ProductTags for the given productContextId that are either all sorted or not sorted (e.g., sorted is where ProductTag.getSorting() is not Sortable.DEFAULT_VALUE or null).
    org.springframework.data.domain.Page<D>
    findAllByProductContextIdAndIsSortedAndVariantIdIsNull(String productContextId, boolean isSorted, @NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns all ProductTags for the given productContextId that are either all sorted or not sorted (e.g., sorted is where ProductTag.getSorting() is not Sortable.DEFAULT_VALUE or null).
    org.springframework.data.domain.Page<D>
    findAllByVariantIdAndSorted(String variantId, boolean isSorted, @NonNull cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns all ProductTags for the given productContextId and variantId that are either all sorted or not sorted (e.g., sorted is where ProductTag.getSorting() is not Sortable.DEFAULT_VALUE or null).
  • Method Details

    • findAllByProductContextIdAndIsSorted

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByProductContextIdAndIsSorted(String productContextId, boolean isSorted, @NonNull @NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns all ProductTags for the given productContextId that are either all sorted or not sorted (e.g., sorted is where ProductTag.getSorting() is not Sortable.DEFAULT_VALUE or null).
      Parameters:
      productContextId - Id of the product to match
      isSorted - Whether to fetch only the sorted or only the unsorted tags
      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 - context surrounding sandboxing and multitenant state
      Returns:
      all ProductTags for the given productContextId that are either all sorted or not sorted depending on isSorted.
    • findAllByProductContextIdAndIsSortedAndVariantIdIsNull

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByProductContextIdAndIsSortedAndVariantIdIsNull(String productContextId, boolean isSorted, @NonNull @NonNull cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns all ProductTags for the given productContextId that are either all sorted or not sorted (e.g., sorted is where ProductTag.getSorting() is not Sortable.DEFAULT_VALUE or null).
      Parameters:
      productContextId - Id of the product to match
      isSorted - Whether to fetch only the sorted or only the unsorted tags
      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 - context surrounding sandboxing and multitenant state
      Returns:
      all ProductTags for the given productContextId that are either all sorted or not sorted depending on isSorted.
    • findAllByVariantIdAndSorted

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByVariantIdAndSorted(String variantId, boolean isSorted, @NonNull @NonNull cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns all ProductTags for the given productContextId and variantId that are either all sorted or not sorted (e.g., sorted is where ProductTag.getSorting() is not Sortable.DEFAULT_VALUE or null).
      Parameters:
      isSorted - Whether to fetch only the sorted or only the unsorted tags
      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 - context surrounding sandboxing and multitenant state
      Returns:
      all ProductTags for the given productContextId that are either all sorted or not sorted depending on isSorted.