]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeService.java
Salome HOME
Download and upload operations from server to client (from client to server) are...
[tools/siman.git] / Workspace / Siman-WS / src / org / splat / ws_server / service / salome / SimanSalomeService.java
index 62d91e2e9231e5557e6b4fd8bc4a97cd9084c2c8..b83d7ff28f373d7d01369de3435bb25262a69e5c 100644 (file)
@@ -1,5 +1,9 @@
 package org.splat.ws_server.service.salome;
 
+import java.io.IOException;
+
+import javax.activation.DataHandler;
+
 
 public interface SimanSalomeService {
        
@@ -10,6 +14,21 @@ public interface SimanSalomeService {
      * @return the URL location of the siman-salome.conf
      */
 
-       public String createConfigFile(final Long studyId, final Long scenarioId,
+       String createConfigFile(final Long studyId, final Long scenarioId,
                        final Long userId);
+       
+       /**
+        * Get the server file on client.
+        * @param fileURL - the file URL
+        * @return the data handler
+        */
+       DataHandler getFile(final String fileURL);
+       
+       /**
+        * Put the file from client to server.
+        * @param dataHandler the data handler
+        * @param vaultURL the target URL in vault
+        * @throws IOException input/output error
+        **/
+       void /*DataHandler*/ putFile(final DataHandler dataHandler, final String vaultURL);
 }