cancel
Showing results for 
Search instead for 
Did you mean: 

accessing versioning information?

esource
Champ on-the-rise
Champ on-the-rise
how can we access versioning information regarding content/documents with java?
1 REPLY 1

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
org.alfresco.web.bean.repository.Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getVersionService().getCurrentVersion(nodeRef)
   
   org.alfresco.web.bean.repository.Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getVersionService().getVersionHistory(nodeRef)

hope this helps.