public interface TemplateVariationModel
TemplateDefinition
for one combination of variants like language, country, etc.
The variation key returned with getVariationKey()
returns a composed value of all variations as a single value.Modifier and Type | Method and Description |
---|---|
String |
getContentId()
Returns the optional id of the referenced content to retrieve the template variation content with the content engine.
|
String |
getDescription()
Returns the optional description of this template variation definition, describing where and how it might be used.
|
String |
getExternalId()
Returns the optional external id this template variation is linked with (e.g.
|
String |
getKey()
Returns a composed key for this specific variation of the template definition which is a combination of the template definition key returned by
getTemplateDefinitionKey() and the variation key returned by getVariationKey() . |
String |
getName()
Returns the optional name for this variation which might be used for template management as it does not have an effect on the template rendering itself.
|
List<TemplateParameter> |
getParameters()
Returns an optional list of parameters needed for this template variation in order to create or render it.
|
String |
getTemplateDefinitionKey()
Returns the referenced business key of the
TemplateDefinition this variation is based on. |
Date |
getValidFrom()
Returns the timestamp from which this template variation is valid, must not be
null , use new Date(0L) instead if the variation definition
should be valid back in time. |
Date |
getValidTo()
Returns the timestamp until which this template variation is valid, must not be
null , use new Date(Long.MAX_VALUE) instead if the
variation definition should be valid forever. |
String |
getVariationContent()
If this variation only contains small content (e.g.
|
String |
getVariationContentResource()
Returns the resource string in case the content is referenced using a Spring Resource.
|
String |
getVariationKey()
Returns the single, composed variation key created out of all variation values this template is used for (e.g.
|
String |
getVersionTimestamp()
Returns the version timestamp for this template variation definition that is used to check if a new template variation needs to be deployed.
|
boolean |
hasVariationContent()
Returns
true , if this template only has small content (e.g. |
boolean |
isEditable()
Returns if the template variation is editable at runtime.
|
String getTemplateDefinitionKey()
TemplateDefinition
this variation is based on.String getKey()
getTemplateDefinitionKey()
and the variation key returned by getVariationKey()
.String getName()
String getDescription()
Date getValidFrom()
null
, use new Date(0L)
instead if the variation definition
should be valid back in time.Date getValidTo()
null
, use new Date(Long.MAX_VALUE)
instead if the
variation definition should be valid forever.String getExternalId()
String getVariationKey()
boolean hasVariationContent()
true
, if this template only has small content (e.g. a message or email template), false
, if the content needs to be retrieved
with the content engine.String getVariationContent()
String getVariationContentResource()
String getContentId()
hasVariationContent()
returning true), the content id is null
.boolean isEditable()
String getVersionTimestamp()
List<TemplateParameter> getParameters()