In certain circumstances update was not capturing aspects, properties, and

ACLs.  This fixes that.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3979 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-29 21:29:45 +00:00
parent 0b1accf9f9
commit 752e46e0f1
9 changed files with 99 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ class LayeredDirectoryNodeImpl extends DirectoryNodeImpl implements LayeredDirec
* @param indirection The indirection path to set.
* @param store The store that owns this node.
*/
public LayeredDirectoryNodeImpl(String indirection, AVMStore store)
public LayeredDirectoryNodeImpl(String indirection, AVMStore store, AVMNode toCopy)
{
super(store.getAVMRepository().issueID(), store);
fLayerID = -1;
@@ -83,6 +83,12 @@ class LayeredDirectoryNodeImpl extends DirectoryNodeImpl implements LayeredDirec
fOpacity = false;
AVMContext.fgInstance.fAVMNodeDAO.save(this);
AVMContext.fgInstance.fAVMNodeDAO.flush();
if (toCopy != null)
{
copyProperties(toCopy);
copyACLs(toCopy);
copyAspects(toCopy);
}
}
/**
@@ -253,7 +259,7 @@ class LayeredDirectoryNodeImpl extends DirectoryNodeImpl implements LayeredDirec
// layer. The following creates a node that will inherit its
// indirection from its parent.
newMe = new LayeredDirectoryNodeImpl((String)null,
store);
store, this);
newMe.setPrimaryIndirection(false);
newMe.setLayerID(lPath.getTopLayer().getLayerID());
}