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