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
    Modifier and Type
    Field
    Description
    protected static final String
    Deprecated.
     
    protected org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory
    Deprecated.
     
    protected String
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
     
    org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory
    Deprecated.
     
    org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.Restriction
    getRestriction(String type, String propertyId)
    Deprecated.
     
    Deprecated.
     
    void
    setDelegate(org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory delegate)
    Deprecated.
     
    void
    setSkuPropertyPrefix(String skuPropertyPrefix)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_SKU_PATH_PREFIX

      protected static final String DEFAULT_SKU_PATH_PREFIX
      Deprecated.
      See Also:
    • delegate

      protected org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.RestrictionFactory delegate
      Deprecated.
    • skuPropertyPrefix

      protected String 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:
      getRestriction in interface org.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

      public String getSkuPropertyPrefix()
      Deprecated.
    • setSkuPropertyPrefix

      public void setSkuPropertyPrefix(String skuPropertyPrefix)
      Deprecated.