Class TemplateVariationDefinitionEntityImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.entity.AbstractEntity
-
- com.flowable.template.engine.impl.persistence.entity.AbstractTemplateEngineEntity
-
- com.flowable.template.engine.impl.persistence.entity.TemplateVariationDefinitionEntityImpl
-
- All Implemented Interfaces:
TemplateVariationDefinition,TemplateVariationDefinitionEntity,HasRevision,Entity
public class TemplateVariationDefinitionEntityImpl extends AbstractTemplateEngineEntity implements TemplateVariationDefinitionEntity
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcontentIdprotected DatecreationTimeprotected StringcreatorIdprotected StringdeploymentIdprotected StringexternalIdprotected Stringnameprotected StringresourceNameprotected StringtemplateDefinitionKeyprotected StringtenantIdprotected DatevalidFromprotected DatevalidToprotected StringvariationKeyprotected intversion-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description TemplateVariationDefinitionEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentId()Returns the optional id of the referenced content to retrieve the template variation content with the content engine.DategetCreationTime()StringgetCreatorId()StringgetDeploymentId()Returns the deployment id this definition variation was deployed with.StringgetExternalId()Returns the optional external id this template variation is linked with (e.g.StringgetName()Returns the name of this template variation definition.ObjectgetPersistentState()StringgetResourceName()Returns the optional resource name of the persisted template.StringgetTemplateDefinitionKey()Returns the referenced business key of theTemplateDefinitionthis variation is based on.StringgetTenantId()Returns the id of the tenant this definition variation belongs to.DategetValidFrom()Returns the timestamp from which this template variation is valid, must not benull, usenew Date(0L)instead if the variation definition should be valid back in time.DategetValidTo()Returns the timestamp until which this template variation is valid, must not benull, usenew Date(Long.MAX_VALUE)instead if the variation definition should be valid forever.StringgetVariationKey()Returns the single, composed variation key created out of all variation values this template is used for (e.g.intgetVersion()Returns the version of this template variation definition (increases upon a new deployment).booleanhasSmallContent()Returnstrue, if this template only has small content (e.g.voidsetContentId(String contentId)voidsetCreationTime(Date creationTime)voidsetCreatorId(String creatorId)voidsetDeploymentId(String deploymentId)voidsetExternalId(String externalId)voidsetName(String name)voidsetResourceName(String resourceName)voidsetTemplateDefinitionKey(String templateDefinitionKey)voidsetTenantId(String tenantId)voidsetValidFrom(Date validFrom)voidsetValidTo(Date validTo)voidsetVariationKey(String variationKey)voidsetVersion(int version)-
Methods inherited from class com.flowable.template.engine.impl.persistence.entity.AbstractTemplateEngineEntity
getIdPrefix
-
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
-
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Methods inherited from interface com.flowable.template.api.repository.TemplateVariationDefinition
getId
-
-
-
-
Field Detail
-
templateDefinitionKey
protected String templateDefinitionKey
-
version
protected int version
-
deploymentId
protected String deploymentId
-
tenantId
protected String tenantId
-
variationKey
protected String variationKey
-
name
protected String name
-
validFrom
protected Date validFrom
-
validTo
protected Date validTo
-
externalId
protected String externalId
-
resourceName
protected String resourceName
-
contentId
protected String contentId
-
creationTime
protected Date creationTime
-
creatorId
protected String creatorId
-
-
Method Detail
-
getTemplateDefinitionKey
public String getTemplateDefinitionKey()
Description copied from interface:TemplateVariationDefinitionReturns the referenced business key of theTemplateDefinitionthis variation is based on.- Specified by:
getTemplateDefinitionKeyin interfaceTemplateVariationDefinition
-
setTemplateDefinitionKey
public void setTemplateDefinitionKey(String templateDefinitionKey)
- Specified by:
setTemplateDefinitionKeyin interfaceTemplateVariationDefinitionEntity
-
getVersion
public int getVersion()
Description copied from interface:TemplateVariationDefinitionReturns the version of this template variation definition (increases upon a new deployment).- Specified by:
getVersionin interfaceTemplateVariationDefinition
-
setVersion
public void setVersion(int version)
- Specified by:
setVersionin interfaceTemplateVariationDefinitionEntity
-
getDeploymentId
public String getDeploymentId()
Description copied from interface:TemplateVariationDefinitionReturns the deployment id this definition variation was deployed with.- Specified by:
getDeploymentIdin interfaceTemplateVariationDefinition
-
setDeploymentId
public void setDeploymentId(String deploymentId)
- Specified by:
setDeploymentIdin interfaceTemplateVariationDefinitionEntity
-
getTenantId
public String getTenantId()
Description copied from interface:TemplateVariationDefinitionReturns the id of the tenant this definition variation belongs to.- Specified by:
getTenantIdin interfaceTemplateVariationDefinition
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantIdin interfaceTemplateVariationDefinitionEntity
-
getVariationKey
public String getVariationKey()
Description copied from interface:TemplateVariationDefinitionReturns the single, composed variation key created out of all variation values this template is used for (e.g. 'che_de' or 'mobile_de', etc).- Specified by:
getVariationKeyin interfaceTemplateVariationDefinition
-
setVariationKey
public void setVariationKey(String variationKey)
- Specified by:
setVariationKeyin interfaceTemplateVariationDefinitionEntity
-
getName
public String getName()
Description copied from interface:TemplateVariationDefinitionReturns the name of this template variation definition.- Specified by:
getNamein interfaceTemplateVariationDefinition
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceTemplateVariationDefinitionEntity
-
getValidFrom
public Date getValidFrom()
Description copied from interface:TemplateVariationDefinitionReturns the timestamp from which this template variation is valid, must not benull, usenew Date(0L)instead if the variation definition should be valid back in time.- Specified by:
getValidFromin interfaceTemplateVariationDefinition
-
setValidFrom
public void setValidFrom(Date validFrom)
- Specified by:
setValidFromin interfaceTemplateVariationDefinitionEntity
-
getValidTo
public Date getValidTo()
Description copied from interface:TemplateVariationDefinitionReturns the timestamp until which this template variation is valid, must not benull, usenew Date(Long.MAX_VALUE)instead if the variation definition should be valid forever.- Specified by:
getValidToin interfaceTemplateVariationDefinition
-
setValidTo
public void setValidTo(Date validTo)
- Specified by:
setValidToin interfaceTemplateVariationDefinitionEntity
-
getExternalId
public String getExternalId()
Description copied from interface:TemplateVariationDefinitionReturns 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).- Specified by:
getExternalIdin interfaceTemplateVariationDefinition
-
setExternalId
public void setExternalId(String externalId)
- Specified by:
setExternalIdin interfaceTemplateVariationDefinitionEntity
-
getResourceName
public String getResourceName()
Description copied from interface:TemplateVariationDefinitionReturns the optional resource name of the persisted template.- Specified by:
getResourceNamein interfaceTemplateVariationDefinition
-
setResourceName
public void setResourceName(String resourceName)
- Specified by:
setResourceNamein interfaceTemplateVariationDefinitionEntity
-
getContentId
public String getContentId()
Description copied from interface:TemplateVariationDefinitionReturns 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 (TemplateVariationDefinition.hasSmallContent()returning true), the content id isnull.- Specified by:
getContentIdin interfaceTemplateVariationDefinition
-
setContentId
public void setContentId(String contentId)
- Specified by:
setContentIdin interfaceTemplateVariationDefinitionEntity
-
getCreationTime
public Date getCreationTime()
-
setCreationTime
public void setCreationTime(Date creationTime)
- Specified by:
setCreationTimein interfaceTemplateVariationDefinitionEntity
-
getCreatorId
public String getCreatorId()
-
setCreatorId
public void setCreatorId(String creatorId)
- Specified by:
setCreatorIdin interfaceTemplateVariationDefinitionEntity
-
hasSmallContent
public boolean hasSmallContent()
Description copied from interface:TemplateVariationDefinitionReturnstrue, 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.- Specified by:
hasSmallContentin interfaceTemplateVariationDefinition
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentStatein interfaceEntity
-
-