AnsweredAssumed Answered

How to checkin a major docu

Question asked by yyyyde on Aug 18, 2008
Latest reply on Mar 30, 2010 by mjuarez
How can I manually set major version for a docu. I want to check out a docu from the service, then check the docu with major version and new content in the service.

             CheckoutResult checkOutResult = authoringService.checkout(itemsToCheckOut, parentReference);
        Reference workingCopyReference = checkOutResult.getWorkingCopies()[0];
        Predicate predicate = new Predicate(new Reference[]{workingCopyReference}, STORE, null);
        
                     ….update docu with the new content and major version…..
    
             NamedValue[] comments = new NamedValue[]{
                   Utils.createNamedValue("description", "update")};
                          
           
            
        authoringService.checkin(predicate, comments, false);

thanks

Outcomes