mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Aspects on AVM nodes are copied on write. Also missing configuration change
from last checkin. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3699 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -54,6 +54,7 @@ class LayeredFileNodeImpl extends FileNodeImpl implements LayeredFileNode
|
||||
AVMContext.fgInstance.fAVMNodeDAO.save(this);
|
||||
AVMContext.fgInstance.fAVMNodeDAO.flush();
|
||||
copyProperties(other);
|
||||
copyAspects(other);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,10 +84,12 @@ class LayeredFileNodeImpl extends FileNodeImpl implements LayeredFileNode
|
||||
{
|
||||
throw new AVMException("Unbacked layered file node.");
|
||||
}
|
||||
// TODO This doesn't look quite right.
|
||||
PlainFileNodeImpl newMe = new PlainFileNodeImpl(lPath.getAVMStore(),
|
||||
getBasicAttributes(),
|
||||
getContentData(lPath),
|
||||
getProperties());
|
||||
indirect.getProperties(),
|
||||
AVMContext.fgInstance.fAVMAspectNameDAO.get(indirect));
|
||||
newMe.setAncestor(this);
|
||||
return newMe;
|
||||
}
|
||||
|
Reference in New Issue
Block a user