mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Provided a getLatestSnapshotID() for AVMService. It returns the latest extant version of
a store. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -965,6 +965,20 @@ public class AVMRepository
|
||||
return store.getNextVersionID();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the latest extant snapshotted version id.
|
||||
* @param name The store name.
|
||||
*/
|
||||
public int getLatestSnapshotID(String name)
|
||||
{
|
||||
AVMStore store = getAVMStoreByName(name);
|
||||
if (store == null)
|
||||
{
|
||||
throw new AVMNotFoundException("Store not found.");
|
||||
}
|
||||
return store.getLastVersionID();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an AVMStore by name.
|
||||
* @param name The name of the AVMStore.
|
||||
|
Reference in New Issue
Block a user