Class UserNotificationTemplateDef
- java.lang.Object
-
- pl.edu.icm.unity.base.msgtemplates.UserNotificationTemplateDef
-
- All Implemented Interfaces:
MessageTemplateDefinition
@Component public class UserNotificationTemplateDef extends java.lang.Object implements MessageTemplateDefinition
Defines a general purpose template with messages sent to existing users.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEstatic java.lang.StringUSER-
Fields inherited from interface pl.edu.icm.unity.base.msgtemplates.MessageTemplateDefinition
CUSTOM_VAR_PREFIX, INCLUDE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description UserNotificationTemplateDef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowCustomVariables()java.util.EnumSet<CommunicationTechnology>getCompatibleTechnologies()java.lang.StringgetDescriptionKey()java.lang.StringgetName()java.util.Map<java.lang.String,MessageTemplateVariable>getVariables()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
- 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.
-
allowCustomVariables
public boolean allowCustomVariables()
- Specified by:
allowCustomVariablesin interfaceMessageTemplateDefinition
-
-