+ * + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "id", + "appDefinition", + "created", + "createdBy", + "deploymentId", + "dmnDeploymentId" +}) +public class AppDeployment extends Datum { + + @JsonProperty("id") + private long id; + @JsonProperty("appDefinition") + private AppDefinition appDefinition; + @JsonProperty("created") + @JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX") + private OffsetDateTime created; + @JsonProperty("createdBy") + private UserLight createdBy; + @JsonProperty("deploymentId") + private String deploymentId; + @JsonProperty("dmnDeploymentId") + private Long dmnDeploymentId; + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public AppDeployment withId(long id) { + this.id = id; + return this; + } + + public AppDefinition getAppDefinition() { + return appDefinition; + } + + public void setAppDefinition(AppDefinition appDefinition) { + this.appDefinition = appDefinition; + } + + public AppDeployment withAppDefinition(AppDefinition appDefinition) { + this.appDefinition = appDefinition; + return this; + } + + public OffsetDateTime getCreated() { + return created; + } + + public void setCreated(OffsetDateTime created) { + this.created = created; + } + + public AppDeployment withCreated(OffsetDateTime created) { + this.created = created; + return this; + } + + public UserLight getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(UserLight createdBy) { + this.createdBy = createdBy; + } + + public AppDeployment withCreatedBy(UserLight createdBy) { + this.createdBy = createdBy; + return this; + } + + public String getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } + + public AppDeployment withDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + return this; + } + + public Long getDmnDeploymentId() { + return dmnDeploymentId; + } + + public void setDmnDeploymentId(Long dmnDeploymentId) { + this.dmnDeploymentId = dmnDeploymentId; + } + + public AppDeployment withDmnDeploymentId(Long dmnDeploymentId) { + this.dmnDeploymentId = dmnDeploymentId; + return this; + } + +} diff --git a/src/main/java/com/inteligr8/alfresco/activiti/model/Variable.java b/src/main/java/com/inteligr8/alfresco/activiti/model/Variable.java index 61e9bb5..4d8e275 100644 --- a/src/main/java/com/inteligr8/alfresco/activiti/model/Variable.java +++ b/src/main/java/com/inteligr8/alfresco/activiti/model/Variable.java @@ -1,89 +1,8 @@ package com.inteligr8.alfresco.activiti.model; import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; @JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "name", - "type", - "value" -}) -public class Variable { - - @JsonProperty("name") - private String name; - @JsonProperty("scope") - private String scope; - @JsonProperty("type") - private String type; - @JsonProperty("value") - private Object value; - - /** - * No args constructor for use in serialization - */ - public Variable() { - } - - public Variable(String name, String scope, String type, Object value) { - this.name = name; - this.scope = scope; - this.type = type; - this.value = value; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Variable withName(String name) { - this.name = name; - return this; - } - - public String getScope() { - return scope; - } - - public void setScope(String scope) { - this.scope = scope; - } - - public Variable withScope(String scope) { - this.scope = scope; - return this; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public Variable withType(String type) { - this.type = type; - return this; - } - - public Object getValue() { - return value; - } - - public void setValue(Object value) { - this.value = value; - } - - public Variable withValue(Object value) { - this.value = value; - return this; - } +public class Variable extends com.inteligr8.activiti.model.Variable { }