cancel
Showing results for 
Search instead for 
Did you mean: 

Where to find the Spring-Bean for search.get.desc.xml

fnumrich
Champ in-the-making
Champ in-the-making
Hello,

I've currently got the alfresco src out of svn and now looking around to understand webscripts.

Looking at the webscript-description at 'remote-api\config\alfresco\templates\webscripts\org\alfresco\slingshot\search\search.get.desc.xml' I wounder where I can find the corresponding Bean (Java-Class als well as the Spring-Deployment-Descriptor defining the spring-bean).

As the documentation for webscripts state (http://wiki.alfresco.com/wiki/Web_Scripts#Java-Backed_Implementations), depending on the above mentioned xml-file the Spring-Bean's ID should be: 'webscript.org.alfresco.slingshot.search.search.get'.
So I've searched the workspace for a xml-file containing this paticular string, but did not find the Spring-Context defining this Bean an therefore no corresponding Java-Class.

To be sure I'm I've tested the same procedure for 'remote-api\config\alfresco\templates\webscripts\org\alfresco\repository\search\searchproxy.get.desc.xml'.
There I've found the Spring-Context at 'remote-api\config\alfresco\web-scripts-application-context.xml' and the java-Class at 'remote-api\source\java\org\alfresco\repo\web\scripts\bean\SearchProxy.java'.

Can anyone give me a hint where can I find the Spring-Bean and corresponding Java-class for 'remote-api\config\alfresco\templates\webscripts\org\alfresco\slingshot\search\search.get.desc.xml'?

Thanks in advance
Frank
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
That script is implemented in Java Script,  in particular search.get.js in the same folder.     There is no "Spring Bean" for it.

fnumrich
Champ in-the-making
Champ in-the-making
@mrogers: Thank you very much, that helped me further.

fnumrich
Champ in-the-making
Champ in-the-making
Hello again,

I looked at search.get.js which includes search.lib.js.
In search.lib.js the search result ist retrieved by calling
nodes = search.query(queryDef);
But I can't figure out where
search
comes from and what kind of type it is.

Can  someone give me an hit for this?

Thanks in advance
Frank

mrogers
Star Contributor
Star Contributor
Search is a "root" object of the Java Script API.

Look at the "Search API" here.
http://www.alfresco.com/help/33/enterprise/api/
http://wiki.alfresco.com/wiki/3.4_JavaScript_API
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.