mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Reworks AVMService.getIndirection() to return the indirection path for a plain node
in a layered context. Modified AVMHostConfig to use this method. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3903 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -692,16 +692,22 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
{
|
||||
throw new AVMNotFoundException("Path not found.");
|
||||
}
|
||||
if (!lPath.isLayered())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
AVMNode node = lPath.getCurrentNode();
|
||||
if (node.getType() == AVMNodeType.LAYERED_DIRECTORY)
|
||||
{
|
||||
return ((LayeredDirectoryNode)node).getUnderlying(lPath);
|
||||
LayeredDirectoryNode dir = (LayeredDirectoryNode)node;
|
||||
return dir.getUnderlying(lPath);
|
||||
}
|
||||
if (node.getType() == AVMNodeType.LAYERED_FILE)
|
||||
else if (node.getType() == AVMNodeType.LAYERED_FILE)
|
||||
{
|
||||
return ((LayeredFileNode)node).getUnderlying(lPath);
|
||||
LayeredFileNode file = (LayeredFileNode)node;
|
||||
return file.getUnderlying(lPath);
|
||||
}
|
||||
throw new AVMWrongTypeException("Not a layered node: " + path);
|
||||
return lPath.getIndirectionPath();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user