Author: fmui
Date: Thu Oct  7 13:05:03 2010
New Revision: 1005436

URL: http://svn.apache.org/viewvc?rev=1005436&view=rev
Log:
- adjusted script to changed client API

Modified:
    
incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy

Modified: 
incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy?rev=1005436&r1=1005435&r2=1005436&view=diff
==============================================================================
--- 
incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
 (original)
+++ 
incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/CMIS.groovy
 Thu Oct  7 13:05:03 2010
@@ -105,7 +105,7 @@ class CMIS {
                     (PropertyIds.NAME): name
                 ]
         
-        return parentFolder.createFolder(properties, 
session.getDefaultContext())
+        return parentFolder.createFolder(properties)
     }
     
     Document createTextDocument(parent, String name, String content, String 
type = "cmis:document", 
@@ -120,8 +120,7 @@ class CMIS {
         def stream = new ByteArrayInputStream(content.bytes)
         def contentStream = new ContentStreamImpl(name, content.bytes.length, 
"text/plain", stream)
         
-        return parentFolder.createDocument(properties, contentStream, 
-        versioningState, session.getDefaultContext())
+        return parentFolder.createDocument(properties, contentStream, 
versioningState)
     }
     
     Document createDocumentFromFile(parent, File file, String type = 
"cmis:document", 
@@ -138,8 +137,7 @@ class CMIS {
         
         def contentStream = new ContentStreamImpl(name, file.size(), mimetype, 
new FileInputStream(file))
         
-        return parentFolder.createDocument(properties, contentStream,
-        versioningState, session.getDefaultContext())
+        return parentFolder.createDocument(properties, contentStream, 
versioningState)
     }
     
     void delete(id) {


Reply via email to