07-07-2008 04:40 PM
07-07-2008 06:17 PM
07-08-2008 11:15 AM
<bean id="searchScript" parent="baseJavaScriptExtension" class="org.alfresco.repo.jscript.Search">
<property name="extensionName">
<value>search</value>
</property>
<property name="serviceRegistry">
<ref bean="ServiceRegistry"/>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
</bean>
(spaces.store is defined in repository.properties as workspace://SpacesStore)<bean id="searchScriptVersionStore" parent="baseJavaScriptExtension" class="org.alfresco.repo.jscript.Search">
<property name="extensionName">
<value>searchVersionStore</value>
</property>
<property name="serviceRegistry">
<ref bean="ServiceRegistry"/>
</property>
<property name="storeUrl">
<value>workspace://lightWeightVersionStore</value>
</property>
</bean>
As you can see, all we did was change the bean id, extensionName property (which is the variable in javascript), and the storeUrl (which we scope to our lightWeightVersionStore). Then in our webscript: var versionnode = searchVersionStore.findNode("workspace://lightWeightVersionStore/" + uuid );
worked like a charm.
07-15-2008 03:46 AM
09-11-2008 11:02 AM
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.