Compare commits

..

44 Commits

Author SHA1 Message Date
21abea63b6 v2.1.0-acs61 pom 2023-06-16 10:26:51 -04:00
3874b0b976 Merge branch 'develop-acs61' into stable-acs61 2023-06-16 10:26:18 -04:00
0dca3c659a v2.0.2-acs61 pom 2023-05-28 12:21:07 -04:00
a1a80a629c Merge branch 'develop-acs61' into stable-acs61 2023-05-28 12:14:46 -04:00
680c2d74b0 Merge branch 'develop-acs61' into stable-acs61 2022-10-02 18:44:45 -04:00
c84f11868e Merge branch 'develop-acs61' into stable-acs61 2022-10-02 18:33:03 -04:00
af33dc3730 Merge branch 'develop-acs60' into stable-acs60 2022-10-02 18:27:55 -04:00
038237e2aa Merge branch 'develop-acs52' into stable-acs52 2022-10-02 18:18:10 -04:00
29a13ac7b2 Merge branch 'develop-acs51' into stable-acs51 2022-10-02 18:09:56 -04:00
50c6cf6199 v2.0.1 pom 2022-07-05 16:25:33 -04:00
2d05a1a7d0 Merge branch 'develop' into stable 2022-07-05 16:23:04 -04:00
f8967b535e Merge branch 'develop' into stable 2022-05-03 13:17:46 -04:00
a70dfe2d60 updated commons-rest-api to v1.1.6 2022-04-07 23:46:08 -04:00
e9adb1bf2f v1.1.8 pom 2022-04-07 23:45:47 -04:00
898cb702e9 Merge branch 'develop' into stable 2022-04-07 23:45:14 -04:00
8fcaed758d updated commons-rest-api for CXF support 2022-03-08 13:42:48 -05:00
920aeb4ec4 v1.1.7 pom 2022-03-08 13:38:24 -05:00
a015ed5101 Merge branch 'develop' into stable 2022-03-08 13:37:40 -05:00
4ddb9aafd4 v1.1.6 pom 2022-03-03 10:17:12 -05:00
7b0963617e Merge branch 'develop' into stable 2022-03-03 10:14:57 -05:00
52010dc76e v1.1.5 pom 2021-10-27 14:34:58 -04:00
cac4c90781 Merge branch 'develop' into stable 2021-10-27 14:33:54 -04:00
117efaeedd Merge branch 'develop' into stable 2021-09-06 13:37:39 -04:00
b3275519ff v1.1.3 pom 2021-09-03 13:03:26 -04:00
3093d2bdc4 Merge branch 'develop' into stable 2021-09-03 13:02:58 -04:00
068aff951e v1.1.2 pom 2021-09-01 14:35:37 -04:00
76ac68d0e4 Merge branch 'develop' into stable 2021-08-31 22:06:11 -04:00
9e0499b243 Merge branch 'develop' into stable 2021-08-31 13:41:01 -04:00
eb0ab01355 v1.0.6-v1-acs7 pom 2021-08-28 01:09:20 -04:00
105868b5df Merge branch 'develop' into stable 2021-08-28 01:09:03 -04:00
0e8d522769 v1.0.5-v2 pom 2021-07-22 15:30:18 -04:00
7185dd225e using commons-rest-api v1.0.2 to fix jersey/put 2021-07-22 15:25:07 -04:00
1e4f420f47 v1.0.4-v2 2021-07-12 15:17:14 -04:00
64330e3ca4 Merge branch 'develop' into stable 2021-07-12 15:15:52 -04:00
8e538cfec5 v1.0.3-v2 & common v1.0.1 2021-07-07 11:08:54 -04:00
d0c1e92bce Merge branch 'develop' into stable 2021-07-07 11:08:15 -04:00
c879fa41b7 using commons version 2021-06-16 16:06:56 -04:00
10b8a4c982 v1.0.2-v2 pom 2021-06-16 16:05:52 -04:00
7dd7cc0fd4 Merge branch 'develop' into stable 2021-06-16 16:05:18 -04:00
e9ea115849 Merge branch 'develop' into stable 2021-06-04 13:32:24 -04:00
5741c77a45 v1.0.1-v2 pom 2021-06-04 12:24:29 -04:00
3bbda05066 Merge branch 'develop' into stable 2021-06-04 12:23:36 -04:00
cf1da9b6f1 Merge branch 'develop' into stable 2021-06-03 22:49:54 -04:00
1f48c3196f changed version for release 2021-06-03 21:22:20 -04:00
7 changed files with 49 additions and 102 deletions

69
pom.xml
View File

@@ -5,10 +5,10 @@
<groupId>com.inteligr8.alfresco</groupId>
<artifactId>acs-public-rest-api</artifactId>
<version>3.0-SNAPSHOT-acs7</version>
<version>2.1.0-acs61</version>
<name>Alfresco Content Services ReST API for Java</name>
<description>A library for building ACS v7.x JAX-RS REST API clients</description>
<description>A library for building ACS v6.1.x JAX-RS REST API clients</description>
<url>https://bitbucket.org/inteligr8/acs-public-rest-api</url>
<licenses>
@@ -38,17 +38,17 @@
<properties>
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
<swagger.basePackage>com.inteligr8.alfresco.acs</swagger.basePackage>
<alfresco.platform.version>7.3.0</alfresco.platform.version>
<alfresco.platform.version>6.1.0</alfresco.platform.version>
<jersey.version>3.1.8</jersey.version>
<cxf.version>4.0.2</cxf.version>
<jackson.version>2.17.2</jackson.version>
<jersey.version>2.39.1</jersey.version>
<cxf.version>3.5.6</cxf.version>
<jackson.version>2.15.1</jackson.version>
</properties>
<dependencies>
@@ -63,9 +63,9 @@
<version>2.2.11</version>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>2.1.3</version>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
@@ -75,12 +75,7 @@
<dependency>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.1</version>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
@@ -136,12 +131,9 @@
<plugin>
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.61</version>
<version>3.0.45</version>
<configuration>
<language>jaxrs-cxf-client</language>
<configOptions>
<jakarta>true</jakarta>
</configOptions>
<output>${basedir}</output>
<apiPackage>${swagger.basePackage}.api</apiPackage>
<modelPackage>${swagger.basePackage}.model</modelPackage>
@@ -152,17 +144,6 @@
<generateModelDocumentation>false</generateModelDocumentation>
</configuration>
<executions>
<!-- search before core, as ContentInfo is incorrect in search -->
<execution>
<id>swagger-search-codegen</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-search.yaml</inputSpec>
</configuration>
</execution>
<execution>
<id>swagger-core-codegen</id>
<phase>generate-sources</phase>
@@ -183,6 +164,16 @@
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-workflow.yaml</inputSpec>
</configuration>
</execution>
<execution>
<id>swagger-search-codegen</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-search.yaml</inputSpec>
</configuration>
</execution>
<execution>
<id>swagger-auth-codegen</id>
<phase>generate-sources</phase>
@@ -203,16 +194,6 @@
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-discovery.yaml</inputSpec>
</configuration>
</execution>
<execution>
<id>swagger-model-codegen</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-model.yaml</inputSpec>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
@@ -263,10 +244,6 @@
<pattern>(\*\*Search API\*\*[^@]*)@Path\("/"\)</pattern>
<replacement>$1@Path("/api/-default-/public/search/versions/1")</replacement>
</regex>
<regex>
<pattern>(\*\*Model API\*\*[^@]*)@Path\("/"\)</pattern>
<replacement>$1@Path("/api/-default-/public/alfresco/versions/1")</replacement>
</regex>
</regexes>
</configuration>
</execution>

View File

@@ -16,7 +16,6 @@ package com.inteligr8.alfresco.acs;
import com.inteligr8.alfresco.acs.api.ActionsApi;
import com.inteligr8.alfresco.acs.api.ActivitiesApi;
import com.inteligr8.alfresco.acs.api.AspectsApi;
import com.inteligr8.alfresco.acs.api.AuditApi;
import com.inteligr8.alfresco.acs.api.AuthenticationApi;
import com.inteligr8.alfresco.acs.api.CommentsApi;
@@ -41,7 +40,6 @@ import com.inteligr8.alfresco.acs.api.SitesApi;
import com.inteligr8.alfresco.acs.api.TagsApi;
import com.inteligr8.alfresco.acs.api.TasksApi;
import com.inteligr8.alfresco.acs.api.TrashcanApi;
import com.inteligr8.alfresco.acs.api.TypesApi;
import com.inteligr8.alfresco.acs.api.V0Api;
import com.inteligr8.alfresco.acs.api.VersionsApi;
@@ -62,10 +60,6 @@ public interface AcsPublicRestApi {
default ActivitiesApi getActivitiesApi() {
return this.getApi(ActivitiesApi.class);
}
default AspectsApi getAspectsApi() {
return this.getApi(AspectsApi.class);
}
default AuditApi getAuditApi() {
return this.getApi(AuditApi.class);
@@ -163,10 +157,6 @@ public interface AcsPublicRestApi {
return this.getApi(TrashcanApi.class);
}
default TypesApi getTypesApi() {
return this.getApi(TypesApi.class);
}
default VersionsApi getVersionsApi() {
return this.getApi(VersionsApi.class);
}

View File

@@ -14,12 +14,12 @@
*/
package com.inteligr8.alfresco.acs.api;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
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 com.inteligr8.alfresco.acs.model.Error;
import com.inteligr8.alfresco.acs.model.NodeBodyCreateMultipartCxf;

View File

@@ -14,12 +14,12 @@
*/
package com.inteligr8.alfresco.acs.api;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
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 com.inteligr8.alfresco.acs.model.Error;
import com.inteligr8.alfresco.acs.model.NodeBodyCreateMultipartJersey;

View File

@@ -16,11 +16,11 @@ package com.inteligr8.alfresco.acs.api;
import java.util.List;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import com.inteligr8.alfresco.acs.model.v0.AssociationInfo;
import com.inteligr8.alfresco.acs.model.v0.ClassInfo;

View File

@@ -17,13 +17,12 @@ package com.inteligr8.alfresco.acs.model;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.core.MediaType;
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
import org.apache.cxf.jaxrs.ext.multipart.ContentDisposition;
@@ -91,18 +90,9 @@ public class NodeBodyCreateMultipartCxf extends MultipartBody {
if (nodeBody.getAspectNames() != null && !nodeBody.getAspectNames().isEmpty())
logger.warn("The ACS Public REST API does not support the explicit inclusion of aspects while creating content");
if (nodeBody.getProperties() != null) {
@SuppressWarnings("unchecked")
Map<String, ?> props = (Map<String, ?>)nodeBody.getProperties();
Map<String, ?> props = (Map<String, ?>)nodeBody.getProperties();
for (Entry<String, ?> prop : props.entrySet()) {
if (prop.getValue() instanceof Collection<?>) {
for (Object value : (Collection<?>)prop.getValue())
if (value != null)
atts.add(toAttachment(prop.getKey(), value.toString()));
} else if (prop.getValue() instanceof Object[]) {
for (Object value : (Object[])prop.getValue())
if (value != null)
atts.add(toAttachment(prop.getKey(), value.toString()));
} else if (prop.getValue() != null) {
if (prop.getValue() != null) {
// FIXME convert dates as ACS would expect them to be formatted
atts.add(toAttachment(prop.getKey(), prop.getValue().toString()));
}

View File

@@ -17,13 +17,12 @@ package com.inteligr8.alfresco.acs.model;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.core.MediaType;
import org.glassfish.jersey.media.multipart.BodyPart;
import org.glassfish.jersey.media.multipart.FormDataBodyPart;
@@ -87,21 +86,12 @@ public class NodeBodyCreateMultipartJersey extends FormDataMultiPart {
if (nodeBody.getAspectNames() != null && !nodeBody.getAspectNames().isEmpty())
logger.warn("The ACS Public REST API does not support the explicit inclusion of aspects while creating content");
if (nodeBody.getProperties() != null) {
@SuppressWarnings("unchecked")
Map<String, ?> props = (Map<String, ?>)nodeBody.getProperties();
Map<String, ?> props = (Map<String, ?>)nodeBody.getProperties();
for (Entry<String, ?> prop : props.entrySet()) {
if (prop.getValue() instanceof Collection<?>) {
for (Object value : (Collection<?>)prop.getValue())
if (value != null)
fields.add(new FormDataBodyPart(prop.getKey(), value.toString()));
} else if (prop.getValue() instanceof Object[]) {
for (Object value : (Object[])prop.getValue())
if (value != null)
fields.add(new FormDataBodyPart(prop.getKey(), value.toString()));
} else if (prop.getValue() != null) {
// FIXME convert dates as ACS would expect them to be formatted
fields.add(new FormDataBodyPart(prop.getKey(), prop.getValue().toString()));
}
if (prop.getValue() != null) {
// FIXME convert dates as ACS would expect them to be formatted
fields.add(new FormDataBodyPart(prop.getKey(), prop.getValue().toString()));
}
}
}