Interface ContentTargeterResolverExtensionHandler

All Superinterfaces:
org.broadleafcommerce.common.extension.ExtensionHandler
All Known Implementing Classes:
AbstractContentTargeterResolverExtensionHandler, DefaultContentTargeterResolverExtensionHandler

public interface ContentTargeterResolverExtensionHandler extends org.broadleafcommerce.common.extension.ExtensionHandler
ExtensionHandler to correctly resolve ContentTargeters
Author:
Chris Kittrell
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    applyAdditionalRuleVariablesForOrderItemEvaluation(org.broadleafcommerce.core.order.domain.OrderItem orderItem)
    Provides a hook point to add additional properties to order items before they are evaluated against any ContentTargeting rules
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    findSandboxContentTargeterForTargetProperty(String propertyNameForTarget, Object target, org.broadleafcommerce.common.extension.ExtensionResultHolder<List<ContentTargeter>> resultHolder)
    Provides a hook point to retrieve the sandbox versions of ContentTargeters.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    shouldApplyContentTargeter(ContentTargeter contentTargeter, org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> erh)
    Provides an extension hook point to add extra logic to determine if a specific ContentTargeter should be applied in a given module context.

    Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler

    getPriority, isEnabled
  • Method Details

    • shouldApplyContentTargeter

      org.broadleafcommerce.common.extension.ExtensionResultStatusType shouldApplyContentTargeter(ContentTargeter contentTargeter, org.broadleafcommerce.common.extension.ExtensionResultHolder<Boolean> erh)
      Provides an extension hook point to add extra logic to determine if a specific ContentTargeter should be applied in a given module context. Example usage can be found in CustomerSegmentContentTargeterResolverExtensionHandler#shouldApplyContentTargeter
      Parameters:
      contentTargeter -
      Returns:
    • findSandboxContentTargeterForTargetProperty

      org.broadleafcommerce.common.extension.ExtensionResultStatusType findSandboxContentTargeterForTargetProperty(String propertyNameForTarget, Object target, org.broadleafcommerce.common.extension.ExtensionResultHolder<List<ContentTargeter>> resultHolder)
      Provides a hook point to retrieve the sandbox versions of ContentTargeters. It will attempt to first find the ContentTargetingAction that references the passed in . It will then determine which ContentTargeters have a path (as declared by ) to the previously found ContentTargetingAction.
      Parameters:
      propertyNameForTarget -
      target -
      resultHolder -
      Returns:
    • applyAdditionalRuleVariablesForOrderItemEvaluation

      org.broadleafcommerce.common.extension.ExtensionResultStatusType applyAdditionalRuleVariablesForOrderItemEvaluation(org.broadleafcommerce.core.order.domain.OrderItem orderItem)
      Provides a hook point to add additional properties to order items before they are evaluated against any ContentTargeting rules
      Parameters:
      orderItem -
      Returns: