Working with Versions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2007 10:18 AM
Hi I'm am new Java Developer with Alfresco.
Can I have examples for working with the version of documents?
Checkout and retrieve of document
Checkin and upload the metadata of a document
Thank you.
Can I have examples for working with the version of documents?
Checkout and retrieve of document
Checkin and upload the metadata of a document
Thank you.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2007 08:15 AM
Not sure exactly what you're looking for, but have you seen this?
http://wiki.alfresco.com/wiki/Introducing_the_Alfresco_Java_Content_Repository_API
http://wiki.alfresco.com/wiki/Introducing_the_Alfresco_Java_Content_Repository_API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2007 03:12 AM
I want examples to checkout, checkin files with WS.
This is my code
This is my code
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService(); ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService(); AuthoringServiceSoapBindingStub authoringService = WebServiceFactory.getAuthoringService(); //reference al nodo Node nodo = this.getNode(documentID); Reference contentReference = nodo.getReference(); Predicate itemsToCheckOut = new Predicate(new Reference[]{contentReference}, null, null); CheckoutResult checkOutResult = authoringService.checkout(itemsToCheckOut, null); // Get a reference to the working copy Reference workingCopyReference = checkOutResult.getWorkingCopies()[0]; Content[] readResult = contentService.read( itemsToCheckOut, Constants.PROP_CONTENT); Content content = readResult[0]; is = ContentUtils.getContentAsInputStream(content); return is;
