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:
@@ -104,6 +104,7 @@ class Lookup
|
||||
fFinalStore = store;
|
||||
}
|
||||
|
||||
// TODO This is badly in need of cleanup.
|
||||
/**
|
||||
* Add a new node to the lookup.
|
||||
* @param node The node to add.
|
||||
@@ -135,6 +136,13 @@ class Lookup
|
||||
comp.setIndirection(computeIndirection(name));
|
||||
}
|
||||
fLayeredYet = true;
|
||||
// Record the first layer seen.
|
||||
if (fTopLayer == null)
|
||||
{
|
||||
fTopLayer = oNode;
|
||||
fTopLayerIndex = fPosition + 1;
|
||||
}
|
||||
fLowestLayerIndex = fPosition + 1;
|
||||
}
|
||||
fComponents.add(comp);
|
||||
fPosition++;
|
||||
|
Reference in New Issue
Block a user