NodeState parent = (NodeState) stateMgr.getTransientItemState(newParentId);
// check parent's renamed child node entries
for (Iterator<ChildNodeEntry> cneIt =
parent.getRenamedChildNodeEntries().iterator();
cneIt.hasNext();) {
ChildNodeEntry cne =
cneIt.next();
if (cne.getId().equals(nodeState.getId())) {
// node has been renamed,
// add parent to dependencies
dependentIDs.add(newParentId);
}
}
} catch (ItemStateException ise) {
// should never get here
log.warn("failed to retrieve transient state: " + newParentId, ise);
}
}
}
}
}
}
// removed child node entries
for (Iterator<ChildNodeEntry> cneIt =
nodeState.getRemovedChildNodeEntries().iterator();
cneIt.hasNext();) {
ChildNodeEntry cne = cneIt.next();
dependentIDs.add(cne.getId());
}
// added child node entries
for (Iterator<ChildNodeEntry> cneIt =
nodeState.getAddedChildNodeEntries().iterator();
cneIt.hasNext();) {
ChildNodeEntry cne = cneIt.next();
dependentIDs.add(cne.getId());
}
// now walk through dependencies and check whether they
// are within the scope of this save operation
Iterator<NodeId> depIt = dependentIDs.iterator();