Commit 24f7f545 authored by Brian Long's avatar Brian Long
Browse files

added back CXF

parent 85318390
Loading
Loading
Loading
Loading
+27 −1
Original line number Diff line number Diff line
@@ -43,10 +43,11 @@
		<maven.compiler.target>8</maven.compiler.target>
		<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>

		<acs.platform.tag>acs62</acs.platform.tag>
		<acs.platform.tag>acs7</acs.platform.tag>

		<junit.version>5.7.2</junit.version>
		<spring.version>5.2.14.RELEASE</spring.version>
		<cxf.version>3.4.7</cxf.version>
	</properties>

	<dependencies>
@@ -89,6 +90,31 @@
	
	<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/cxf</source>
							</sources>
						</configuration>
					</execution>
					<execution>
						<id>add-test-src</id>
						<goals><goal>add-test-source</goal></goals>
						<configuration>
							<sources>
								<source>src/test/cxf</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>3.0.0-M5</version>
+46 −0
Original line number Diff line number Diff line
/*
 * 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.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 &amp; 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;
	}

}
+43 −0
Original line number Diff line number Diff line
/*
 * 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.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 &amp; 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);
	}

}
+39 −0
Original line number Diff line number Diff line
/*
 * 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.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);
	}

}
+1 −0
Original line number Diff line number Diff line
org.apache.cxf.jaxrs.client.spec.ClientBuilderImpl
 No newline at end of file
Loading