Class SkuRestrictionFactoryImpl
java.lang.Object
org.broadleafcommerce.admin.server.service.handler.SkuRestrictionFactoryImpl
- All Implemented Interfaces:
org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory
@Deprecated
@Component("blSkuRestrictionFactory")
public class SkuRestrictionFactoryImpl
extends Object
implements org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.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
Fields -
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.org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactoryDeprecated.org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictiongetRestriction(String type, String propertyId) Deprecated.Deprecated.voidsetDelegate(org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory delegate) Deprecated.voidsetSkuPropertyPrefix(String skuPropertyPrefix) Deprecated.
-
Field Details
-
DEFAULT_SKU_PATH_PREFIX
Deprecated.- See Also:
-
delegate
protected org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory delegateDeprecated. -
skuPropertyPrefix
Deprecated.
-
-
Constructor Details
-
SkuRestrictionFactoryImpl
public SkuRestrictionFactoryImpl()Deprecated.
-
-
Method Details
-
getRestriction
public org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.Restriction getRestriction(String type, String propertyId) Deprecated.- Specified by:
getRestrictionin interfaceorg.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory
-
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
public org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory getDelegate()Deprecated. -
setDelegate
public void setDelegate(org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory delegate) Deprecated. -
getSkuPropertyPrefix
Deprecated. -
setSkuPropertyPrefix
Deprecated.
-