. 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:
Kevin Roast
2006-05-08 09:42:34 +00:00
parent 95c6b0ed8e
commit 7ae60915a5

View File

@@ -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(),