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:
@@ -609,6 +609,10 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
{
|
||||
dir = AVMDAOs.Instance().fAVMNodeDAO.getAVMStoreRoot(this, version);
|
||||
}
|
||||
if (dir == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// Add an entry for the root.
|
||||
result.add(dir, "", write);
|
||||
dir = (DirectoryNode)result.getCurrentNode();
|
||||
@@ -796,6 +800,14 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
return fNextVersionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* This gets the last extant version id.
|
||||
*/
|
||||
public int getLastVersionID()
|
||||
{
|
||||
return AVMDAOs.Instance().fVersionRootDAO.getMaxVersionID(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the root directory. Hibernate.
|
||||
* @param root
|
||||
|
Reference in New Issue
Block a user