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,org.flowable.common.engine.impl.db.HasRevision,org.flowable.common.engine.impl.persistence.entity.Entity
public class TemplateVariationDefinitionEntityImpl extends AbstractTemplateEngineEntity implements TemplateVariationDefinitionEntity
- Author:
- Tijs Rademakers
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcontentIdprotected java.util.DatecreationTimeprotected java.lang.StringcreatorIdprotected java.lang.StringdeploymentIdprotected java.lang.StringexternalIdprotected java.lang.Stringnameprotected java.lang.StringresourceNameprotected java.lang.StringtemplateDefinitionKeyprotected java.lang.StringtenantIdprotected java.util.DatevalidFromprotected java.util.DatevalidToprotected java.lang.StringvariationKeyprotected intversion -
Constructor Summary
Constructors Constructor Description TemplateVariationDefinitionEntityImpl() -
Method Summary
Modifier and Type Method Description java.lang.StringgetContentId()Returns the optional id of the referenced content to retrieve the template variation content with the content engine.java.util.DategetCreationTime()java.lang.StringgetCreatorId()java.lang.StringgetDeploymentId()Returns the deployment id this definition variation was deployed with.java.lang.StringgetExternalId()Returns the optional external id this template variation is linked with (e.g.java.lang.StringgetName()Returns the name of this template variation definition.java.lang.ObjectgetPersistentState()java.lang.StringgetResourceName()Returns the optional resource name of the persisted template.java.lang.StringgetTemplateDefinitionKey()Returns the referenced business key of theTemplateDefinitionthis variation is based on.java.lang.StringgetTenantId()Returns the id of the tenant this definition variation belongs to.java.util.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.java.util.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.java.lang.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(java.lang.String contentId)voidsetCreationTime(java.util.Date creationTime)voidsetCreatorId(java.lang.String creatorId)voidsetDeploymentId(java.lang.String deploymentId)voidsetExternalId(java.lang.String externalId)voidsetName(java.lang.String name)voidsetResourceName(java.lang.String resourceName)voidsetTemplateDefinitionKey(java.lang.String templateDefinitionKey)voidsetTenantId(java.lang.String tenantId)voidsetValidFrom(java.util.Date validFrom)voidsetValidTo(java.util.Date validTo)voidsetVariationKey(java.lang.String variationKey)voidsetVersion(int version)Methods inherited from class com.flowable.template.engine.impl.persistence.entity.AbstractTemplateEngineEntity
getIdPrefixMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdatedMethods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevisionMethods inherited from interface com.flowable.template.api.repository.TemplateVariationDefinition
getId
-
Field Details
-
templateDefinitionKey
protected java.lang.String templateDefinitionKey -
version
protected int version -
deploymentId
protected java.lang.String deploymentId -
tenantId
protected java.lang.String tenantId -
variationKey
protected java.lang.String variationKey -
name
protected java.lang.String name -
validFrom
protected java.util.Date validFrom -
validTo
protected java.util.Date validTo -
externalId
protected java.lang.String externalId -
resourceName
protected java.lang.String resourceName -
contentId
protected java.lang.String contentId -
creationTime
protected java.util.Date creationTime -
creatorId
protected java.lang.String creatorId
-
-
Constructor Details
-
TemplateVariationDefinitionEntityImpl
public TemplateVariationDefinitionEntityImpl()
-
-
Method Details
-
getTemplateDefinitionKey
public java.lang.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(java.lang.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 java.lang.String getDeploymentId()Description copied from interface:TemplateVariationDefinitionReturns the deployment id this definition variation was deployed with.- Specified by:
getDeploymentIdin interfaceTemplateVariationDefinition
-
setDeploymentId
public void setDeploymentId(java.lang.String deploymentId)- Specified by:
setDeploymentIdin interfaceTemplateVariationDefinitionEntity
-
getTenantId
public java.lang.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(java.lang.String tenantId)- Specified by:
setTenantIdin interfaceTemplateVariationDefinitionEntity
-
getVariationKey
public java.lang.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(java.lang.String variationKey)- Specified by:
setVariationKeyin interfaceTemplateVariationDefinitionEntity
-
getName
public java.lang.String getName()Description copied from interface:TemplateVariationDefinitionReturns the name of this template variation definition.- Specified by:
getNamein interfaceTemplateVariationDefinition
-
setName
public void setName(java.lang.String name)- Specified by:
setNamein interfaceTemplateVariationDefinitionEntity
-
getValidFrom
public java.util.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(java.util.Date validFrom)- Specified by:
setValidFromin interfaceTemplateVariationDefinitionEntity
-
getValidTo
public java.util.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(java.util.Date validTo)- Specified by:
setValidToin interfaceTemplateVariationDefinitionEntity
-
getExternalId
public java.lang.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(java.lang.String externalId)- Specified by:
setExternalIdin interfaceTemplateVariationDefinitionEntity
-
getResourceName
public java.lang.String getResourceName()Description copied from interface:TemplateVariationDefinitionReturns the optional resource name of the persisted template.- Specified by:
getResourceNamein interfaceTemplateVariationDefinition
-
setResourceName
public void setResourceName(java.lang.String resourceName)- Specified by:
setResourceNamein interfaceTemplateVariationDefinitionEntity
-
getContentId
public java.lang.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(java.lang.String contentId)- Specified by:
setContentIdin interfaceTemplateVariationDefinitionEntity
-
getCreationTime
public java.util.Date getCreationTime() -
setCreationTime
public void setCreationTime(java.util.Date creationTime)- Specified by:
setCreationTimein interfaceTemplateVariationDefinitionEntity
-
getCreatorId
public java.lang.String getCreatorId() -
setCreatorId
public void setCreatorId(java.lang.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 java.lang.Object getPersistentState()- Specified by:
getPersistentStatein interfaceorg.flowable.common.engine.impl.persistence.entity.Entity
-