mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
OpenSearch
- integrate Alfresco Web Client authentication (login page) - small refactoring of api service initialisation git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,8 +20,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
|
||||
import org.aopalliance.intercept.MethodInterceptor;
|
||||
import org.springframework.aop.framework.ProxyFactory;
|
||||
import org.springframework.aop.support.RegexpMethodPointcutAdvisor;
|
||||
@@ -47,7 +45,7 @@ public class APIServiceRegistry
|
||||
*
|
||||
* @param context
|
||||
*/
|
||||
public APIServiceRegistry(ServletContext servletContext, ApplicationContext appContext)
|
||||
public APIServiceRegistry(ApplicationContext appContext)
|
||||
{
|
||||
// retrieve service authenticator
|
||||
MethodInterceptor authenticator = (MethodInterceptor)appContext.getBean("web.api.Authenticator");
|
||||
@@ -60,7 +58,6 @@ public class APIServiceRegistry
|
||||
{
|
||||
// retrieve service
|
||||
APIService service = apiService.getValue();
|
||||
service.init(servletContext);
|
||||
|
||||
// retrieve http method
|
||||
APIRequest.HttpMethod method = service.getHttpMethod();
|
||||
|
Reference in New Issue
Block a user