Fix for ALF-11042

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31556 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Steven Glover
2011-10-31 09:54:00 +00:00
parent fb94996c61
commit fa7854a9aa
2 changed files with 14 additions and 1 deletions

View File

@@ -102,6 +102,9 @@
<bean id="searchScript" parent="baseJavaScriptExtension" class="org.alfresco.repo.jscript.Search"> <bean id="searchScript" parent="baseJavaScriptExtension" class="org.alfresco.repo.jscript.Search">
<property name="extensionName"> <property name="extensionName">
<value>search</value> <value>search</value>
</property>
<property name="searchSubsystem">
<value>${index.subsystem.name}</value>
</property> </property>
<property name="serviceRegistry"> <property name="serviceRegistry">
<ref bean="ServiceRegistry"/> <ref bean="ServiceRegistry"/>

View File

@@ -77,6 +77,7 @@ public class Search extends BaseScopableProcessorExtension
/** Repository helper */ /** Repository helper */
protected Repository repository; protected Repository repository;
private String searchSubsystem;
/** /**
* Set the default store reference * Set the default store reference
@@ -112,10 +113,19 @@ public class Search extends BaseScopableProcessorExtension
{ {
this.repository = repository; this.repository = repository;
} }
public void setSearchSubsystem(String searchSubsystem)
{
this.searchSubsystem = searchSubsystem;
}
// JavaScript API // JavaScript API
public String getSearchSubsystem()
{
return searchSubsystem;
}
/** /**
* Find a single Node by the Node reference * Find a single Node by the Node reference
* *