Interface PersonalizationInfo
public interface PersonalizationInfo
Defines interface for all the Personalization mappings for an email provider.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(String attributeName, String replacementText) This function adds a personalization mappingThis function returns all attribute name and replacemenet text mappings.getMapping(String attributeName) This function returns the mapping corresponding to an attributeThis function returns the prefix to be used with replacement text.This function returns the suffix to be used with replacement text.voidremoveMapping(String attributeName) This function removes a personalization mappingvoidsetPrefixPattern(String prefixPattern) This function sets the prefix to be used for the replacement textvoidsetSuffixPattern(String suffixPattern) This function sets the suffix to be used with replacement text.booleanThis function tells whether prefix has to be added to replacement text or not.booleanThis function tells whether suffix has to be added to replacement text or not.
-
Field Details
-
PERSONALIZATION_KEY
- See Also:
-
-
Method Details
-
addMapping
This function adds a personalization mapping- Parameters:
attributeName- name of the attributereplacementText- replacement string to be used
-
removeMapping
This function removes a personalization mapping- Parameters:
attributeName- name of the attribute that needs to be removed.
-
getMapping
This function returns the mapping corresponding to an attribute- Parameters:
attributeName- attribute name- Returns:
- attribute replacement text for the attribute
-
getAllMappings
This function returns all attribute name and replacemenet text mappings.- Returns:
- A map containing all the mappings.
-
getPrefixPattern
String getPrefixPattern()This function returns the prefix to be used with replacement text.- Returns:
- The prefix
-
setPrefixPattern
This function sets the prefix to be used for the replacement text- Parameters:
prefixPattern- The prefix.
-
getSuffixPattern
String getSuffixPattern()This function returns the suffix to be used with replacement text.- Returns:
- The prefix
-
setSuffixPattern
This function sets the suffix to be used with replacement text.- Parameters:
suffixPattern-
-
usePrefix
boolean usePrefix()This function tells whether prefix has to be added to replacement text or not.- Returns:
- true if prefix has to be added and false otherwise.
-
useSuffix
boolean useSuffix()This function tells whether suffix has to be added to replacement text or not.- Returns:
- true if suffix has to be added and false otherwise.
-