Interface TemplateVariationDefinition

All Known Subinterfaces:
TemplateVariationDefinitionEntity
All Known Implementing Classes:
TemplateVariationDefinitionEntityImpl

public interface TemplateVariationDefinition
This template variation definition holds one single variation of a 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.
Author:
Micha Kiener
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the optional id of the referenced content to retrieve the template variation content with the content engine.
    Returns the deployment id this definition variation was deployed with.
    Returns the optional external id this template variation is linked with (e.g.
    Returns the unique id of this template variation definition.
    Returns the name of this template variation definition.
    Returns the optional resource name of the persisted template.
    Returns the referenced business key of the TemplateDefinition this variation is based on.
    Returns the id of the tenant this definition variation belongs to.
    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.
    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.
    Returns the single, composed variation key created out of all variation values this template is used for (e.g.
    int
    Returns the version of this template variation definition (increases upon a new deployment).
    boolean
    Returns true, if this template only has small content (e.g.
  • Method Details

    • getId

      String getId()
      Returns the unique id of this template variation definition.
    • getTemplateDefinitionKey

      String getTemplateDefinitionKey()
      Returns the referenced business key of the TemplateDefinition this variation is based on.
    • getVersion

      int getVersion()
      Returns the version of this template variation definition (increases upon a new deployment).
    • getValidFrom

      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.
    • getValidTo

      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.
    • getDeploymentId

      String getDeploymentId()
      Returns the deployment id this definition variation was deployed with.
    • getTenantId

      String getTenantId()
      Returns the id of the tenant this definition variation belongs to.
    • getExternalId

      String getExternalId()
      Returns the optional external id this template variation is linked with (e.g. the id of a template message in WeChat or an externally referenced document template in a ECM system).
    • getVariationKey

      String getVariationKey()
      Returns the single, composed variation key created out of all variation values this template is used for (e.g. 'che_de' or 'mobile_de', etc).
    • getName

      String getName()
      Returns the name of this template variation definition.
    • hasSmallContent

      boolean hasSmallContent()
      Returns 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.
    • getContentId

      String getContentId()
      Returns the optional id of the referenced content to retrieve the template variation content with the content engine. If this template variation only contains small content (hasSmallContent() returning true), the content id is null.
    • getResourceName

      String getResourceName()
      Returns the optional resource name of the persisted template.