35 lines
806 B
Java
35 lines
806 B
Java
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.alfresco.acs.api.NodesJerseyApi;
|
|
import com.inteligr8.rs.ClientConfiguration;
|
|
|
|
/**
|
|
* Alfresco Content Services Spring-ready API for Jersey
|
|
*/
|
|
@Component("acs.api.jersey")
|
|
@Lazy
|
|
public class AcsPublicRestApiJerseyImpl extends AcsPublicRestApi {
|
|
|
|
@Autowired
|
|
private AcsClientJerseyImpl client;
|
|
|
|
@Override
|
|
ClientConfiguration getConfig() {
|
|
return this.client.getConfig();
|
|
}
|
|
|
|
@Override
|
|
protected <T> T getApi(Class<T> apiClass) {
|
|
return this.client.getApi(apiClass);
|
|
}
|
|
|
|
public NodesJerseyApi getNodesExtApi() {
|
|
return this.client.getApi(NodesJerseyApi.class);
|
|
}
|
|
|
|
}
|