Package org.flowable.ui.modeler.model
Class ModelRepresentation
- java.lang.Object
-
- org.flowable.ui.common.model.AbstractRepresentation
-
- org.flowable.ui.modeler.model.ModelRepresentation
-
- Direct Known Subclasses:
AppDefinitionListModelRepresentation
public class ModelRepresentation extends AbstractRepresentation
Representation of process-models, both current and historic models.- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcommentprotected StringcreatedByprotected Stringdescriptionprotected Stringidprotected Stringkeyprotected DatelastUpdatedprotected StringlastUpdatedByprotected booleanlatestVersionprotected IntegermodelTypeprotected Stringnameprotected StringtenantIdprotected intversion
-
Constructor Summary
Constructors Constructor Description ModelRepresentation()ModelRepresentation(AbstractModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComment()StringgetCreatedBy()StringgetDescription()StringgetId()StringgetKey()DategetLastUpdated()StringgetLastUpdatedBy()IntegergetModelType()StringgetName()StringgetTenantId()intgetVersion()voidinitialize(AbstractModel model)booleanisLatestVersion()voidsetComment(String comment)voidsetCreatedBy(String createdBy)voidsetDescription(String description)voidsetId(String id)voidsetKey(String key)voidsetLastUpdated(Date lastUpdated)voidsetLastUpdatedBy(String lastUpdatedBy)voidsetLatestVersion(boolean latestVersion)voidsetModelType(Integer modelType)voidsetName(String name)voidsetTenantId(String tenantId)voidsetVersion(int version)ModeltoModel()voidupdateModel(Model model)Update all editable properties of the givenModelbased on the values in this instance.
-
-
-
Field Detail
-
id
protected String id
-
name
protected String name
-
key
protected String key
-
description
protected String description
-
createdBy
protected String createdBy
-
lastUpdatedBy
protected String lastUpdatedBy
-
lastUpdated
protected Date lastUpdated
-
latestVersion
protected boolean latestVersion
-
version
protected int version
-
comment
protected String comment
-
modelType
protected Integer modelType
-
tenantId
protected String tenantId
-
-
Constructor Detail
-
ModelRepresentation
public ModelRepresentation(AbstractModel model)
-
ModelRepresentation
public ModelRepresentation()
-
-
Method Detail
-
initialize
public void initialize(AbstractModel model)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getLastUpdated
public Date getLastUpdated()
-
setLastUpdated
public void setLastUpdated(Date lastUpdated)
-
getCreatedBy
public String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
setLatestVersion
public void setLatestVersion(boolean latestVersion)
-
isLatestVersion
public boolean isLatestVersion()
-
getVersion
public int getVersion()
-
setVersion
public void setVersion(int version)
-
getLastUpdatedBy
public String getLastUpdatedBy()
-
setLastUpdatedBy
public void setLastUpdatedBy(String lastUpdatedBy)
-
setComment
public void setComment(String comment)
-
getComment
public String getComment()
-
getModelType
public Integer getModelType()
-
setModelType
public void setModelType(Integer modelType)
-
getTenantId
public String getTenantId()
-
setTenantId
public void setTenantId(String tenantId)
-
toModel
public Model toModel()
-
-