mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added two new fields to VersionRoot (the version record), a short description,
and a long description. Adjusted signature of createSnapshot(), and update() to match, and thus actions and tests that needed to be fixed. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4290 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -122,7 +122,9 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
fRoot,
|
||||
fNextVersionID,
|
||||
time,
|
||||
creator);
|
||||
creator,
|
||||
"Initial Empty Version.",
|
||||
"Initial Empty Version.");
|
||||
fNextVersionID++;
|
||||
AVMDAOs.Instance().fVersionRootDAO.save(versionRoot);
|
||||
}
|
||||
@@ -142,7 +144,7 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
* @return The version id of the new snapshot.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public int createSnapshot()
|
||||
public int createSnapshot(String tag, String description)
|
||||
{
|
||||
// If the root isn't new, we can't take a snapshot since nothing has changed.
|
||||
if (!fRoot.getIsNew())
|
||||
@@ -166,7 +168,9 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
fRoot,
|
||||
fNextVersionID,
|
||||
System.currentTimeMillis(),
|
||||
user);
|
||||
user,
|
||||
tag,
|
||||
description);
|
||||
AVMDAOs.Instance().fVersionRootDAO.save(versionRoot);
|
||||
// Increment the version id.
|
||||
fNextVersionID++;
|
||||
|
Reference in New Issue
Block a user