Commit a96e5f2a authored by Brian Long's avatar Brian Long
Browse files

Merge branch 'develop-jersey' into stable-jersey

parents a5d09e2f 889c94af
Loading
Loading
Loading
Loading
+1 −1
Changes for pom.xml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@
		<dependency>
			<groupId>com.inteligr8.alfresco</groupId>
			<artifactId>aps-public-rest-api</artifactId>
			<version>3.0.0</version>
			<version>3.0-SNAPSHOT</version>
			<scope>provided</scope> <!-- explicitly, bring your own version -->
		</dependency>
		<dependency>
+41 −0
Changes for src/main/java/com/inteligr8/alfresco/activiti/ApsProtectedRestApiImpl.java: 41 added lines, 0 removed lines.
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.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);
	}

}
+39 −0
Changes for src/main/jersey/com/inteligr8/alfresco/activiti/ApsProtectedRestApiJerseyImpl.java: 39 added lines, 0 removed lines.
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.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);
	}

}