Class GenericMessageTemplateDef
- java.lang.Object
-
- pl.edu.icm.unity.base.msgtemplates.GenericMessageTemplateDef
-
- All Implemented Interfaces:
MessageTemplateDefinition
@Component public class GenericMessageTemplateDef extends java.lang.Object implements MessageTemplateDefinition
This message template definition is not used directly, but can be used to create parts of template which are reused in other templates.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME-
Fields inherited from interface pl.edu.icm.unity.base.msgtemplates.MessageTemplateDefinition
CUSTOM_VAR_PREFIX, INCLUDE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description GenericMessageTemplateDef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.EnumSet<CommunicationTechnology>getCompatibleTechnologies()java.lang.StringgetDescriptionKey()java.lang.StringgetName()java.util.Map<java.lang.String,MessageTemplateVariable>getVariables()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pl.edu.icm.unity.base.msgtemplates.MessageTemplateDefinition
allowCustomVariables
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptionKey
public java.lang.String getDescriptionKey()
- Specified by:
getDescriptionKeyin interfaceMessageTemplateDefinition- Returns:
- message bundle key with the description of the template definition, with information on the purpose of the messages created with this template.
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceMessageTemplateDefinition- Returns:
- unique name of the message template definition
-
getVariables
public java.util.Map<java.lang.String,MessageTemplateVariable> getVariables()
- Specified by:
getVariablesin interfaceMessageTemplateDefinition- Returns:
- map of variables supported by this template consumer. The map keys are variable names. The values are the keys in the message bundle with descriptions.
-
getCompatibleTechnologies
public java.util.EnumSet<CommunicationTechnology> getCompatibleTechnologies()
- Specified by:
getCompatibleTechnologiesin interfaceMessageTemplateDefinition- Returns:
- set of supported facilities. Message from the template can be sent only by notification channels which are using this facilities.
-
-