public abstract class ParameterizedItemAbstractBase extends CommonResourceAbstractBase
Helper base class used by the action exector and condition evaluator implementations.
Modifier and Type | Field and Description |
---|---|
protected boolean |
adhocPropertiesAllowed
Indicates whether or not ad-hoc properties can be provided.
|
protected static String |
DISPLAY_LABEL |
protected RuntimeActionService |
runtimeActionService
Action service
|
name
Constructor and Description |
---|
ParameterizedItemAbstractBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addParameterDefinitions(List<ParameterDefinition> paramList)
Adds the parameter definitions to the list
|
protected void |
checkMandatoryProperties(ParameterizedItem ruleItem,
ParameterizedItemDefinition ruleItemDefinition)
Checked whether all the mandatory parameters for the rule item have been assigned.
|
protected boolean |
getAdhocPropertiesAllowed()
Indicates whether adhoc property definitions are allowed or not
|
protected String |
getDescriptionKey()
Gets the description I18N key
|
protected Map<Locale,List<ParameterDefinition>> |
getLocalizedParameterDefinitions()
Gets a list containing the parameter definitions for this rule item.
|
protected String |
getParamDisplayLabel(String paramName)
Gets the parameter definition display label from the properties file.
|
protected String |
getParamDisplayLabel(String paramName,
Locale locale)
Gets the parameter definition display label from the properties file.
|
protected List<ParameterDefinition> |
getParameterDefintions()
Gets a list containing the parameter definitions for this rule item.
|
protected String |
getTitleKey()
Gets the title I18N key
|
void |
setAdhocPropertiesAllowed(boolean allowed)
Setter for Spring injection of adhocPropertiesAllowed property
|
void |
setLocales(Set<Locale> locales) |
void |
setRuntimeActionService(RuntimeActionService runtimeActionService)
Sets the action service
|
String |
toString() |
setBeanName
protected static final String DISPLAY_LABEL
protected boolean adhocPropertiesAllowed
protected RuntimeActionService runtimeActionService
public String toString()
protected List<ParameterDefinition> getParameterDefintions()
protected abstract void addParameterDefinitions(List<ParameterDefinition> paramList)
paramList
- the parameter definitions listprotected Map<Locale,List<ParameterDefinition>> getLocalizedParameterDefinitions()
public void setRuntimeActionService(RuntimeActionService runtimeActionService)
runtimeActionService
- the action serviceprotected String getTitleKey()
protected String getDescriptionKey()
public void setAdhocPropertiesAllowed(boolean allowed)
allowed
- booleanprotected boolean getAdhocPropertiesAllowed()
protected String getParamDisplayLabel(String paramName)
paramName
- the name of the parameterprotected String getParamDisplayLabel(String paramName, Locale locale)
paramName
- the name of the parameterlocale
- the name of the localeprotected void checkMandatoryProperties(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition)
ruleItem
- the rule itemruleItemDefinition
- the rule item definitionCopyright © 2005–2017 Alfresco Software. All rights reserved.