cancel
Showing results for 
Search instead for 
Did you mean: 

how to get version store id

mandalinaveen
Champ on-the-rise
Champ on-the-rise
Hi,

The version related information is saved to version store  but is there any api available to get the version store details. My requirement is to retrieve the version content using web scripts from a custom java web application.

Thanks,
Naveen.
3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
It depends on which version implementation you are using .
Alfresco 1.x, 2.x (and also Labs 3a) is using  version1 store implementation whose store is "workspace://lightWeightVersionStore";
Alfresco 3.x (since Labs 3b) is using version2 store implementation whose store is "workspace://version2Store";

Hi Kaynezhang,

Is there any method available to get the version2store Id? We are using Webscripts to integrate the Alfresco with java web application.

Thanks,
Naveen

kaynezhang
World-Class Innovator
World-Class Innovator
A store is identified by Protocol( store type) and  Identifier(store id) ,for example in "workspace://SpacesStore" workspace is protocol and SpacesStore is identifer.
So "workspace://version2Store"; workspace is store type(protocol) ,version2Store is store id(identifier)d