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
Modifier and TypeFieldDescriptionprotected String
protected Date
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Date
protected Date
protected String
protected int
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.getName()
Returns the name of this template variation definition.Returns the optional resource name of the persisted template.Returns the referenced business key of theTemplateDefinition
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 benull
, usenew 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 benull
, usenew 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
Returnstrue
, if this template only has small content (e.g.void
setContentId
(String contentId) void
setCreationTime
(Date creationTime) void
setCreatorId
(String creatorId) void
setDeploymentId
(String deploymentId) void
setExternalId
(String externalId) void
void
setResourceName
(String resourceName) void
setTemplateDefinitionKey
(String templateDefinitionKey) void
setTenantId
(String tenantId) void
setValidFrom
(Date validFrom) void
setValidTo
(Date validTo) void
setVariationKey
(String variationKey) void
setVersion
(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 Details
-
templateDefinitionKey
-
version
protected int version -
deploymentId
-
tenantId
-
variationKey
-
name
-
validFrom
-
validTo
-
externalId
-
resourceName
-
contentId
-
creationTime
-
creatorId
-
-
Constructor Details
-
TemplateVariationDefinitionEntityImpl
public TemplateVariationDefinitionEntityImpl()
-
-
Method Details
-
getTemplateDefinitionKey
Description copied from interface:TemplateVariationDefinition
Returns the referenced business key of theTemplateDefinition
this variation is based on.- Specified by:
getTemplateDefinitionKey
in interfaceTemplateVariationDefinition
-
setTemplateDefinitionKey
- Specified by:
setTemplateDefinitionKey
in interfaceTemplateVariationDefinitionEntity
-
getVersion
public int getVersion()Description copied from interface:TemplateVariationDefinition
Returns the version of this template variation definition (increases upon a new deployment).- Specified by:
getVersion
in interfaceTemplateVariationDefinition
-
setVersion
public void setVersion(int version) - Specified by:
setVersion
in interfaceTemplateVariationDefinitionEntity
-
getDeploymentId
Description copied from interface:TemplateVariationDefinition
Returns the deployment id this definition variation was deployed with.- Specified by:
getDeploymentId
in interfaceTemplateVariationDefinition
-
setDeploymentId
- Specified by:
setDeploymentId
in interfaceTemplateVariationDefinitionEntity
-
getTenantId
Description copied from interface:TemplateVariationDefinition
Returns the id of the tenant this definition variation belongs to.- Specified by:
getTenantId
in interfaceTemplateVariationDefinition
-
setTenantId
- Specified by:
setTenantId
in interfaceTemplateVariationDefinitionEntity
-
getVariationKey
Description copied from interface:TemplateVariationDefinition
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).- Specified by:
getVariationKey
in interfaceTemplateVariationDefinition
-
setVariationKey
- Specified by:
setVariationKey
in interfaceTemplateVariationDefinitionEntity
-
getName
Description copied from interface:TemplateVariationDefinition
Returns the name of this template variation definition.- Specified by:
getName
in interfaceTemplateVariationDefinition
-
setName
- Specified by:
setName
in interfaceTemplateVariationDefinitionEntity
-
getValidFrom
Description copied from interface:TemplateVariationDefinition
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.- Specified by:
getValidFrom
in interfaceTemplateVariationDefinition
-
setValidFrom
- Specified by:
setValidFrom
in interfaceTemplateVariationDefinitionEntity
-
getValidTo
Description copied from interface:TemplateVariationDefinition
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.- Specified by:
getValidTo
in interfaceTemplateVariationDefinition
-
setValidTo
- Specified by:
setValidTo
in interfaceTemplateVariationDefinitionEntity
-
getExternalId
Description copied from interface:TemplateVariationDefinition
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).- Specified by:
getExternalId
in interfaceTemplateVariationDefinition
-
setExternalId
- Specified by:
setExternalId
in interfaceTemplateVariationDefinitionEntity
-
getResourceName
Description copied from interface:TemplateVariationDefinition
Returns the optional resource name of the persisted template.- Specified by:
getResourceName
in interfaceTemplateVariationDefinition
-
setResourceName
- Specified by:
setResourceName
in interfaceTemplateVariationDefinitionEntity
-
getContentId
Description copied from interface:TemplateVariationDefinition
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 (TemplateVariationDefinition.hasSmallContent()
returning true), the content id isnull
.- Specified by:
getContentId
in interfaceTemplateVariationDefinition
-
setContentId
- Specified by:
setContentId
in interfaceTemplateVariationDefinitionEntity
-
getCreationTime
-
setCreationTime
- Specified by:
setCreationTime
in interfaceTemplateVariationDefinitionEntity
-
getCreatorId
-
setCreatorId
- Specified by:
setCreatorId
in interfaceTemplateVariationDefinitionEntity
-
hasSmallContent
public boolean hasSmallContent()Description copied from interface:TemplateVariationDefinition
Returnstrue
, 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:
hasSmallContent
in interfaceTemplateVariationDefinition
-
getPersistentState
- Specified by:
getPersistentState
in interfaceEntity
-