Class ParameterProcessorComponent
java.lang.Object
org.alfresco.repo.action.parameter.ParameterProcessorComponent
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptiongetSubstitutionSuggestions(String substitutionFragment) Return a list of substitution suggestions for the passed string fragment.Process the value for substitution within the context of the provided node.voidprocess(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition, NodeRef actionedUponNodeRef) voidregister(ParameterProcessor processor) Register parameter processor
-
Constructor Details
-
ParameterProcessorComponent
public ParameterProcessorComponent()
-
-
Method Details
-
register
Register parameter processor- Parameters:
processor-
-
process
public void process(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition, NodeRef actionedUponNodeRef) - Parameters:
ruleItem-ruleItemDefinition-actionedUponNodeRef-
-
process
Process the value for substitution within the context of the provided node.- Parameters:
value- valuenodeRef- node reference- Returns:
- String resulting value
-
process
-
getSubstitutionSuggestions
Return a list of substitution suggestions for the passed string fragment.- Specified by:
getSubstitutionSuggestionsin interfaceParameterSubstitutionSuggester- Parameters:
substitutionFragment- Text fragment to search on.- Returns:
- A list of substitutions that match the substitution fragment.
-