02-10-2013 10:27 AM
02-12-2013 05:00 AM
02-12-2013 05:43 AM
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters[DotCMIS.SessionParameter.BindingType] = BindingType.AtomPub;
parameters[DotCMIS.SessionParameter.AtomPubUrl] = "http://localhost:8080/alfresco/service/cmis";
parameters[DotCMIS.SessionParameter.User] = "admin";
parameters[DotCMIS.SessionParameter.Password] = "admin";
SessionFactory factory = SessionFactory.NewInstance();
ISession session = factory.GetRepositories(parameters)[0].CreateSession();
// get the document using its noderef
Document document = ((Document)session.GetObject("workspace://SpacesStore/b49fb618-76a1-4f19-91ac-37c8c39a2412"));
IList<IDocument> documents = document.GetAllVersions();
foreach(Document doc in documents )
{
Console.WriteLine("Document name : " + doc.Name + " and its version " + doc.VersionLabel);
}
02-13-2013 11:32 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.