mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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"/>
|
||||||
|
@@ -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
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user