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
-
-
Field Summary
-
Fields inherited from interface org.alfresco.repo.action.parameter.ParameterSubstitutionSuggester
DEFAULT_MAXIMUM_NUMBER_SUGGESTIONS
-
-
Constructor Summary
Constructors Constructor Description ParameterProcessorComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getSubstitutionSuggestions(String substitutionFragment)
Return a list of substitution suggestions for the passed string fragment.String
process(String value, NodeRef nodeRef)
Process the value for substitution within the context of the provided node.String
process(String value, NodeRef nodeRef, String regExp)
void
process(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition, NodeRef actionedUponNodeRef)
void
register(ParameterProcessor processor)
Register parameter processor
-
-
-
Method Detail
-
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
- valuenodeRef
- node reference- Returns:
- String resulting value
-
getSubstitutionSuggestions
public List<String> getSubstitutionSuggestions(String substitutionFragment)
Return a list of substitution suggestions for the passed string fragment.- Specified by:
getSubstitutionSuggestions
in interfaceParameterSubstitutionSuggester
- Parameters:
substitutionFragment
- Text fragment to search on.- Returns:
- A list of substitutions that match the substitution fragment.
-
-