Class NotificationServiceProperties.MessageProperties
java.lang.Object
com.broadleafcommerce.notification.service.autoconfigure.NotificationServiceProperties.MessageProperties
- Enclosing class:
- NotificationServiceProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllows specifying variable values that should be used for a particular application ID.Allows specifying variable values that should be used for a particular tenant ID when in a tenant context or when application-specific values are unavailable.voidsetVariablesByApplicationId(Map<String, NotificationServiceProperties.MessageProperties.MessageVariables> variablesByApplicationId) Allows specifying variable values that should be used for a particular application ID.voidsetVariablesByTenantId(Map<String, NotificationServiceProperties.MessageProperties.MessageVariables> variablesByTenantId) Allows specifying variable values that should be used for a particular tenant ID when in a tenant context or when application-specific values are unavailable.toString()
-
Constructor Details
-
MessageProperties
public MessageProperties()
-
-
Method Details
-
getVariablesByApplicationId
public Map<String,NotificationServiceProperties.MessageProperties.MessageVariables> getVariablesByApplicationId()Allows specifying variable values that should be used for a particular application ID. Keys should be application IDs. The properties are bound to CaseInsensitiveMap to ensure application ID is consistently recognized regardless of the case the property is provided in. For example, when provided from ENV, Spring will typically bind keys as all-lowercase (ex: 'abcd45e'), and when provided from yaml, the case may be different (ex: 'AbcD34E') - by using CaseInsensitiveMap, we ensure both map to the same ID key. -
getVariablesByTenantId
public Map<String,NotificationServiceProperties.MessageProperties.MessageVariables> getVariablesByTenantId()Allows specifying variable values that should be used for a particular tenant ID when in a tenant context or when application-specific values are unavailable. Keys should be tenant IDs. The properties are bound to CaseInsensitiveMap to ensure tenant ID is consistently recognized regardless of the case the property is provided in. For example, when provided from ENV, Spring will typically bind keys as all-lowercase (ex: 'abcd45e'), and when provided from yaml, the case may be different (ex: 'AbcD34E') - by using CaseInsensitiveMap, we ensure both map to the same ID key. -
setVariablesByApplicationId
public void setVariablesByApplicationId(Map<String, NotificationServiceProperties.MessageProperties.MessageVariables> variablesByApplicationId) Allows specifying variable values that should be used for a particular application ID. Keys should be application IDs. The properties are bound to CaseInsensitiveMap to ensure application ID is consistently recognized regardless of the case the property is provided in. For example, when provided from ENV, Spring will typically bind keys as all-lowercase (ex: 'abcd45e'), and when provided from yaml, the case may be different (ex: 'AbcD34E') - by using CaseInsensitiveMap, we ensure both map to the same ID key. -
setVariablesByTenantId
public void setVariablesByTenantId(Map<String, NotificationServiceProperties.MessageProperties.MessageVariables> variablesByTenantId) Allows specifying variable values that should be used for a particular tenant ID when in a tenant context or when application-specific values are unavailable. Keys should be tenant IDs. The properties are bound to CaseInsensitiveMap to ensure tenant ID is consistently recognized regardless of the case the property is provided in. For example, when provided from ENV, Spring will typically bind keys as all-lowercase (ex: 'abcd45e'), and when provided from yaml, the case may be different (ex: 'AbcD34E') - by using CaseInsensitiveMap, we ensure both map to the same ID key. -
toString
-