com.collabnet.ce.webservices
Class SimpleFileStorageApp

java.lang.Object
  extended by com.collabnet.ce.webservices.SimpleFileStorageApp

public class SimpleFileStorageApp
extends java.lang.Object

Class to hold the file-related methods. Wraps a collabNetApp.


Constructor Summary
SimpleFileStorageApp(CollabNetApp collabNetApp)
          Construct a new SimpleFileStorageApp.
 
Method Summary
 java.lang.String uploadFile(java.io.File file)
          Upload a file to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileStorageApp

public SimpleFileStorageApp(CollabNetApp collabNetApp)
Construct a new SimpleFileStorageApp.

Parameters:
collabNetApp - a valid (logged-in) collabNetApp.
Method Detail

uploadFile

public java.lang.String uploadFile(java.io.File file)
                            throws java.rmi.RemoteException
Upload a file to the server.

Parameters:
file - to upload.
Returns:
the fileId associatd with the uploaded file.
Throws:
RemoteException.
java.rmi.RemoteException


Copyright © 2009. All Rights Reserved.