fix int/long data types
This commit is contained in:
parent
8440b9ec44
commit
1c88782ccb
@ -51,7 +51,7 @@ public interface AppDeploymentsApi {
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
ResultListDataRepresentation<AppDeployment> query(
|
||||
@QueryParam("nameLike") String nameLike,
|
||||
@QueryParam("tenantId") Integer tenantId,
|
||||
@QueryParam("tenantId") Long tenantId,
|
||||
@QueryParam("latest") Boolean latest,
|
||||
@QueryParam("start") Integer start,
|
||||
@QueryParam("sort") String sort,
|
||||
|
@ -29,7 +29,7 @@ public interface ProcessDefinitionsApi {
|
||||
@Produces({ "application/json" })
|
||||
ResultListDataRepresentation<ProcessDefinition> get(
|
||||
@QueryParam("latest") Boolean latest,
|
||||
@QueryParam("appDefinitionId") Integer appDefinitionId,
|
||||
@QueryParam("appDefinitionId") Long appDefinitionId,
|
||||
@QueryParam("deploymentId") String deploymentId);
|
||||
|
||||
}
|
||||
|
@ -40,13 +40,13 @@ public class AppDefinition {
|
||||
@JsonProperty("icon")
|
||||
private String icon;
|
||||
@JsonProperty("id")
|
||||
private Integer id;
|
||||
private Long id;
|
||||
@JsonProperty("modelId")
|
||||
private Integer modelId;
|
||||
private Long modelId;
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("tenantId")
|
||||
private Integer tenantId;
|
||||
private Long tenantId;
|
||||
@JsonProperty("theme")
|
||||
private String theme;
|
||||
@JsonIgnore
|
||||
@ -113,31 +113,31 @@ public class AppDefinition {
|
||||
}
|
||||
|
||||
@JsonProperty("id")
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonProperty("id")
|
||||
public void setId(Integer id) {
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AppDefinition withId(Integer id) {
|
||||
public AppDefinition withId(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("modelId")
|
||||
public Integer getModelId() {
|
||||
public Long getModelId() {
|
||||
return modelId;
|
||||
}
|
||||
|
||||
@JsonProperty("modelId")
|
||||
public void setModelId(Integer modelId) {
|
||||
public void setModelId(Long modelId) {
|
||||
this.modelId = modelId;
|
||||
}
|
||||
|
||||
public AppDefinition withModelId(Integer modelId) {
|
||||
public AppDefinition withModelId(Long modelId) {
|
||||
this.modelId = modelId;
|
||||
return this;
|
||||
}
|
||||
@ -158,16 +158,16 @@ public class AppDefinition {
|
||||
}
|
||||
|
||||
@JsonProperty("tenantId")
|
||||
public Integer getTenantId() {
|
||||
public Long getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
@JsonProperty("tenantId")
|
||||
public void setTenantId(Integer tenantId) {
|
||||
public void setTenantId(Long tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public AppDefinition withTenantId(Integer tenantId) {
|
||||
public AppDefinition withTenantId(Long tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
@ -1,205 +1,12 @@
|
||||
|
||||
package com.inteligr8.alfresco.activiti.model;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
|
||||
|
||||
/**
|
||||
* AppDefinitionRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"defaultAppId",
|
||||
"deploymentId",
|
||||
"description",
|
||||
"icon",
|
||||
"id",
|
||||
"modelId",
|
||||
"name",
|
||||
"tenantId",
|
||||
"theme"
|
||||
})
|
||||
public class AppDefinitionRepresentation {
|
||||
|
||||
@JsonProperty("defaultAppId")
|
||||
private String defaultAppId;
|
||||
@JsonProperty("deploymentId")
|
||||
private String deploymentId;
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
@JsonProperty("icon")
|
||||
private String icon;
|
||||
@JsonProperty("id")
|
||||
private Integer id;
|
||||
@JsonProperty("modelId")
|
||||
private Integer modelId;
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("tenantId")
|
||||
private Integer tenantId;
|
||||
@JsonProperty("theme")
|
||||
private String theme;
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
@JsonProperty("defaultAppId")
|
||||
public String getDefaultAppId() {
|
||||
return defaultAppId;
|
||||
}
|
||||
|
||||
@JsonProperty("defaultAppId")
|
||||
public void setDefaultAppId(String defaultAppId) {
|
||||
this.defaultAppId = defaultAppId;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withDefaultAppId(String defaultAppId) {
|
||||
this.defaultAppId = defaultAppId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("deploymentId")
|
||||
public String getDeploymentId() {
|
||||
return deploymentId;
|
||||
}
|
||||
|
||||
@JsonProperty("deploymentId")
|
||||
public void setDeploymentId(String deploymentId) {
|
||||
this.deploymentId = deploymentId;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withDeploymentId(String deploymentId) {
|
||||
this.deploymentId = deploymentId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
@JsonProperty("description")
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withDescription(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("icon")
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
@JsonProperty("icon")
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withIcon(String icon) {
|
||||
this.icon = icon;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("id")
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonProperty("id")
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withId(Integer id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("modelId")
|
||||
public Integer getModelId() {
|
||||
return modelId;
|
||||
}
|
||||
|
||||
@JsonProperty("modelId")
|
||||
public void setModelId(Integer modelId) {
|
||||
this.modelId = modelId;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withModelId(Integer modelId) {
|
||||
this.modelId = modelId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@JsonProperty("name")
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withName(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("tenantId")
|
||||
public Integer getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
@JsonProperty("tenantId")
|
||||
public void setTenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withTenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("theme")
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
||||
@JsonProperty("theme")
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withTheme(String theme) {
|
||||
this.theme = theme;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonAnyGetter
|
||||
public Map<String, Object> getAdditionalProperties() {
|
||||
return this.additionalProperties;
|
||||
}
|
||||
|
||||
@JsonAnySetter
|
||||
public void setAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
}
|
||||
|
||||
public AppDefinitionRepresentation withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
public class AppDefinitionRepresentation extends AppDefinition {
|
||||
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ public class Task extends Datum {
|
||||
@JsonProperty("parentTaskName")
|
||||
private String parentTaskName;
|
||||
@JsonProperty("priority")
|
||||
private Long priority;
|
||||
private Integer priority;
|
||||
@JsonProperty("processDefinitionCategory")
|
||||
private String processDefinitionCategory;
|
||||
@JsonProperty("processDefinitionDeploymentId")
|
||||
@ -105,7 +105,7 @@ public class Task extends Datum {
|
||||
@JsonProperty("processDefinitionName")
|
||||
private String processDefinitionName;
|
||||
@JsonProperty("processDefinitionVersion")
|
||||
private Long processDefinitionVersion;
|
||||
private Integer processDefinitionVersion;
|
||||
@JsonProperty("processInstanceId")
|
||||
private String processInstanceId;
|
||||
@JsonProperty("processInstanceName")
|
||||
@ -370,15 +370,15 @@ public class Task extends Datum {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getPriority() {
|
||||
public Integer getPriority() {
|
||||
return priority;
|
||||
}
|
||||
|
||||
public void setPriority(Long priority) {
|
||||
public void setPriority(Integer priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public Task withPriority(Long priority) {
|
||||
public Task withPriority(Integer priority) {
|
||||
this.priority = priority;
|
||||
return this;
|
||||
}
|
||||
@ -461,15 +461,15 @@ public class Task extends Datum {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getProcessDefinitionVersion() {
|
||||
public Integer getProcessDefinitionVersion() {
|
||||
return processDefinitionVersion;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionVersion(Long processDefinitionVersion) {
|
||||
public void setProcessDefinitionVersion(Integer processDefinitionVersion) {
|
||||
this.processDefinitionVersion = processDefinitionVersion;
|
||||
}
|
||||
|
||||
public Task withProcessDefinitionVersion(Long processDefinitionVersion) {
|
||||
public Task withProcessDefinitionVersion(Integer processDefinitionVersion) {
|
||||
this.processDefinitionVersion = processDefinitionVersion;
|
||||
return this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user