mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Odds and ends. Another CLT. Renamed an AVM stress test so that it won't run
during builds but is available for periodic checks. A sort-of-experimental optimization of the AVM lookup cache. Minor config change for remote authentication. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4491 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -115,11 +115,38 @@ class Lookup
|
||||
fLowestLayerIndex = other.fLowestLayerIndex;
|
||||
fNeedsCopying = other.fNeedsCopying;
|
||||
fDirectlyContained = other.fDirectlyContained;
|
||||
for (LookupComponent comp : other.fComponents)
|
||||
if (fLayeredYet)
|
||||
{
|
||||
for (LookupComponent comp : other.fComponents)
|
||||
{
|
||||
LookupComponent newComp = new LookupComponent();
|
||||
newComp.setName(comp.getName());
|
||||
newComp.setIndirection(comp.getIndirection());
|
||||
newComp.setNode(nodeDAO.getByID(comp.getNode().getId()));
|
||||
if (newComp.getNode() == null)
|
||||
{
|
||||
fValid = false;
|
||||
return;
|
||||
}
|
||||
fComponents.add(newComp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// If this is not a layered lookup then we do not
|
||||
// need to reload any of the actual nodes except for
|
||||
// the last.
|
||||
int i = 0;
|
||||
for (; i < fPosition; ++i)
|
||||
{
|
||||
LookupComponent comp = other.fComponents.get(i);
|
||||
LookupComponent newComp = new LookupComponent();
|
||||
newComp.setName(comp.getName());
|
||||
fComponents.add(newComp);
|
||||
}
|
||||
LookupComponent comp = other.fComponents.get(i);
|
||||
LookupComponent newComp = new LookupComponent();
|
||||
newComp.setName(comp.getName());
|
||||
newComp.setIndirection(comp.getIndirection());
|
||||
newComp.setNode(nodeDAO.getByID(comp.getNode().getId()));
|
||||
if (newComp.getNode() == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user