public interface TemplateVariationDefinition
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 |
getDeploymentId()
Returns the deployment id this definition variation was deployed with.
|
String |
getExternalId()
Returns the optional external id this template variation is linked with (e.g.
|
String |
getId()
Returns the unique id of this template variation definition.
|
String |
getName()
Returns the name of this template variation definition.
|
String |
getResourceName()
Returns the optional resource name of the persisted template.
|
String |
getTemplateDefinitionKey()
Returns the referenced business key of the
TemplateDefinition this variation is based on. |
String |
getTenantId()
Returns the id of the tenant this definition variation belongs to.
|
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 |
getVariationKey()
Returns the single, composed variation key created out of all variation values this template is used for (e.g.
|
int |
getVersion()
Returns the version of this template variation definition (increases upon a new deployment).
|
boolean |
hasSmallContent()
Returns
true , if this template only has small content (e.g. |
String getId()
String getTemplateDefinitionKey()
TemplateDefinition
this variation is based on.int getVersion()
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 getDeploymentId()
String getTenantId()
String getExternalId()
String getVariationKey()
String getName()
boolean hasSmallContent()
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 getContentId()
hasSmallContent()
returning true), the content id is null
.String getResourceName()