org.alfresco.sample.webservice
Class ContentReadAndWrite

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

public class ContentReadAndWrite
extends SamplesBase

Web service sample 3

This web service sample shows how new content can be added to the repository and how content can be read and updated via the web service API.

Author:
Roy Wetherall

Field Summary
 
Fields inherited from class org.alfresco.sample.webservice.SamplesBase
PASSWORD, SAMPLE_FOLDER, STORE, USERNAME
 
Constructor Summary
ContentReadAndWrite()
           
 
Method Summary
static org.alfresco.webservice.types.Reference createNewContent(org.alfresco.webservice.content.ContentServiceSoapBindingStub contentService, java.lang.String name, java.lang.String contentString)
          Helper method to create new content.
static void main(java.lang.String[] args)
          Main function
 
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

ContentReadAndWrite

public ContentReadAndWrite()
Method Detail

main

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

Throws:
java.lang.Exception

createNewContent

public static org.alfresco.webservice.types.Reference createNewContent(org.alfresco.webservice.content.ContentServiceSoapBindingStub contentService,
                                                                       java.lang.String name,
                                                                       java.lang.String contentString)
                                                                throws java.lang.Exception
Helper method to create new content.

Parameters:
contentService - the content web service
content - the content itself
Returns:
a reference to the created content node
Throws:
java.lang.Exception


Copyright © 2008. All Rights Reserved.