Package org.alfresco.repo.action
Class ParameterizedItemDefinitionImpl
java.lang.Object
org.alfresco.repo.action.ParameterizedItemDefinitionImpl
- All Implemented Interfaces:
Serializable,ParameterizedItemDefinition
- Direct Known Subclasses:
ActionConditionDefinitionImpl,ActionDefinitionImpl
public abstract class ParameterizedItemDefinitionImpl
extends Object
implements ParameterizedItemDefinition, Serializable
Rule item implementation class
- Author:
- Roy Wetherall
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the parameterized item allows adhoc properties to be setThe description of the parameterized item definitiongetName()Get the name of the rule item.A list containing the parmameter defintions for this rule item.getParameterDefintion(String name) Get the parameter definition by namegetTitle()The title of the parameterized item definitionbooleanIndicates whether the parameterized item has any parameter definitionsvoidsetAdhocPropertiesAllowed(boolean adhocPropertiesAllowed) Set whether adhoc properties are allowedvoidsetDescriptionKey(String descriptionKey) Set the description I18N keyvoidsetLocalizedParameterDefinitions(Map<Locale, List<ParameterDefinition>> parameterDefinitions) Set the parameter definitions for the rule item with the locale specifiedvoidsetParameterDefinitions(List<ParameterDefinition> parameterDefinitions) Set the parameter definitions for the rule itemvoidsetTitleKey(String title) Set the title of the rule item
-
Constructor Details
-
ParameterizedItemDefinitionImpl
Constructor- Parameters:
name- the name
-
-
Method Details
-
getName
Description copied from interface:ParameterizedItemDefinitionGet the name of the rule item.The name is unique and is used to identify the rule item.
- Specified by:
getNamein interfaceParameterizedItemDefinition- Returns:
- the name of the rule action
- See Also:
-
setTitleKey
Set the title of the rule item- Parameters:
title- the title
-
getTitle
Description copied from interface:ParameterizedItemDefinitionThe title of the parameterized item definition- Specified by:
getTitlein interfaceParameterizedItemDefinition- Returns:
- the title
- See Also:
-
setDescriptionKey
Set the description I18N key- Parameters:
descriptionKey- the description key
-
getDescription
Description copied from interface:ParameterizedItemDefinitionThe description of the parameterized item definition- Specified by:
getDescriptionin interfaceParameterizedItemDefinition- Returns:
- the description
- See Also:
-
getAdhocPropertiesAllowed
public boolean getAdhocPropertiesAllowed()Description copied from interface:ParameterizedItemDefinitionIndicates whether the parameterized item allows adhoc properties to be set- Specified by:
getAdhocPropertiesAllowedin interfaceParameterizedItemDefinition- Returns:
- true if ashoc properties are allowed, false otherwise
- See Also:
-
setAdhocPropertiesAllowed
public void setAdhocPropertiesAllowed(boolean adhocPropertiesAllowed) Set whether adhoc properties are allowed- Parameters:
adhocPropertiesAllowed- true is adhoc properties are allowed, false otherwise
-
setLocalizedParameterDefinitions
public void setLocalizedParameterDefinitions(Map<Locale, List<ParameterDefinition>> parameterDefinitions) Set the parameter definitions for the rule item with the locale specified- Parameters:
parameterDefinitions- the parameter definitions
-
setParameterDefinitions
Set the parameter definitions for the rule item- Parameters:
parameterDefinitions- the parameter definitions
-
hasParameterDefinitions
public boolean hasParameterDefinitions()Description copied from interface:ParameterizedItemDefinitionIndicates whether the parameterized item has any parameter definitions- Specified by:
hasParameterDefinitionsin interfaceParameterizedItemDefinition- Returns:
- true if the parameterized item has any parameter definitions, false otherwise
- See Also:
-
getParameterDefinitions
Description copied from interface:ParameterizedItemDefinitionA list containing the parmameter defintions for this rule item.- Specified by:
getParameterDefinitionsin interfaceParameterizedItemDefinition- Returns:
- a list of parameter definitions
- See Also:
-
getParameterDefintion
Description copied from interface:ParameterizedItemDefinitionGet the parameter definition by name- Specified by:
getParameterDefintionin interfaceParameterizedItemDefinition- Parameters:
name- the name of the parameter- Returns:
- the parameter definition, null if none found
- See Also:
-