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:
@@ -310,6 +310,24 @@ public abstract class AVMNodeImpl implements AVMNode, Serializable
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy all aspects from another node.
|
||||
* @param other The other node.
|
||||
*/
|
||||
protected void copyAspects(AVMNode other)
|
||||
{
|
||||
List<AVMAspectName> aspects =
|
||||
AVMContext.fgInstance.fAVMAspectNameDAO.get(other);
|
||||
for (AVMAspectName name : aspects)
|
||||
{
|
||||
AVMAspectName newName =
|
||||
new AVMAspectNameImpl();
|
||||
newName.setName(name.getName());
|
||||
newName.setNode(this);
|
||||
AVMContext.fgInstance.fAVMAspectNameDAO.save(newName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a property on a node. Overwrite it if it exists.
|
||||
* @param name The name of the property.
|
||||
|
Reference in New Issue
Block a user