mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
AVM nodes get a useful version id.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4727 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -73,7 +73,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
public PlainFileNodeImpl(AVMStore store)
|
||||
{
|
||||
super(store.getAVMRepository().issueID(), store);
|
||||
// AVMContext.fgInstance.fAVMNodeDAO.flush();
|
||||
setVersionID(1);
|
||||
AVMDAOs.Instance().fAVMNodeDAO.save(this);
|
||||
AVMDAOs.Instance().fAVMNodeDAO.flush();
|
||||
}
|
||||
@@ -90,6 +90,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
// The null is OK because the Lookup argument is only use by
|
||||
// layered files.
|
||||
setContentData(other.getContentData(null));
|
||||
setVersionID(other.getVersionID() + 1);
|
||||
AVMDAOs.Instance().fAVMNodeDAO.save(this);
|
||||
AVMDAOs.Instance().fAVMNodeDAO.flush();
|
||||
copyProperties(other);
|
||||
@@ -97,6 +98,8 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
copyACLs(other);
|
||||
}
|
||||
|
||||
// TODO Is there a reason for passing all these parameters instead
|
||||
// of just the LayeredFileNode?
|
||||
/**
|
||||
* Construct a new one. This is called when a LayeredFileNode
|
||||
* is copied.
|
||||
@@ -109,11 +112,13 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
ContentData content,
|
||||
Map<QName, PropertyValue> props,
|
||||
List<AVMAspectName> aspects,
|
||||
DbAccessControlList acl)
|
||||
DbAccessControlList acl,
|
||||
int versionID)
|
||||
{
|
||||
super(store.getAVMRepository().issueID(), store);
|
||||
setContentData(content);
|
||||
setBasicAttributes(attrs);
|
||||
setVersionID(versionID + 1);
|
||||
AVMDAOs.Instance().fAVMNodeDAO.save(this);
|
||||
AVMDAOs.Instance().fAVMNodeDAO.flush();
|
||||
setProperties(props);
|
||||
|
Reference in New Issue
Block a user