if (path.equals(Constants.ROOT_PATH))
{
return parent.getACL();
}
ItemData item = null;
QPathEntry[] relPathEntries = path.getRelPath(path.getDepth());
for (int i = 0; i < relPathEntries.length; i++)
{
if (i == relPathEntries.length - 1)
{
item = getItemData(parent, relPathEntries[i], ItemType.NODE);
}
else
{
item = getItemData(parent, relPathEntries[i], ItemType.UNKNOWN);
}
if (item == null)
{
break;
}
if (item.isNode())
{
parent = (NodeData)item;
}
else if (i < relPathEntries.length - 1)
{
throw new IllegalPathException("Get ACL. Path can not contains a property as the intermediate element");
}
}
if (item != null && item.isNode())
{
// node ACL
return ((NodeData)item).getACL();
}
else