Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Collaboration and Administration > Managing versioning explicitly

Managing versioning explicitly

Alfresco provides a mechanism to manage versioning one of the sub-operations used by check-in and check-out operations in an explicit way.

Creating a new version

In order to create a new version of content, you can invoke the createVersion() method:

public VersionResult createVersion(
final Predicate items,
final NamedValue[] comments,
final boolean versionChildren)
throws RemoteException, AuthoringFault

The value of versionChildren must be a boolean, and it is used to enable versioning for all the children of the referenced node. If the value is TRUE, Alfresco will create versions for all the child nodes.

The following example shows you how to invoke the createVersion method:

VersionResult versionResult = authoringService.createVersion(predicateForVersion,comments, false);

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint