diff --git a/config/alfresco/extension/web-api-config-custom.xml.sample b/config/alfresco/extension/web-scripts-config-custom.xml.sample similarity index 100% rename from config/alfresco/extension/web-api-config-custom.xml.sample rename to config/alfresco/extension/web-scripts-config-custom.xml.sample diff --git a/config/alfresco/web-api-application-context.xml b/config/alfresco/web-api-application-context.xml deleted file mode 100644 index 3fab5264e4..0000000000 --- a/config/alfresco/web-api-application-context.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - - - - - - - - - - - ${spaces.store} - /${spaces.company_home.childname} - - - - - - - - - - - - - - - - - - - - - - alfresco/templates/web/api - - - - - - - - - - - - - - web.api.framework.scriptedservice - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/html - text/xml - application/atom+xml - application/rss+xml - application/json - application/opensearchdescription+xml - - - - - - - MSIE - - - text/xml - text/xml - - - - - - - - - - - - - classpath:alfresco/web-api-config.xml - classpath:alfresco/extension/web-api-config-custom.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/config/alfresco/web-api-application-context-test.xml b/config/alfresco/web-scripts-application-context-test.xml similarity index 52% rename from config/alfresco/web-api-application-context-test.xml rename to config/alfresco/web-scripts-application-context-test.xml index 501a9d099b..c724113268 100644 --- a/config/alfresco/web-api-application-context-test.xml +++ b/config/alfresco/web-scripts-application-context-test.xml @@ -7,10 +7,10 @@ - - - - + + + + diff --git a/config/alfresco/web-scripts-application-context.xml b/config/alfresco/web-scripts-application-context.xml new file mode 100644 index 0000000000..ddc2a83801 --- /dev/null +++ b/config/alfresco/web-scripts-application-context.xml @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + ${spaces.store} + /${spaces.company_home.childname} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + workspace://SpacesStore + /${spaces.company_home.childname}/${spaces.dictionary.childname}/cm:webscripts + + + + alfresco/templates/webscripts + + + + + + + + + + + + + + webscript_default + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/html + text/xml + application/atom+xml + application/rss+xml + application/json + application/opensearchdescription+xml + + + + + + + MSIE + + + text/xml + text/xml + + + + + + + + + + + + + classpath:alfresco/web-scripts-config.xml + classpath:alfresco/extension/web-api-config-custom.xml + classpath:alfresco/extension/web-scripts-config-custom.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/alfresco/web-api-config.xml b/config/alfresco/web-scripts-config.xml similarity index 100% rename from config/alfresco/web-api-config.xml rename to config/alfresco/web-scripts-config.xml diff --git a/source/java/org/alfresco/web/ui/repo/component/UIOpenSearch.java b/source/java/org/alfresco/web/ui/repo/component/UIOpenSearch.java index d951df3bbb..982c24f414 100644 --- a/source/java/org/alfresco/web/ui/repo/component/UIOpenSearch.java +++ b/source/java/org/alfresco/web/ui/repo/component/UIOpenSearch.java @@ -36,10 +36,10 @@ import javax.faces.context.ResponseWriter; import org.alfresco.config.Config; import org.alfresco.config.ConfigService; import org.alfresco.repo.content.MimetypeMap; -import org.alfresco.web.api.SearchProxy; import org.alfresco.web.app.Application; import org.alfresco.web.config.OpenSearchConfigElement; import org.alfresco.web.config.OpenSearchConfigElement.EngineConfig; +import org.alfresco.web.scripts.bean.SearchProxy; import org.alfresco.web.ui.common.Utils; import org.alfresco.web.ui.common.component.SelfRenderingComponent; import org.springframework.web.jsf.FacesContextUtils; @@ -266,9 +266,9 @@ public class UIOpenSearch extends SelfRenderingComponent // get the web api config service object from spring ConfigService cfgSvc = (ConfigService)FacesContextUtils. - getRequiredWebApplicationContext(context).getBean("web.api.framework.config"); + getRequiredWebApplicationContext(context).getBean("webscripts.config"); SearchProxy searchProxy = (SearchProxy)FacesContextUtils. - getRequiredWebApplicationContext(context).getBean("web.api.org.alfresco.repository.searchproxy_get"); + getRequiredWebApplicationContext(context).getBean("webscript.org.alfresco.repository.searchproxy_get"); if (cfgSvc != null) { // get the OpenSearch configuration diff --git a/source/web/WEB-INF/web.xml b/source/web/WEB-INF/web.xml index ed68bb7b7f..4388ef3fd2 100644 --- a/source/web/WEB-INF/web.xml +++ b/source/web/WEB-INF/web.xml @@ -63,10 +63,10 @@ contextConfigLocation - classpath:alfresco/web-client-application-context.xml - classpath:web-services-application-context.xml - classpath:alfresco/web-api-application-context.xml classpath:alfresco/application-context.xml + classpath:alfresco/web-client-application-context.xml + classpath:alfresco/web-scripts-application-context.xml + classpath:web-services-application-context.xml Spring config file locations @@ -249,7 +249,7 @@ apiServlet - org.alfresco.web.api.framework.APIServlet + org.alfresco.web.scripts.WebScriptServlet