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 TypeMethodDescriptionlong
countNonProductionRecordsByProductIdsInTenant
(Iterable<String> productContextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Returns the count of non-production records that match the givenproductContextIds
and the given tenant context.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 allProductTags
for the givenproductContextId
that are either all sorted or not sorted (e.g., sorted is whereProductTag.getSorting()
is notSortable.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 allProductTags
for the givenproductContextId
that are either all sorted or not sorted (e.g., sorted is whereProductTag.getSorting()
is notSortable.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 allProductTags
for the givenproductContextId
and variantId that are either all sorted or not sorted (e.g., sorted is whereProductTag.getSorting()
is notSortable.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 allProductTags
for the givenproductContextId
that are either all sorted or not sorted (e.g., sorted is whereProductTag.getSorting()
is notSortable.DEFAULT_VALUE
or null).- Parameters:
productContextId
- Id of the product to matchisSorted
- Whether to fetch only the sorted or only the unsorted tagsfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontextInfo
- context surrounding sandboxing and multitenant state- Returns:
- all
ProductTags
for the givenproductContextId
that are either all sorted or not sorted depending onisSorted
.
-
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 allProductTags
for the givenproductContextId
that are either all sorted or not sorted (e.g., sorted is whereProductTag.getSorting()
is notSortable.DEFAULT_VALUE
or null).- Parameters:
productContextId
- Id of the product to matchisSorted
- Whether to fetch only the sorted or only the unsorted tagsfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontextInfo
- context surrounding sandboxing and multitenant state- Returns:
- all
ProductTags
for the givenproductContextId
that are either all sorted or not sorted depending onisSorted
.
-
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 allProductTags
for the givenproductContextId
and variantId that are either all sorted or not sorted (e.g., sorted is whereProductTag.getSorting()
is notSortable.DEFAULT_VALUE
or null).- Parameters:
isSorted
- Whether to fetch only the sorted or only the unsorted tagsfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontextInfo
- context surrounding sandboxing and multitenant state- Returns:
- all
ProductTags
for the givenproductContextId
that are either all sorted or not sorted depending onisSorted
.
-
countNonProductionRecordsByProductIdsInTenant
@Policy(operationTypes=READ) long countNonProductionRecordsByProductIdsInTenant(@NonNull Iterable<String> productContextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Returns the count of non-production records that match the givenproductContextIds
and the given tenant context.- Parameters:
productContextIds
- IDs of parent Products to match againstcontext
- Request context information around sandbox and multitenant state- Returns:
- the count of non-production records that match the given
productContextIds
and the given tenant context
-