Missing AVM JavaScript API method "avmnode.parentPath" (as mentioned in docs)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6177 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-07-05 13:28:14 +00:00
parent 6017658ff6
commit 96ee8a6d01

View File

@@ -123,6 +123,19 @@ public class AVMNode extends ScriptNode
return getVersion();
}
/**
* @return AVM path to the parent node
*/
public String getParentPath()
{
return AVMNodeConverter.SplitBase(this.path)[0];
}
public String jsGet_parentPath()
{
return getParentPath();
}
/**
* @return QName type of this node
*/