mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
AVMService.createSnapshot() returns a map of possibly snapshotted stores.
When one snapshots a store, other stores can be implicitly snapshotted. This change allows clients to exploit this information. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -123,7 +123,8 @@ public class SnapshotSandboxDialog extends BaseDialogBean
|
|||||||
// find the previous version - to see if a snapshot was acutally performed
|
// find the previous version - to see if a snapshot was acutally performed
|
||||||
int oldVersion = this.avmService.getLatestSnapshotID(this.avmBrowseBean.getSandbox());
|
int oldVersion = this.avmService.getLatestSnapshotID(this.avmBrowseBean.getSandbox());
|
||||||
int version = this.avmService.createSnapshot(
|
int version = this.avmService.createSnapshot(
|
||||||
this.avmBrowseBean.getSandbox(), this.label, this.description);
|
this.avmBrowseBean.getSandbox(), this.label, this.description)
|
||||||
|
.get(this.avmBrowseBean.getSandbox());
|
||||||
if (version > oldVersion)
|
if (version > oldVersion)
|
||||||
{
|
{
|
||||||
// a new snapshot was created
|
// a new snapshot was created
|
||||||
|
Reference in New Issue
Block a user