Merge branch 'develop' into stable
This commit is contained in:
commit
2c77100246
60
pom.xml
60
pom.xml
@ -4,17 +4,19 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.inteligr8.alfresco</groupId>
|
||||
<artifactId>aps-public-rest-api</artifactId>
|
||||
<version>1.1.3</version>
|
||||
<version>1.2.0</version>
|
||||
<name>Alfresco Process Services ReST API Client for Java</name>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
|
||||
|
||||
<!-- If you want to build for your specific version, point to your own
|
||||
installation -->
|
||||
<aps.baseUrl>https://activiti.alfresco.com</aps.baseUrl>
|
||||
<aps.baseUrl>http://localhost:8080</aps.baseUrl>
|
||||
<aps.app.tag>aps1</aps.app.tag>
|
||||
|
||||
<junit.version>5.7.2</junit.version>
|
||||
<spring.version>5.2.14.RELEASE</spring.version>
|
||||
@ -46,6 +48,12 @@
|
||||
<version>${jersey.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.glassfish.jersey.media</groupId>
|
||||
<artifactId>jersey-media-multipart</artifactId>
|
||||
<version>${jersey.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.glassfish.jersey.inject</groupId>
|
||||
<artifactId>jersey-hk2</artifactId>
|
||||
@ -80,6 +88,12 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<classifier>${aps.app.tag}</classifier>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.0.0-M5</version>
|
||||
@ -128,6 +142,7 @@
|
||||
<id>raml-codegen</id>
|
||||
<properties>
|
||||
<aps.ramlUrl>${aps.baseUrl}/activiti-app/raml/activiti.raml</aps.ramlUrl>
|
||||
<basePackage>com.inteligr8.alfresco.activiti</basePackage>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
@ -137,31 +152,13 @@
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>src/main/java</directory>
|
||||
<directory>src/gen/java</directory>
|
||||
<includes>
|
||||
<include>com/inteligr8/alfresco/activiti/raml/**/*</include>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
</fileset>
|
||||
</filesets>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>delete-extras</id>
|
||||
<phase>process-sources</phase>
|
||||
<goals><goal>clean</goal></goals>
|
||||
<configuration>
|
||||
<excludeDefaultDirectories>true</excludeDefaultDirectories>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>${project.build.directory}/ramlgen/java</directory>
|
||||
<includes>
|
||||
<include>com/inteligr8/alfresco/activiti/raml/**/*__*.java</include>
|
||||
</includes>
|
||||
</fileset>
|
||||
</filesets>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.googlecode.maven-download-plugin</groupId>
|
||||
@ -241,22 +238,23 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.mule.raml.codegen</groupId>
|
||||
<artifactId>raml-client-generator-maven-plugin</artifactId>
|
||||
<version>0.11</version>
|
||||
<groupId>org.raml.jaxrs</groupId>
|
||||
<artifactId>raml-to-jaxrs-maven-plugin</artifactId>
|
||||
<version>3.0.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>raml-aps-codegen</id>
|
||||
<id>raml-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate-client</goal>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<basePackage>com.inteligr8.alfresco.activiti.raml</basePackage>
|
||||
<resourcePackage>${basePackage}.resource</resourcePackage>
|
||||
<modelPackage>${basePackage}.model</modelPackage>
|
||||
<supportPackage>${basePackage}.support</supportPackage>
|
||||
<generateTypesWith>jackson</generateTypesWith>
|
||||
<ramlFile>${project.build.directory}/regexed/activiti.raml</ramlFile>
|
||||
<includeAdditionalProperties>false</includeAdditionalProperties>
|
||||
<outputDir>${project.build.directory}/ramlgen/java</outputDir>
|
||||
<outputVersion>v2</outputVersion>
|
||||
<outputDirectory>${basedir}/src/gen/java</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
@ -1,7 +1,9 @@
|
||||
package com.inteligr8.alfresco.activiti;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.api.AdminApi;
|
||||
import com.inteligr8.alfresco.activiti.api.AppDefinitionsApi;
|
||||
import com.inteligr8.alfresco.activiti.api.AppVersionApi;
|
||||
import com.inteligr8.alfresco.activiti.api.ModelsApi;
|
||||
import com.inteligr8.alfresco.activiti.api.ProcessInstancesApi;
|
||||
import com.inteligr8.alfresco.activiti.api.ProfileApi;
|
||||
import com.inteligr8.alfresco.activiti.api.TasksApi;
|
||||
@ -37,6 +39,14 @@ public abstract class ApsPublicRestApi {
|
||||
return this.getApi(authFilter, AdminApi.class);
|
||||
}
|
||||
|
||||
public AppDefinitionsApi getAppDefinitionsApi() {
|
||||
return this.getApi(AppDefinitionsApi.class);
|
||||
}
|
||||
|
||||
public AppDefinitionsApi getAppDefinitionsApi(AuthorizationFilter authFilter) {
|
||||
return this.getApi(authFilter, AppDefinitionsApi.class);
|
||||
}
|
||||
|
||||
public AppVersionApi getAppVersionApi() {
|
||||
return this.getApi(AppVersionApi.class);
|
||||
}
|
||||
@ -45,6 +55,14 @@ public abstract class ApsPublicRestApi {
|
||||
return this.getApi(authFilter, AppVersionApi.class);
|
||||
}
|
||||
|
||||
public ModelsApi getModelsApi() {
|
||||
return this.getApi(ModelsApi.class);
|
||||
}
|
||||
|
||||
public ModelsApi getModelsApi(AuthorizationFilter authFilter) {
|
||||
return this.getApi(authFilter, ModelsApi.class);
|
||||
}
|
||||
|
||||
public ProcessInstancesApi getProcessInstancesApi() {
|
||||
return this.getApi(ProcessInstancesApi.class);
|
||||
}
|
||||
|
@ -4,6 +4,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.api.AppDefinitionsCxfApi;
|
||||
import com.inteligr8.rs.AuthorizationFilter;
|
||||
import com.inteligr8.rs.Client;
|
||||
import com.inteligr8.rs.ClientConfiguration;
|
||||
|
||||
@ -42,5 +44,13 @@ public class ApsPublicRestApiCxfImpl extends ApsPublicRestApi {
|
||||
Client getClient() {
|
||||
return this.client;
|
||||
}
|
||||
|
||||
public AppDefinitionsCxfApi getAppDefinitionsCxfApi() {
|
||||
return this.getApi(AppDefinitionsCxfApi.class);
|
||||
}
|
||||
|
||||
public AppDefinitionsCxfApi getAppDefinitionsCxfApi(AuthorizationFilter authFilter) {
|
||||
return this.getApi(authFilter, AppDefinitionsCxfApi.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,6 +4,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.api.AppDefinitionsJerseyApi;
|
||||
import com.inteligr8.rs.AuthorizationFilter;
|
||||
import com.inteligr8.rs.Client;
|
||||
import com.inteligr8.rs.ClientConfiguration;
|
||||
|
||||
@ -42,5 +44,13 @@ public class ApsPublicRestApiJerseyImpl extends ApsPublicRestApi {
|
||||
Client getClient() {
|
||||
return this.client;
|
||||
}
|
||||
|
||||
public AppDefinitionsJerseyApi getAppDefinitionsJerseyApi() {
|
||||
return this.getApi(AppDefinitionsJerseyApi.class);
|
||||
}
|
||||
|
||||
public AppDefinitionsJerseyApi getAppDefinitionsJerseyApi(AuthorizationFilter authFilter) {
|
||||
return this.getApi(authFilter, AppDefinitionsJerseyApi.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3,11 +3,12 @@ package com.inteligr8.alfresco.activiti.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.QueryParam;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.model.Group;
|
||||
import com.inteligr8.alfresco.activiti.model.Tenant;
|
||||
|
||||
@Path("/api/enterprise/admin")
|
||||
@ -15,8 +16,15 @@ public interface AdminApi {
|
||||
|
||||
@GET
|
||||
@Path("/tenants")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
public List<Tenant> getTenants();
|
||||
|
||||
@GET
|
||||
@Path("/groups")
|
||||
@Produces({ "application/json" })
|
||||
public List<Group> getGroups(
|
||||
@QueryParam("tenantId") Long tenantId,
|
||||
@QueryParam("functional") Boolean functional,
|
||||
@QueryParam("summary") Boolean summary);
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,57 @@
|
||||
|
||||
package com.inteligr8.alfresco.activiti.api;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.DELETE;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.PUT;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionPublishRepresentation;
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionSaveRepresentation;
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
||||
|
||||
@Path("/api/enterprise/app-definitions")
|
||||
public interface AppDefinitionsApi {
|
||||
|
||||
@GET
|
||||
@Path("{modelId}")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionRepresentation get(
|
||||
@PathParam("modelId") Long appId);
|
||||
|
||||
@PUT
|
||||
@Path("{modelId}")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionUpdateResultRepresentation update(
|
||||
@PathParam("modelId") Long appId,
|
||||
AppDefinitionSaveRepresentation updatedModel);
|
||||
|
||||
@DELETE
|
||||
@Path("{appDefinitionId}")
|
||||
void delete(
|
||||
@PathParam("appDefinitionId") Long appId);
|
||||
|
||||
@GET
|
||||
@Path("{modelId}/export")
|
||||
@Produces({ MediaType.APPLICATION_JSON, "application/zip" })
|
||||
File export(
|
||||
@PathParam("modelId") Long appId);
|
||||
|
||||
@POST
|
||||
@Path("{modelId}/publish")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionUpdateResultRepresentation publish(
|
||||
@PathParam("modelId") Long appId,
|
||||
AppDefinitionPublishRepresentation publishModel);
|
||||
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
|
||||
package com.inteligr8.alfresco.activiti.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
||||
|
||||
@Path("/api/enterprise/app-definitions")
|
||||
public interface AppDefinitionsCxfApi {
|
||||
|
||||
@POST
|
||||
@Path("import")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionRepresentation import_(
|
||||
List<Attachment> attachments);
|
||||
|
||||
@POST
|
||||
@Path("{modelId}/import")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionRepresentation import_(
|
||||
@PathParam("modelId") Long appId,
|
||||
List<Attachment> attachments);
|
||||
|
||||
@POST
|
||||
@Path("publish-app")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionUpdateResultRepresentation publishApp(
|
||||
List<Attachment> attachments);
|
||||
|
||||
@POST
|
||||
@Path("{modelId}/publish-app")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionUpdateResultRepresentation publishApp(
|
||||
@PathParam("modelId") Long appId,
|
||||
List<Attachment> attachments);
|
||||
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
|
||||
package com.inteligr8.alfresco.activiti.api;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
|
||||
import org.glassfish.jersey.media.multipart.FormDataParam;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
||||
|
||||
@Path("/api/enterprise/app-definitions")
|
||||
public interface AppDefinitionsJerseyApi {
|
||||
|
||||
@POST
|
||||
@Path("import")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionRepresentation import_(
|
||||
@FormDataParam("file") InputStream filedataStream,
|
||||
@FormDataParam("file") FormDataContentDisposition filedataDisposition);
|
||||
|
||||
@POST
|
||||
@Path("{modelId}/import")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionRepresentation import_(
|
||||
@PathParam("modelId") Long appId,
|
||||
@FormDataParam("file") InputStream filedataStream,
|
||||
@FormDataParam("file") FormDataContentDisposition filedataDisposition);
|
||||
|
||||
@POST
|
||||
@Path("publish-app")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionUpdateResultRepresentation publishApp(
|
||||
@FormDataParam("file") InputStream filedataStream,
|
||||
@FormDataParam("file") FormDataContentDisposition filedataDisposition);
|
||||
|
||||
@POST
|
||||
@Path("{modelId}/publish-app")
|
||||
@Consumes({ MediaType.APPLICATION_JSON, "application/zip", MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
AppDefinitionUpdateResultRepresentation publishApp(
|
||||
@PathParam("modelId") Long appId,
|
||||
@FormDataParam("file") InputStream filedataStream,
|
||||
@FormDataParam("file") FormDataContentDisposition filedataDisposition);
|
||||
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
|
||||
package com.inteligr8.alfresco.activiti.api;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.QueryParam;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
||||
|
||||
@Path("/api/enterprise/models")
|
||||
public interface ModelsApi {
|
||||
|
||||
enum ModelType {
|
||||
Process(0),
|
||||
Form(2),
|
||||
App(3);
|
||||
|
||||
private int id;
|
||||
private ModelType(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
@GET
|
||||
@Produces({ "application/json" })
|
||||
public ResultListDataRepresentation get(
|
||||
@QueryParam("filter") String filter,
|
||||
@QueryParam("sort") String sort,
|
||||
@QueryParam("modelType") Integer modelType,
|
||||
@QueryParam("referenceId") Long referenceId);
|
||||
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
|
||||
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 AppDefinition {
|
||||
|
||||
@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 AppDefinition 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 AppDefinition 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 AppDefinition 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 AppDefinition 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 AppDefinition 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 AppDefinition 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 AppDefinition 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 AppDefinition 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 AppDefinition 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 AppDefinition withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* AppDefinitionPublishRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"comment",
|
||||
"force"
|
||||
})
|
||||
public class AppDefinitionPublishRepresentation {
|
||||
|
||||
@JsonProperty("comment")
|
||||
private String comment;
|
||||
@JsonProperty("force")
|
||||
private Boolean force;
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
@JsonProperty("comment")
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
@JsonProperty("comment")
|
||||
public void setComment(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public AppDefinitionPublishRepresentation withComment(String comment) {
|
||||
this.comment = comment;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("force")
|
||||
public Boolean getForce() {
|
||||
return force;
|
||||
}
|
||||
|
||||
@JsonProperty("force")
|
||||
public void setForce(Boolean force) {
|
||||
this.force = force;
|
||||
}
|
||||
|
||||
public AppDefinitionPublishRepresentation withForce(Boolean force) {
|
||||
this.force = force;
|
||||
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 AppDefinitionPublishRepresentation withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* AppDefinitionSaveRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"appDefinition",
|
||||
"force",
|
||||
"publish"
|
||||
})
|
||||
public class AppDefinitionSaveRepresentation {
|
||||
|
||||
/**
|
||||
* AppDefinitionRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonProperty("appDefinition")
|
||||
private AppDefinition appDefinition;
|
||||
@JsonProperty("force")
|
||||
private Boolean force;
|
||||
@JsonProperty("publish")
|
||||
private Boolean publish;
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
/**
|
||||
* AppDefinitionRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonProperty("appDefinition")
|
||||
public AppDefinition getAppDefinition() {
|
||||
return appDefinition;
|
||||
}
|
||||
|
||||
/**
|
||||
* AppDefinitionRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonProperty("appDefinition")
|
||||
public void setAppDefinition(AppDefinition appDefinition) {
|
||||
this.appDefinition = appDefinition;
|
||||
}
|
||||
|
||||
public AppDefinitionSaveRepresentation withAppDefinition(AppDefinition appDefinition) {
|
||||
this.appDefinition = appDefinition;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("force")
|
||||
public Boolean getForce() {
|
||||
return force;
|
||||
}
|
||||
|
||||
@JsonProperty("force")
|
||||
public void setForce(Boolean force) {
|
||||
this.force = force;
|
||||
}
|
||||
|
||||
public AppDefinitionSaveRepresentation withForce(Boolean force) {
|
||||
this.force = force;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("publish")
|
||||
public Boolean getPublish() {
|
||||
return publish;
|
||||
}
|
||||
|
||||
@JsonProperty("publish")
|
||||
public void setPublish(Boolean publish) {
|
||||
this.publish = publish;
|
||||
}
|
||||
|
||||
public AppDefinitionSaveRepresentation withPublish(Boolean publish) {
|
||||
this.publish = publish;
|
||||
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 AppDefinitionSaveRepresentation withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,187 @@
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* AppDefinitionUpdateResultRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"appDefinition",
|
||||
"customData",
|
||||
"error",
|
||||
"errorDescription",
|
||||
"errorType",
|
||||
"message",
|
||||
"messageKey"
|
||||
})
|
||||
public class AppDefinitionUpdateResultRepresentation {
|
||||
|
||||
/**
|
||||
* AppDefinitionRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonProperty("appDefinition")
|
||||
private AppDefinition appDefinition;
|
||||
@JsonProperty("customData")
|
||||
private CustomData customData;
|
||||
@JsonProperty("error")
|
||||
private Boolean error;
|
||||
@JsonProperty("errorDescription")
|
||||
private String errorDescription;
|
||||
@JsonProperty("errorType")
|
||||
private Integer errorType;
|
||||
@JsonProperty("message")
|
||||
private String message;
|
||||
@JsonProperty("messageKey")
|
||||
private String messageKey;
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
/**
|
||||
* AppDefinitionRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonProperty("appDefinition")
|
||||
public AppDefinition getAppDefinition() {
|
||||
return appDefinition;
|
||||
}
|
||||
|
||||
/**
|
||||
* AppDefinitionRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonProperty("appDefinition")
|
||||
public void setAppDefinition(AppDefinition appDefinition) {
|
||||
this.appDefinition = appDefinition;
|
||||
}
|
||||
|
||||
public AppDefinitionUpdateResultRepresentation withAppDefinition(AppDefinition appDefinition) {
|
||||
this.appDefinition = appDefinition;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("customData")
|
||||
public CustomData getCustomData() {
|
||||
return customData;
|
||||
}
|
||||
|
||||
@JsonProperty("customData")
|
||||
public void setCustomData(CustomData customData) {
|
||||
this.customData = customData;
|
||||
}
|
||||
|
||||
public AppDefinitionUpdateResultRepresentation withCustomData(CustomData customData) {
|
||||
this.customData = customData;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("error")
|
||||
public Boolean getError() {
|
||||
return error;
|
||||
}
|
||||
|
||||
@JsonProperty("error")
|
||||
public void setError(Boolean error) {
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
public AppDefinitionUpdateResultRepresentation withError(Boolean error) {
|
||||
this.error = error;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("errorDescription")
|
||||
public String getErrorDescription() {
|
||||
return errorDescription;
|
||||
}
|
||||
|
||||
@JsonProperty("errorDescription")
|
||||
public void setErrorDescription(String errorDescription) {
|
||||
this.errorDescription = errorDescription;
|
||||
}
|
||||
|
||||
public AppDefinitionUpdateResultRepresentation withErrorDescription(String errorDescription) {
|
||||
this.errorDescription = errorDescription;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("errorType")
|
||||
public Integer getErrorType() {
|
||||
return errorType;
|
||||
}
|
||||
|
||||
@JsonProperty("errorType")
|
||||
public void setErrorType(Integer errorType) {
|
||||
this.errorType = errorType;
|
||||
}
|
||||
|
||||
public AppDefinitionUpdateResultRepresentation withErrorType(Integer errorType) {
|
||||
this.errorType = errorType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@JsonProperty("message")
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public AppDefinitionUpdateResultRepresentation withMessage(String message) {
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("messageKey")
|
||||
public String getMessageKey() {
|
||||
return messageKey;
|
||||
}
|
||||
|
||||
@JsonProperty("messageKey")
|
||||
public void setMessageKey(String messageKey) {
|
||||
this.messageKey = messageKey;
|
||||
}
|
||||
|
||||
public AppDefinitionUpdateResultRepresentation withMessageKey(String messageKey) {
|
||||
this.messageKey = messageKey;
|
||||
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 AppDefinitionUpdateResultRepresentation withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
|
||||
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.JsonPropertyOrder;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
|
||||
})
|
||||
public class CustomData {
|
||||
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
@JsonAnyGetter
|
||||
public Map<String, Object> getAdditionalProperties() {
|
||||
return this.additionalProperties;
|
||||
}
|
||||
|
||||
@JsonAnySetter
|
||||
public void setAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
}
|
||||
|
||||
public CustomData withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
|
||||
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.JsonPropertyOrder;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
|
||||
})
|
||||
public class Datum {
|
||||
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
@JsonAnyGetter
|
||||
public Map<String, Object> getAdditionalProperties() {
|
||||
return this.additionalProperties;
|
||||
}
|
||||
|
||||
@JsonAnySetter
|
||||
public void setAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
}
|
||||
|
||||
public Datum withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,349 @@
|
||||
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* ModelRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"comment",
|
||||
"createdBy",
|
||||
"createdByFullName",
|
||||
"description",
|
||||
"favorite",
|
||||
"id",
|
||||
"lastUpdated",
|
||||
"lastUpdatedBy",
|
||||
"lastUpdatedByFullName",
|
||||
"latestVersion",
|
||||
"modelType",
|
||||
"name",
|
||||
"permission",
|
||||
"referenceId",
|
||||
"stencilSet",
|
||||
"tenantId",
|
||||
"version"
|
||||
})
|
||||
public class ModelRepresentation {
|
||||
|
||||
@JsonProperty("comment")
|
||||
private String comment;
|
||||
@JsonProperty("createdBy")
|
||||
private Integer createdBy;
|
||||
@JsonProperty("createdByFullName")
|
||||
private String createdByFullName;
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
@JsonProperty("favorite")
|
||||
private Boolean favorite;
|
||||
@JsonProperty("id")
|
||||
private Integer id;
|
||||
@JsonProperty("lastUpdated")
|
||||
private String lastUpdated;
|
||||
@JsonProperty("lastUpdatedBy")
|
||||
private Integer lastUpdatedBy;
|
||||
@JsonProperty("lastUpdatedByFullName")
|
||||
private String lastUpdatedByFullName;
|
||||
@JsonProperty("latestVersion")
|
||||
private Boolean latestVersion;
|
||||
@JsonProperty("modelType")
|
||||
private Integer modelType;
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("permission")
|
||||
private String permission;
|
||||
@JsonProperty("referenceId")
|
||||
private Integer referenceId;
|
||||
@JsonProperty("stencilSet")
|
||||
private Integer stencilSet;
|
||||
@JsonProperty("tenantId")
|
||||
private Integer tenantId;
|
||||
@JsonProperty("version")
|
||||
private Integer version;
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
@JsonProperty("comment")
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
@JsonProperty("comment")
|
||||
public void setComment(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public ModelRepresentation withComment(String comment) {
|
||||
this.comment = comment;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("createdBy")
|
||||
public Integer getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
@JsonProperty("createdBy")
|
||||
public void setCreatedBy(Integer createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public ModelRepresentation withCreatedBy(Integer createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("createdByFullName")
|
||||
public String getCreatedByFullName() {
|
||||
return createdByFullName;
|
||||
}
|
||||
|
||||
@JsonProperty("createdByFullName")
|
||||
public void setCreatedByFullName(String createdByFullName) {
|
||||
this.createdByFullName = createdByFullName;
|
||||
}
|
||||
|
||||
public ModelRepresentation withCreatedByFullName(String createdByFullName) {
|
||||
this.createdByFullName = createdByFullName;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
@JsonProperty("description")
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public ModelRepresentation withDescription(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("favorite")
|
||||
public Boolean getFavorite() {
|
||||
return favorite;
|
||||
}
|
||||
|
||||
@JsonProperty("favorite")
|
||||
public void setFavorite(Boolean favorite) {
|
||||
this.favorite = favorite;
|
||||
}
|
||||
|
||||
public ModelRepresentation withFavorite(Boolean favorite) {
|
||||
this.favorite = favorite;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("id")
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonProperty("id")
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ModelRepresentation withId(Integer id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("lastUpdated")
|
||||
public String getLastUpdated() {
|
||||
return lastUpdated;
|
||||
}
|
||||
|
||||
@JsonProperty("lastUpdated")
|
||||
public void setLastUpdated(String lastUpdated) {
|
||||
this.lastUpdated = lastUpdated;
|
||||
}
|
||||
|
||||
public ModelRepresentation withLastUpdated(String lastUpdated) {
|
||||
this.lastUpdated = lastUpdated;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("lastUpdatedBy")
|
||||
public Integer getLastUpdatedBy() {
|
||||
return lastUpdatedBy;
|
||||
}
|
||||
|
||||
@JsonProperty("lastUpdatedBy")
|
||||
public void setLastUpdatedBy(Integer lastUpdatedBy) {
|
||||
this.lastUpdatedBy = lastUpdatedBy;
|
||||
}
|
||||
|
||||
public ModelRepresentation withLastUpdatedBy(Integer lastUpdatedBy) {
|
||||
this.lastUpdatedBy = lastUpdatedBy;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("lastUpdatedByFullName")
|
||||
public String getLastUpdatedByFullName() {
|
||||
return lastUpdatedByFullName;
|
||||
}
|
||||
|
||||
@JsonProperty("lastUpdatedByFullName")
|
||||
public void setLastUpdatedByFullName(String lastUpdatedByFullName) {
|
||||
this.lastUpdatedByFullName = lastUpdatedByFullName;
|
||||
}
|
||||
|
||||
public ModelRepresentation withLastUpdatedByFullName(String lastUpdatedByFullName) {
|
||||
this.lastUpdatedByFullName = lastUpdatedByFullName;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("latestVersion")
|
||||
public Boolean getLatestVersion() {
|
||||
return latestVersion;
|
||||
}
|
||||
|
||||
@JsonProperty("latestVersion")
|
||||
public void setLatestVersion(Boolean latestVersion) {
|
||||
this.latestVersion = latestVersion;
|
||||
}
|
||||
|
||||
public ModelRepresentation withLatestVersion(Boolean latestVersion) {
|
||||
this.latestVersion = latestVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("modelType")
|
||||
public Integer getModelType() {
|
||||
return modelType;
|
||||
}
|
||||
|
||||
@JsonProperty("modelType")
|
||||
public void setModelType(Integer modelType) {
|
||||
this.modelType = modelType;
|
||||
}
|
||||
|
||||
public ModelRepresentation withModelType(Integer modelType) {
|
||||
this.modelType = modelType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@JsonProperty("name")
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ModelRepresentation withName(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("permission")
|
||||
public String getPermission() {
|
||||
return permission;
|
||||
}
|
||||
|
||||
@JsonProperty("permission")
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public ModelRepresentation withPermission(String permission) {
|
||||
this.permission = permission;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("referenceId")
|
||||
public Integer getReferenceId() {
|
||||
return referenceId;
|
||||
}
|
||||
|
||||
@JsonProperty("referenceId")
|
||||
public void setReferenceId(Integer referenceId) {
|
||||
this.referenceId = referenceId;
|
||||
}
|
||||
|
||||
public ModelRepresentation withReferenceId(Integer referenceId) {
|
||||
this.referenceId = referenceId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("stencilSet")
|
||||
public Integer getStencilSet() {
|
||||
return stencilSet;
|
||||
}
|
||||
|
||||
@JsonProperty("stencilSet")
|
||||
public void setStencilSet(Integer stencilSet) {
|
||||
this.stencilSet = stencilSet;
|
||||
}
|
||||
|
||||
public ModelRepresentation withStencilSet(Integer stencilSet) {
|
||||
this.stencilSet = stencilSet;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("tenantId")
|
||||
public Integer getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
@JsonProperty("tenantId")
|
||||
public void setTenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public ModelRepresentation withTenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("version")
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
@JsonProperty("version")
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public ModelRepresentation withVersion(Integer version) {
|
||||
this.version = version;
|
||||
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 ModelRepresentation withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
|
||||
package com.inteligr8.alfresco.activiti.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* ResultListDataRepresentation
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"data",
|
||||
"size",
|
||||
"start",
|
||||
"total"
|
||||
})
|
||||
public class ResultListDataRepresentation {
|
||||
|
||||
@JsonProperty("data")
|
||||
private List<Datum> data = new ArrayList<Datum>();
|
||||
@JsonProperty("size")
|
||||
private Integer size;
|
||||
@JsonProperty("start")
|
||||
private Integer start;
|
||||
@JsonProperty("total")
|
||||
private Integer total;
|
||||
@JsonIgnore
|
||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
||||
|
||||
@JsonProperty("data")
|
||||
public List<Datum> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
@JsonProperty("data")
|
||||
public void setData(List<Datum> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public ResultListDataRepresentation withData(List<Datum> data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("size")
|
||||
public Integer getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonProperty("size")
|
||||
public void setSize(Integer size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public ResultListDataRepresentation withSize(Integer size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("start")
|
||||
public Integer getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
@JsonProperty("start")
|
||||
public void setStart(Integer start) {
|
||||
this.start = start;
|
||||
}
|
||||
|
||||
public ResultListDataRepresentation withStart(Integer start) {
|
||||
this.start = start;
|
||||
return this;
|
||||
}
|
||||
|
||||
@JsonProperty("total")
|
||||
public Integer getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
@JsonProperty("total")
|
||||
public void setTotal(Integer total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public ResultListDataRepresentation withTotal(Integer total) {
|
||||
this.total = total;
|
||||
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 ResultListDataRepresentation withAdditionalProperty(String name, Object value) {
|
||||
this.additionalProperties.put(name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.inteligr8.alfresco.activiti;
|
||||
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
import com.inteligr8.rs.ClientConfiguration;
|
||||
|
||||
public class ConnectionCxfClientPojoIT extends ConnectionClientIT {
|
||||
|
||||
private static ApsPublicRestApi client;
|
||||
|
||||
@BeforeAll
|
||||
public static void initClient() {
|
||||
ApsClientConfiguration config = new ApsClientConfiguration();
|
||||
config.setBaseUrl("http://localhost:8080/activiti-app");
|
||||
config.setBasicAuthUsername("admin");
|
||||
config.setBasicAuthPassword("admin");
|
||||
|
||||
client = new ApsPublicRestApiCxfImpl(
|
||||
new ApsClientCxfImpl(config));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApsPublicRestApi getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClientConfiguration getConfiguration() {
|
||||
return client.getConfig();
|
||||
}
|
||||
|
||||
}
|
@ -1,22 +1,15 @@
|
||||
package com.inteligr8.alfresco.activiti;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||
|
||||
import com.inteligr8.alfresco.activiti.model.CreateProcessInstance;
|
||||
import com.inteligr8.alfresco.activiti.model.ProcessInstance;
|
||||
import com.inteligr8.alfresco.activiti.model.Variable;
|
||||
import com.inteligr8.rs.ClientConfiguration;
|
||||
|
||||
@TestPropertySource(locations = {"/local-oauth.properties"})
|
||||
@SpringJUnitConfig(classes = {ApsClientConfiguration.class, ApsPublicRestApiCxfImpl.class, ApsClientCxfImpl.class})
|
||||
public class ConnectionCxfClientIT extends ConnectionClientIT {
|
||||
public class ConnectionCxfClientSpringIT extends ConnectionClientIT {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("aps.api.cxf")
|
@ -0,0 +1,31 @@
|
||||
package com.inteligr8.alfresco.activiti;
|
||||
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
|
||||
import com.inteligr8.rs.ClientConfiguration;
|
||||
|
||||
public class ConnectionJerseyClientPojoIT extends ConnectionClientIT {
|
||||
|
||||
private static ApsPublicRestApi client;
|
||||
|
||||
@BeforeAll
|
||||
public static void initClient() {
|
||||
ApsClientConfiguration config = new ApsClientConfiguration();
|
||||
config.setBaseUrl("http://localhost:8080/activiti-app");
|
||||
config.setBasicAuthUsername("admin");
|
||||
config.setBasicAuthPassword("admin");
|
||||
|
||||
client = new ApsPublicRestApiJerseyImpl(
|
||||
new ApsClientJerseyImpl(config));
|
||||
}
|
||||
|
||||
public ApsPublicRestApi getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClientConfiguration getConfiguration() {
|
||||
return client.getConfig();
|
||||
}
|
||||
|
||||
}
|
@ -9,7 +9,7 @@ import com.inteligr8.rs.ClientConfiguration;
|
||||
|
||||
@TestPropertySource(locations = {"/local.properties"})
|
||||
@SpringJUnitConfig(classes = {ApsClientConfiguration.class, ApsPublicRestApiCxfImpl.class, ApsClientJerseyImpl.class})
|
||||
public class ConnectionJerseyClientIT extends ConnectionClientIT {
|
||||
public class ConnectionJerseyClientSpringIT extends ConnectionClientIT {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("aps.api.jersey")
|
Loading…
x
Reference in New Issue
Block a user