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:
@@ -312,7 +312,7 @@ public class AVMRepository
|
||||
}
|
||||
if (version < 0)
|
||||
{
|
||||
version = srcRepo.createSnapshot();
|
||||
version = srcRepo.createSnapshot("Branch Snapshot", null);
|
||||
}
|
||||
sPath = srcRepo.lookup(version, pathParts[1], false, false);
|
||||
if (sPath == null)
|
||||
@@ -592,7 +592,7 @@ public class AVMRepository
|
||||
{
|
||||
throw new AVMNotFoundException("Store not found.");
|
||||
}
|
||||
result.add(store.createSnapshot());
|
||||
result.add(store.createSnapshot(null, null));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -600,16 +600,18 @@ public class AVMRepository
|
||||
/**
|
||||
* Create a snapshot of a single AVMStore.
|
||||
* @param store The name of the repository.
|
||||
* @param tag The short description.
|
||||
* @param description The thick description.
|
||||
* @return The version id of the newly snapshotted repository.
|
||||
*/
|
||||
public int createSnapshot(String storeName)
|
||||
public int createSnapshot(String storeName, String tag, String description)
|
||||
{
|
||||
AVMStore store = getAVMStoreByName(storeName);
|
||||
if (store == null)
|
||||
{
|
||||
throw new AVMNotFoundException("Store not found.");
|
||||
}
|
||||
return store.createSnapshot();
|
||||
return store.createSnapshot(tag, description);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user