mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
JavaScript node and Template node xpath search now uses QueryParameters for folder path searches
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5408 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,6 +31,7 @@ import java.util.List;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.TemplateNode;
|
||||
import org.alfresco.service.cmr.search.QueryParameterDefinition;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
@@ -63,7 +64,7 @@ public abstract class BasePathResultsMap extends BaseTemplateMap
|
||||
*
|
||||
* @return List<TemplateNode>
|
||||
*/
|
||||
protected List<TemplateNode> getChildrenByXPath(String xpath, boolean firstOnly)
|
||||
protected List<TemplateNode> getChildrenByXPath(String xpath, QueryParameterDefinition[] params, boolean firstOnly)
|
||||
{
|
||||
List<TemplateNode> result = null;
|
||||
|
||||
@@ -75,7 +76,7 @@ public abstract class BasePathResultsMap extends BaseTemplateMap
|
||||
List<NodeRef> nodes = this.services.getSearchService().selectNodes(
|
||||
this.parent.getNodeRef(),
|
||||
xpath,
|
||||
null,
|
||||
params,
|
||||
this.services.getNamespaceService(),
|
||||
false);
|
||||
|
||||
|
Reference in New Issue
Block a user