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