Class InvitationTemplateDef
- java.lang.Object
-
- pl.edu.icm.unity.base.msgtemplates.reg.InvitationTemplateDef
-
- All Implemented Interfaces:
MessageTemplateDefinition
@Component public class InvitationTemplateDef extends java.lang.Object implements MessageTemplateDefinition
Template definition of a message send with an invitation to fill a registration request.- Author:
- Krzysztof Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCODEstatic java.lang.StringEXPIRESstatic java.lang.StringFORM_NAMEstatic java.lang.StringNAMEstatic java.lang.StringURL-
Fields inherited from interface pl.edu.icm.unity.base.msgtemplates.MessageTemplateDefinition
CUSTOM_VAR_PREFIX, INCLUDE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description InvitationTemplateDef()
-
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
-
FORM_NAME
public static final java.lang.String FORM_NAME
- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
- See Also:
- Constant Field Values
-
URL
public static final java.lang.String URL
- See Also:
- Constant Field Values
-
EXPIRES
public static final java.lang.String EXPIRES
- 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
-
-