Interface RulesFilter<T extends AbstractRuleEngineRuleModel>

Type Parameters:
T - type, extending AbstractRuleEngineRuleModel
All Known Subinterfaces:
ContentMatchRulesFilter
All Known Implementing Classes:
DefaultContentMatchRulesFilter

public interface RulesFilter<T extends AbstractRuleEngineRuleModel>
Rules filter interface
  • Method Details

    • apply

      org.apache.commons.lang3.tuple.Pair<Collection<T>,Collection<T>> apply(Collection<String> ruleUuids)
      Apply the filter to a given set of rules UUIDs
      Parameters:
      ruleUuids - a collection of rule UUIDs of the rules to be filtered out
      Returns:
      the pair with a lhs, containing the rules to add and rhs, containing the rules to remove
    • apply

      org.apache.commons.lang3.tuple.Pair<Collection<T>,Collection<T>> apply(Collection<String> ruleUuids, Long newModuleVersion)
      Apply the filter to a given set of rules UUIDs and module version to deploy
      Parameters:
      ruleUuids - a collection of rule UUIDs of the rules to be filtered out
      newModuleVersion - module version to deploy
      Returns:
      the pair with a lhs, containing the rules to add and rhs, containing the rules to remove