Compare commits

..
Author SHA1 Message Date
brian.long 4cd82b9afb Merge branch 'stable' into stable-jersey 2024-09-23 16:33:36 -04:00
brian.long a96e5f2a02 Merge branch 'develop-jersey' into stable-jersey 2024-09-23 16:33:17 -04:00
brian.long abec1452cf v3.0.1 pom 2024-09-23 16:26:08 -04:00
brian.long 80cc21d013 Merge branch 'develop' into stable 2024-09-23 16:25:23 -04:00
brian.long 889c94af0e added protected API impl 2024-09-23 16:24:44 -04:00
brian.long 24c9484712 Merge branch 'develop' into develop-jersey 2024-09-23 16:23:18 -04:00
brian.long 5b310afaa6 added protected API impl 2024-09-23 16:19:26 -04:00
brian.long a5d09e2fa8 Merge branch 'develop-jersey' into stable-jersey 2024-08-15 12:40:13 -04:00
brian.long 28b3c5d10f Merge branch 'develop' into stable 2024-08-15 12:35:46 -04:00
brian.long b1c32b5adf v3.x; jersey v3.x 2024-08-15 12:33:49 -04:00
brian.long 085da3e180 v3.x; upgrade to jakarta 2024-08-15 12:30:47 -04:00
brian.long ef2784696c v2.0.5-jersey pom 2023-06-29 11:52:12 -04:00
brian.long 8f08c1d979 Merge branch 'develop-jersey' into stable-jersey 2023-06-29 11:51:57 -04:00
brian.long 5cce720728 v2.0.5 pom 2023-06-29 11:48:50 -04:00
brian.long 097bb909be Merge branch 'develop' into stable 2023-06-29 11:48:32 -04:00
brian.long 27c43862d7 Merge branch 'develop' into develop-jersey 2023-06-29 11:47:11 -04:00
brian.long d1797eccc9 added connect/read timeout to APS spring config 2023-06-29 11:46:02 -04:00
brian.long 37acf3f4c9 updated common-rest-client to latest version 2023-06-29 11:03:23 -04:00
brian.long fd8c74037d addressing library version conflict 2023-05-30 18:43:42 -04:00
brian.long c758a09926 updated common-rest-client version 2023-05-30 18:26:45 -04:00
brian.long cd237cc929 v2.0.4-jersey pom 2023-05-30 11:19:40 -04:00
brian.long afbbb0f997 Merge branch 'develop-jersey' into stable-jersey 2023-05-30 11:18:44 -04:00
brian.long 9b565aa0db v2.0.4 pom 2023-05-30 11:07:39 -04:00
brian.long d4cd9ec777 Merge branch 'develop' into stable 2023-05-30 11:07:20 -04:00
brian.long a59757ce02 Merge branch 'develop' into develop-jersey 2023-05-30 11:07:00 -04:00
brian.long 2f1dda9644 upgraded common-rest-client 2023-05-30 11:04:10 -04:00
brian.long 8543001da2 upgraded common-rest-client; requiring jersey media; optional jersey hk2 2023-05-30 11:03:32 -04:00
brian.long f2f12e1b1f Merge branch 'develop-jersey' into stable-jersey 2023-05-28 13:21:38 -04:00
brian.long b8381ed006 fixed jersey test compile 2023-05-28 13:21:26 -04:00
brian.long be02e86d7d v2.0.3-jersey pom 2023-05-28 13:17:21 -04:00
brian.long 537d9c773d Merge branch 'develop-jersey' into stable-jersey 2023-05-28 13:16:27 -04:00
brian.long 7cdbfcb62b v2.0.3 pom 2023-05-28 13:02:01 -04:00
brian.long a13e2c7125 Merge branch 'develop' into stable 2023-05-28 13:01:15 -04:00
brian.long 712058d328 upgraded jersey version 2023-05-28 12:56:05 -04:00
brian.long e9dacca5f7 Merge branch 'develop' into develop-jersey 2023-05-28 12:55:30 -04:00
brian.long 28ef4ea714 upgraded dependency/plugin versions 2023-05-28 12:46:26 -04:00
brian.long cae201d3ef point to 2.0-SNAPSHOT of API lib 2023-01-19 21:58:40 +00:00
5 changed files with 127 additions and 17 deletions
+22 -16
View File
@@ -5,7 +5,7 @@
<groupId>com.inteligr8.alfresco</groupId>
<artifactId>aps-public-rest-client</artifactId>
<version>2.0.2-jersey</version>
<version>3.0.1-jersey</version>
<name>Alfresco Process Services ReST API Client for Java</name>
<description>An APS Client library for building Jersey-based REST API clients</description>
@@ -38,27 +38,27 @@
<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.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
<aps.app.tag>aps1</aps.app.tag>
<junit.version>5.7.2</junit.version>
<spring.version>5.2.14.RELEASE</spring.version>
<jersey.version>2.35</jersey.version>
<junit.version>5.10.0</junit.version>
<spring.version>6.0.19</spring.version>
<jersey.version>3.1.8</jersey.version>
<jackson.version>2.17.2</jackson.version>
</properties>
<dependencies>
<dependency>
<groupId>com.inteligr8</groupId>
<artifactId>common-rest-client</artifactId>
<version>2.0.1-jersey</version>
<version>3.0.0-jersey</version>
</dependency>
<dependency>
<groupId>com.inteligr8.alfresco</groupId>
<artifactId>aps-public-rest-api</artifactId>
<version>2.0.3-${aps.app.tag}</version>
<version>3.0.2</version>
<scope>provided</scope> <!-- explicitly, bring your own version -->
</dependency>
<dependency>
@@ -76,13 +76,13 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.9</version>
<version>4.5.14</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.17.2</version>
<version>2.20.0</version>
<scope>test</scope>
</dependency>
@@ -91,13 +91,19 @@
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<version>${jersey.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>${jersey.version}</version>
<scope>test</scope>
</dependency>
<!-- Jersey inclusion fallout -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
</dependencies>
@@ -130,7 +136,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
@@ -141,7 +147,7 @@
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
@@ -61,6 +61,12 @@ public abstract class ApsClientConfiguration implements ClientConfiguration {
@Value("${process.service.security.oauth.grantPassword:#{null}}")
private String oAuthPassword;
@Value("${process.service.http.connectTimeout:#{null}}")
private Integer connectTimeoutInMillis;
@Value("${process.service.http.responseTimeout:#{null}}")
private Integer responseTimeoutInMillis;
public String getBaseUrl() {
return this.baseUrl;
}
@@ -148,5 +154,23 @@ public abstract class ApsClientConfiguration implements ClientConfiguration {
public void setOAuthPassword(String oAuthPassword) {
this.oAuthPassword = oAuthPassword;
}
@Override
public Integer getConnectTimeoutInMillis() {
return this.connectTimeoutInMillis;
}
public void setConnectTimeoutInMillis(Integer connectTimeoutInMillis) {
this.connectTimeoutInMillis = connectTimeoutInMillis;
}
@Override
public Integer getResponseTimeoutInMillis() {
return this.responseTimeoutInMillis;
}
public void setResponseTimeoutInMillis(Integer responseTimeoutInMillis) {
this.responseTimeoutInMillis = responseTimeoutInMillis;
}
}
@@ -0,0 +1,41 @@
/*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.inteligr8.alfresco.activiti;
import com.inteligr8.rs.Client;
/**
* This class serves as the entrypoint to the JAX-RS API for the APS Public
* ReST API.
*
* @author brian@inteligr8.com
*/
public class ApsProtectedRestApiImpl implements ApsProtectedRestApi {
private Client client;
public ApsProtectedRestApiImpl(Client client) {
this.client = client;
}
public Client getClient() {
return this.client;
}
public final <T> T getApi(Class<T> apiClass) {
return this.client.getApi(apiClass);
}
}
@@ -0,0 +1,39 @@
/*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.inteligr8.alfresco.activiti;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
/**
* This class provides the Jersey client to the JAX-RS API for the Activiti &
* APS public ReST API and some non-public APS ReST API.
*
* @author brian@inteligr8.com
*/
@Component("aps.protected-api.jersey")
@Lazy
public class ApsProtectedRestApiJerseyImpl extends ApsProtectedRestApiImpl implements ApsPublicRestJerseyApi {
/**
* This constructor is for Spring or POJO use
*/
@Autowired
public ApsProtectedRestApiJerseyImpl(ApsClientJerseyImpl client) {
super(client);
}
}
@@ -25,7 +25,7 @@ import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import com.inteligr8.alfresco.activiti.model.GroupLight;
import com.inteligr8.alfresco.activiti.model.ResultList;
import com.inteligr8.activiti.model.ResultList;
import com.inteligr8.alfresco.activiti.model.UserLight;
import com.inteligr8.rs.ClientConfiguration;