org.alfresco.sample.webservice
Class CheckOutCheckIn

java.lang.Object
  extended by org.alfresco.sample.webservice.SamplesBase
      extended by org.alfresco.sample.webservice.CheckOutCheckIn

public class CheckOutCheckIn
extends SamplesBase

Web service sample 5

This sample shows how to check documents out, check them back in and then view the version history.

Author:
Roy Wetherall

Field Summary
 
Fields inherited from class org.alfresco.sample.webservice.SamplesBase
PASSWORD, SAMPLE_FOLDER, STORE, USERNAME
 
Constructor Summary
CheckOutCheckIn()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main function
static void makeVersionable(org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub respositoryService, org.alfresco.webservice.types.Reference reference)
          Helper method to make apply the versionable aspect to a given reference See sample 4 for more CML examples
 
Methods inherited from class org.alfresco.sample.webservice.SamplesBase
createSampleData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckOutCheckIn

public CheckOutCheckIn()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main function

Throws:
java.lang.Exception

makeVersionable

public static void makeVersionable(org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub respositoryService,
                                   org.alfresco.webservice.types.Reference reference)
                            throws java.lang.Exception
Helper method to make apply the versionable aspect to a given reference

See sample 4 for more CML examples

Parameters:
respositoryService - the respository service
reference - the reference
Throws:
java.lang.Exception


Copyright © 2008. All Rights Reserved.