Loading .gitignore 0 → 100644 +19 −0 Original line number Diff line number Diff line # Maven pom.xml.versionsBackup target # Eclipse .project .classpath .settings # Visual Studio Code .factorypath # Swagger Codegen .swagger-codegen .swagger-codegen-ignore # Personal personal*.properties pom.xml 0 → 100644 +213 −0 Original line number Diff line number Diff line <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.inteligr8.alfresco</groupId> <artifactId>acs-public-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <name>Alfresco Content 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 --> <acs.baseUrl>http://localhost:8080/alfresco</acs.baseUrl> <acs.platform.tag>acs7</acs.platform.tag> <it.directory>src/test/none</it.directory> <junit.version>5.7.2</junit.version> <spring.version>5.2.14.RELEASE</spring.version> <jersey.version>2.35</jersey.version> <cxf.version>3.4.7</cxf.version> </properties> <dependencies> <dependency> <groupId>com.inteligr8</groupId> <artifactId>common-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <classifier>${jaxrs.impl}</classifier> </dependency> <dependency> <groupId>com.inteligr8.alfresco</groupId> <artifactId>acs-public-rest-api</artifactId> <version>2.0-SNAPSHOT</version> <classifier>${acs.platform.tag}</classifier> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.9</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <version>2.17.2</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.2.0</version> <executions> <execution> <id>add-jaxrs-src</id> <goals><goal>add-source</goal></goals> <configuration> <sources> <source>src/main/${jaxrs.impl}</source> </sources> </configuration> </execution> <execution> <id>add-test-src</id> <goals><goal>add-test-source</goal></goals> <configuration> <sources> <source>src/test/${jaxrs.impl}</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <classifier>${jaxrs.impl}</classifier> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit.version}</version> </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>3.0.0-M5</version> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit.version}</version> </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>javadoc</id> <phase>package</phase> <goals><goal>jar</goal></goals> <configuration> <show>public</show> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>jaxrs-jersey</id> <activation> <activeByDefault>true</activeByDefault> <property> <name>jaxrs.impl</name> <value>jersey</value> </property> </activation> <properties> <jaxrs.impl>jersey</jaxrs.impl> </properties> <dependencies> <dependency> <groupId>org.glassfish.jersey.inject</groupId> <artifactId>jersey-hk2</artifactId> <version>${jersey.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.glassfish.jersey.media</groupId> <artifactId>jersey-media-json-jackson</artifactId> <version>${jersey.version}</version> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>jaxrs-cxf</id> <activation> <property> <name>jaxrs.impl</name> <value>cxf</value> </property> </activation> <properties> <jaxrs.impl>cxf</jaxrs.impl> </properties> <dependencies> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId> <version>${cxf.version}</version> <scope>provided</scope> </dependency> </dependencies> </profile> </profiles> <repositories> <repository> <id>inteligr8-releases</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> <repository> <id>inteligr8-snapshots</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <distributionManagement> <repository> <id>inteligr8-releases</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> </repository> <snapshotRepository> <id>inteligr8-snapshots</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url> </snapshotRepository> </distributionManagement> </project> src/main/cxf/com/inteligr8/alfresco/acs/AcsClientCxfConfiguration.java 0 → 100644 +32 −0 Original line number Diff line number Diff line package com.inteligr8.alfresco.acs; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import com.inteligr8.rs.ClientCxfConfiguration; /** * This class provides a POJO & Spring-based implementation of the * ClientCxfConfiguration interface. You can use it outside of the Spring * context, but you will need the spring-context and spring-beans libraries in * your non-Spring application. * * @author brian@inteligr8.com */ @Configuration @ComponentScan public class AcsClientCxfConfiguration extends AcsClientConfiguration implements ClientCxfConfiguration { @Value("${content.service.cxf.defaultBusEnabled:true}") private boolean defaultBusEnabled; public boolean isDefaultBusEnabled() { return this.defaultBusEnabled; } public void setDefaultBusEnabled(boolean defaultBusEnabled) { this.defaultBusEnabled = defaultBusEnabled; } } src/main/cxf/com/inteligr8/alfresco/acs/AcsClientCxfImpl.java 0 → 100644 +29 −0 Original line number Diff line number Diff line package com.inteligr8.alfresco.acs; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Component; import com.inteligr8.rs.ClientCxfImpl; /** * This class provides a POJO & Spring-based implementation of the Apache * CXF client. You can use it outside of the Spring context, but you will need * the spring-context and spring-beans libraries in your non-Spring * application. * * @author brian@inteligr8.com */ @Component("acs.client.cxf") @Lazy public class AcsClientCxfImpl extends ClientCxfImpl { /** * This constructor is for Spring or POJO use */ @Autowired public AcsClientCxfImpl(AcsClientCxfConfiguration config) { super(config); } } src/main/cxf/com/inteligr8/alfresco/acs/AcsPublicRestApiCxfImpl.java 0 → 100644 +25 −0 Original line number Diff line number Diff line package com.inteligr8.alfresco.acs; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Component; /** * This class provides the Apache CXF client to the JAX-RS API for the ACS * Public ReST API. * * @author brian@inteligr8.com */ @Component("acs.api.cxf") @Lazy public class AcsPublicRestApiCxfImpl extends AcsPublicRestApiImpl implements AcsPublicRestCxfApi { /** * This constructor is for Spring or POJO use */ @Autowired public AcsPublicRestApiCxfImpl(AcsClientCxfImpl client) { super(client); } } Loading
.gitignore 0 → 100644 +19 −0 Original line number Diff line number Diff line # Maven pom.xml.versionsBackup target # Eclipse .project .classpath .settings # Visual Studio Code .factorypath # Swagger Codegen .swagger-codegen .swagger-codegen-ignore # Personal personal*.properties
pom.xml 0 → 100644 +213 −0 Original line number Diff line number Diff line <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.inteligr8.alfresco</groupId> <artifactId>acs-public-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <name>Alfresco Content 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 --> <acs.baseUrl>http://localhost:8080/alfresco</acs.baseUrl> <acs.platform.tag>acs7</acs.platform.tag> <it.directory>src/test/none</it.directory> <junit.version>5.7.2</junit.version> <spring.version>5.2.14.RELEASE</spring.version> <jersey.version>2.35</jersey.version> <cxf.version>3.4.7</cxf.version> </properties> <dependencies> <dependency> <groupId>com.inteligr8</groupId> <artifactId>common-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <classifier>${jaxrs.impl}</classifier> </dependency> <dependency> <groupId>com.inteligr8.alfresco</groupId> <artifactId>acs-public-rest-api</artifactId> <version>2.0-SNAPSHOT</version> <classifier>${acs.platform.tag}</classifier> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.9</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <version>2.17.2</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.2.0</version> <executions> <execution> <id>add-jaxrs-src</id> <goals><goal>add-source</goal></goals> <configuration> <sources> <source>src/main/${jaxrs.impl}</source> </sources> </configuration> </execution> <execution> <id>add-test-src</id> <goals><goal>add-test-source</goal></goals> <configuration> <sources> <source>src/test/${jaxrs.impl}</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <classifier>${jaxrs.impl}</classifier> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit.version}</version> </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>3.0.0-M5</version> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit.version}</version> </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>javadoc</id> <phase>package</phase> <goals><goal>jar</goal></goals> <configuration> <show>public</show> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>jaxrs-jersey</id> <activation> <activeByDefault>true</activeByDefault> <property> <name>jaxrs.impl</name> <value>jersey</value> </property> </activation> <properties> <jaxrs.impl>jersey</jaxrs.impl> </properties> <dependencies> <dependency> <groupId>org.glassfish.jersey.inject</groupId> <artifactId>jersey-hk2</artifactId> <version>${jersey.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.glassfish.jersey.media</groupId> <artifactId>jersey-media-json-jackson</artifactId> <version>${jersey.version}</version> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>jaxrs-cxf</id> <activation> <property> <name>jaxrs.impl</name> <value>cxf</value> </property> </activation> <properties> <jaxrs.impl>cxf</jaxrs.impl> </properties> <dependencies> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId> <version>${cxf.version}</version> <scope>provided</scope> </dependency> </dependencies> </profile> </profiles> <repositories> <repository> <id>inteligr8-releases</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> <repository> <id>inteligr8-snapshots</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <distributionManagement> <repository> <id>inteligr8-releases</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> </repository> <snapshotRepository> <id>inteligr8-snapshots</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url> </snapshotRepository> </distributionManagement> </project>
src/main/cxf/com/inteligr8/alfresco/acs/AcsClientCxfConfiguration.java 0 → 100644 +32 −0 Original line number Diff line number Diff line package com.inteligr8.alfresco.acs; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import com.inteligr8.rs.ClientCxfConfiguration; /** * This class provides a POJO & Spring-based implementation of the * ClientCxfConfiguration interface. You can use it outside of the Spring * context, but you will need the spring-context and spring-beans libraries in * your non-Spring application. * * @author brian@inteligr8.com */ @Configuration @ComponentScan public class AcsClientCxfConfiguration extends AcsClientConfiguration implements ClientCxfConfiguration { @Value("${content.service.cxf.defaultBusEnabled:true}") private boolean defaultBusEnabled; public boolean isDefaultBusEnabled() { return this.defaultBusEnabled; } public void setDefaultBusEnabled(boolean defaultBusEnabled) { this.defaultBusEnabled = defaultBusEnabled; } }
src/main/cxf/com/inteligr8/alfresco/acs/AcsClientCxfImpl.java 0 → 100644 +29 −0 Original line number Diff line number Diff line package com.inteligr8.alfresco.acs; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Component; import com.inteligr8.rs.ClientCxfImpl; /** * This class provides a POJO & Spring-based implementation of the Apache * CXF client. You can use it outside of the Spring context, but you will need * the spring-context and spring-beans libraries in your non-Spring * application. * * @author brian@inteligr8.com */ @Component("acs.client.cxf") @Lazy public class AcsClientCxfImpl extends ClientCxfImpl { /** * This constructor is for Spring or POJO use */ @Autowired public AcsClientCxfImpl(AcsClientCxfConfiguration config) { super(config); } }
src/main/cxf/com/inteligr8/alfresco/acs/AcsPublicRestApiCxfImpl.java 0 → 100644 +25 −0 Original line number Diff line number Diff line package com.inteligr8.alfresco.acs; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Component; /** * This class provides the Apache CXF client to the JAX-RS API for the ACS * Public ReST API. * * @author brian@inteligr8.com */ @Component("acs.api.cxf") @Lazy public class AcsPublicRestApiCxfImpl extends AcsPublicRestApiImpl implements AcsPublicRestCxfApi { /** * This constructor is for Spring or POJO use */ @Autowired public AcsPublicRestApiCxfImpl(AcsClientCxfImpl client) { super(client); } }