Class ParameterProcessorComponent

java.lang.Object
org.alfresco.repo.action.parameter.ParameterProcessorComponent
All Implemented Interfaces:
ParameterSubstitutionSuggester

public class ParameterProcessorComponent extends Object implements ParameterSubstitutionSuggester
Parameter processor component
Since:
2.1
Author:
Roy Wetherall
  • Constructor Details

    • ParameterProcessorComponent

      public ParameterProcessorComponent()
  • Method Details

    • register

      public void register(ParameterProcessor processor)
      Register parameter processor
      Parameters:
      processor -
    • process

      public void process(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition, NodeRef actionedUponNodeRef)
      Parameters:
      ruleItem -
      ruleItemDefinition -
      actionedUponNodeRef -
    • process

      public String process(String value, NodeRef nodeRef)
      Process the value for substitution within the context of the provided node.
      Parameters:
      value - value
      nodeRef - node reference
      Returns:
      String resulting value
    • process

      public String process(String value, NodeRef nodeRef, String regExp)
    • getSubstitutionSuggestions

      public List<String> getSubstitutionSuggestions(String substitutionFragment)
      Return a list of substitution suggestions for the passed string fragment.
      Specified by:
      getSubstitutionSuggestions in interface ParameterSubstitutionSuggester
      Parameters:
      substitutionFragment - Text fragment to search on.
      Returns:
      A list of substitutions that match the substitution fragment.