Class AbstractDataFeedInspection<R extends com.broadleafcommerce.data.tracking.core.Trackable>

java.lang.Object
com.broadleafcommerce.data.tracking.jpa.datafeed.AbstractDataFeedInspection<R>
All Implemented Interfaces:
DataFeedInspection<R>, org.springframework.core.Ordered

public abstract class AbstractDataFeedInspection<R extends com.broadleafcommerce.data.tracking.core.Trackable> extends Object implements DataFeedInspection<R>
Useful starting point for a concrete implementation of DataFeedInspection.
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isMonitored(com.broadleafcommerce.data.tracking.core.Trackable t)
    Detect whether or not this inspection handles the passed type.
    protected boolean
    isRelevant(List<com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail> monitoredProductionChanges)
    Provide a hook point to review detected production changes for monitored fields and exercise additional decision logic on whether or not those changes remain valid for engaging a data feed event.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.data.tracking.jpa.datafeed.DataFeedInspection

    getDataFeedEntityUpdateEvent, getDataRoute, getOrder, isRelevant
  • Constructor Details

    • AbstractDataFeedInspection

      protected AbstractDataFeedInspection()
  • Method Details

    • isMonitored

      public boolean isMonitored(com.broadleafcommerce.data.tracking.core.Trackable t)
      Description copied from interface: DataFeedInspection
      Detect whether or not this inspection handles the passed type. Note, the inspection should be able to handle extensions of the registered base type.
      Specified by:
      isMonitored in interface DataFeedInspection<R extends com.broadleafcommerce.data.tracking.core.Trackable>
      Parameters:
      t - The candidate entity to test
      Returns:
      Whether or not this inspection should handle
    • isRelevant

      protected boolean isRelevant(List<com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail> monitoredProductionChanges)
      Provide a hook point to review detected production changes for monitored fields and exercise additional decision logic on whether or not those changes remain valid for engaging a data feed event.
      Parameters:
      monitoredProductionChanges - The production change details detected for the registered fields
      Returns:
      Whether or not the change should drive the emission of a data feed event.