Class CompositeRuleResultProcessor

java.lang.Object
com._1c.g5.aef2.standard.definitions.rules.CompositeRuleResultProcessor
All Implemented Interfaces:
IRuleResultProcessor

public final class CompositeRuleResultProcessor extends Object implements IRuleResultProcessor
The composite rule result processor. Accumulates all IRuleResultProcessor instances registered within a "com._1c.g5.aef2.standard.definitions.ruleResultProcessor" extension point.
  • Field Details

  • Method Details

    • process

      public void process(IComponent<?> component, IDefinition componentDefinition, IRuleResult oldRuleResult, IRuleResult newRuleResult)
      Description copied from interface: IRuleResultProcessor
      Processes the given oldRuleResult and newRuleResult for the specified component and corresponding componentDefinition.
      Specified by:
      process in interface IRuleResultProcessor
      Parameters:
      component - the component, cannot be null.
      componentDefinition - the definition of the component, cannot be null.
      oldRuleResult - the old rule result to process, cannot be null
      newRuleResult - the new rule result to process, cannot be null.
    • needCreateComponent

      public boolean needCreateComponent(IDefinition componentDefinition, IRuleResult ruleResult)
      Description copied from interface: IRuleResultProcessor
      Returns true if the component should be created by the componentDefinition for the given ruleResult.
      Specified by:
      needCreateComponent in interface IRuleResultProcessor
      Parameters:
      componentDefinition - the component definition, cannot be null.
      ruleResult - the IRuleResult instance, cannot be null.
      Returns:
      true if the component should be created by the componentDefinition for the given ruleResult.
    • isRefreshRequired

      public boolean isRefreshRequired(IRuleResult oldResult, IRuleResult newResult)
      Description copied from interface: IRuleResultProcessor
      Returns true if the processor cannot update enablement or visibility and the entire component refresh is required.
      Specified by:
      isRefreshRequired in interface IRuleResultProcessor
      Parameters:
      oldResult - the old result, cannot be null.
      newResult - the new result, cannot be null.
      Returns:
      true if the processor cannot update enablement or visibility and the entire component refresh is required.