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 Details

  • Constructor Details

    • SkuRestrictionFactoryImpl

      public SkuRestrictionFactoryImpl()
      Deprecated.
  • Method Details

    • getRestriction

      public Restriction getRestriction(String type, String propertyId)
      Deprecated.
      Specified by:
      getRestriction in interface 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 RestrictionFactory getDelegate()
      Deprecated.
    • setDelegate

      public void setDelegate(RestrictionFactory delegate)
      Deprecated.
    • getSkuPropertyPrefix

      public String getSkuPropertyPrefix()
      Deprecated.
    • setSkuPropertyPrefix

      public void setSkuPropertyPrefix(String skuPropertyPrefix)
      Deprecated.