Class SkuRestrictionFactoryImpl
java.lang.Object
org.broadleafcommerce.admin.server.service.handler.SkuRestrictionFactoryImpl
- All Implemented Interfaces:
RestrictionFactory
@Deprecated
@Component("blSkuRestrictionFactory")
public class SkuRestrictionFactoryImpl
extends Object
implements RestrictionFactory
Deprecated.
this was originally designed to search for Skus by the default Sku property if it was not set on an additional
sku. In practice this led to a lot of performance issues to actually make it work correctly. Rather than filter directly
on Skus then Sku searches/filters should instead go through a Product first
This class takes into account that filters should be applied on either the root Sku property itself OR the defaultSku
for this particular Sku.
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated.protected RestrictionFactoryDeprecated.protected StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.PredicatebuildCompositePredicate(jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Path targetPropertyPath, jakarta.persistence.criteria.Path productPath, jakarta.persistence.criteria.Predicate propertyExpression, jakarta.persistence.criteria.Predicate defaultSkuExpression) Deprecated.Deprecated.getRestriction(String type, String propertyId) Deprecated.Deprecated.voidsetDelegate(RestrictionFactory delegate) Deprecated.voidsetSkuPropertyPrefix(String skuPropertyPrefix) Deprecated.
-
Field Details
-
DEFAULT_SKU_PATH_PREFIX
Deprecated.- See Also:
-
delegate
Deprecated. -
skuPropertyPrefix
Deprecated.
-
-
Constructor Details
-
SkuRestrictionFactoryImpl
public SkuRestrictionFactoryImpl()Deprecated.
-
-
Method Details
-
getRestriction
Deprecated.- Specified by:
getRestrictionin interfaceRestrictionFactory
-
buildCompositePredicate
protected jakarta.persistence.criteria.Predicate buildCompositePredicate(jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Path targetPropertyPath, jakarta.persistence.criteria.Path productPath, jakarta.persistence.criteria.Predicate propertyExpression, jakarta.persistence.criteria.Predicate defaultSkuExpression) Deprecated. -
getDelegate
Deprecated. -
setDelegate
Deprecated. -
getSkuPropertyPrefix
Deprecated. -
setSkuPropertyPrefix
Deprecated.
-