Package org.alfresco.repo.action
Class ParameterizedItemAbstractBase
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
ActionConditionEvaluatorAbstractBase,ActionExecuterAbstractBase
Rule item abstract base.
Helper base class used by the action exector and condition evaluator implementations.
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIndicates whether or not ad-hoc properties can be provided.protected static final Stringprotected RuntimeActionServiceAction serviceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddParameterDefinitions(List<ParameterDefinition> paramList) Adds the parameter definitions to the listprotected voidcheckMandatoryProperties(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition) Checked whether all the mandatory parameters for the rule item have been assigned.protected booleanIndicates whether adhoc property definitions are allowed or notprotected StringGets the description I18N keyprotected Map<Locale,List<ParameterDefinition>> Gets a list containing the parameter definitions for this rule item.protected StringgetParamDisplayLabel(String paramName) Gets the parameter definition display label from the properties file.protected StringgetParamDisplayLabel(String paramName, Locale locale) Gets the parameter definition display label from the properties file.protected List<ParameterDefinition>Gets a list containing the parameter definitions for this rule item.protected StringGets the title I18N keyvoidsetAdhocPropertiesAllowed(boolean allowed) Setter for Spring injection of adhocPropertiesAllowed propertyvoidsetLocales(Set<Locale> locales) voidsetRuntimeActionService(RuntimeActionService runtimeActionService) Sets the action servicetoString()Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
Field Details
-
DISPLAY_LABEL
- See Also:
-
adhocPropertiesAllowed
protected boolean adhocPropertiesAllowedIndicates whether or not ad-hoc properties can be provided. Default so false. -
runtimeActionService
Action service
-
-
Constructor Details
-
ParameterizedItemAbstractBase
public ParameterizedItemAbstractBase()
-
-
Method Details
-
toString
-
setLocales
-
getParameterDefintions
Gets a list containing the parameter definitions for this rule item.- Returns:
- the list of parameter definitions
-
addParameterDefinitions
Adds the parameter definitions to the list- Parameters:
paramList- the parameter definitions list
-
getLocalizedParameterDefinitions
Gets a list containing the parameter definitions for this rule item.- Returns:
- the map of parameter definitions with locales
-
setRuntimeActionService
Sets the action service- Parameters:
runtimeActionService- the action service
-
getTitleKey
Gets the title I18N key- Returns:
- the title key
-
getDescriptionKey
Gets the description I18N key- Returns:
- the description key
-
setAdhocPropertiesAllowed
public void setAdhocPropertiesAllowed(boolean allowed) Setter for Spring injection of adhocPropertiesAllowed property- Parameters:
allowed- boolean
-
getAdhocPropertiesAllowed
protected boolean getAdhocPropertiesAllowed()Indicates whether adhoc property definitions are allowed or not- Returns:
- true if they are, by default false
-
getParamDisplayLabel
Gets the parameter definition display label from the properties file.- Parameters:
paramName- the name of the parameter- Returns:
- the diaplay label of the parameter
-
getParamDisplayLabel
Gets the parameter definition display label from the properties file.- Parameters:
paramName- the name of the parameterlocale- the name of the locale- Returns:
- the display label of the parameter
-
checkMandatoryProperties
protected void checkMandatoryProperties(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition) Checked whether all the mandatory parameters for the rule item have been assigned.- Parameters:
ruleItem- the rule itemruleItemDefinition- the rule item definition
-