mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
. Minor fix to search services in JavaScript API
. Some javadoc improvements git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2785 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -288,7 +288,7 @@ public final class Node implements Serializable
|
||||
|
||||
/**
|
||||
* @return Returns the Nodes at the specified XPath walking the children of this Node.
|
||||
* So a valid call might be <code>mynode.childrenByXPath("/*[@cm:name='Testing']/*");</code>
|
||||
* So a valid call might be <code>mynode.childrenByXPath("*[@cm:name='Testing']/*");</code>
|
||||
*/
|
||||
public Node[] childrenByXPath(String xpath)
|
||||
{
|
||||
@@ -1134,17 +1134,8 @@ public final class Node implements Serializable
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Executing xpath: " + xpath);
|
||||
|
||||
NodeRef contextRef;
|
||||
if (getParent() != null)
|
||||
{
|
||||
contextRef = getParent().getNodeRef();
|
||||
}
|
||||
else
|
||||
{
|
||||
contextRef = this.nodeService.getRootNode(nodeRef.getStoreRef());
|
||||
}
|
||||
List<NodeRef> nodes = this.services.getSearchService().selectNodes(
|
||||
contextRef,
|
||||
this.nodeRef,
|
||||
xpath,
|
||||
null,
|
||||
this.services.getNamespaceService(),
|
||||
|
Reference in New Issue
Block a user