OBEROn SDK

com.oberon.webservices
Interface WebServiceSpaceCode


public interface WebServiceSpaceCode

WebServiceSpaceCode: defines OBEROn java WebServices interface for FileSpace usage

Version:
5.0

Method Summary
 void clean(java.lang.String path)
          Remove all empty directories recursively starting from the given path
 void createdir(java.lang.String path)
          Add a new directory (generate the path tree)
 void delete(java.lang.String filepath)
          Delete a file
 byte[] download(java.lang.String filepath)
          Download a file
 long filesize(java.lang.String filepath)
          Return the size of a file
 java.lang.String[] list(java.lang.String path, boolean subfolders)
          Return the list of file inside a directory or recursively on its sub-directories
 void login(java.lang.String account, java.lang.String password)
          Service client login
 void rename(java.lang.String filepath, java.lang.String newname)
          Rename (or move) a file
 void upload(byte[] filedata, java.lang.String filepath)
          Upload a file
 

Method Detail

login

void login(java.lang.String account,
           java.lang.String password)
           throws java.lang.Exception
Service client login

Parameters:
account - the account ID
password - the access password
Throws:
java.lang.Exception

download

byte[] download(java.lang.String filepath)
                throws java.lang.Exception
Download a file

Parameters:
filepath - the file absolute path
Throws:
java.lang.Exception

upload

void upload(byte[] filedata,
            java.lang.String filepath)
            throws java.lang.Exception
Upload a file

Parameters:
filedata - the file content data
filepath - the file absolute path
Throws:
java.lang.Exception

rename

void rename(java.lang.String filepath,
            java.lang.String newname)
            throws java.lang.Exception
Rename (or move) a file

Parameters:
filepath - the original file absolute path
newname - the destination file absolute path
Throws:
java.lang.Exception

delete

void delete(java.lang.String filepath)
            throws java.lang.Exception
Delete a file

Parameters:
filepath - the file absolute path
Throws:
java.lang.Exception

list

java.lang.String[] list(java.lang.String path,
                        boolean subfolders)
                        throws java.lang.Exception
Return the list of file inside a directory or recursively on its sub-directories

Parameters:
path - the directory path
subfolders - if true recurse on sub-directories (return the full paths)
Throws:
java.lang.Exception

clean

void clean(java.lang.String path)
           throws java.lang.Exception
Remove all empty directories recursively starting from the given path

Parameters:
path - the directory start path
Throws:
java.lang.Exception

filesize

long filesize(java.lang.String filepath)
              throws java.lang.Exception
Return the size of a file

Parameters:
filepath - the file absolute path
Throws:
java.lang.Exception

createdir

void createdir(java.lang.String path)
               throws java.lang.Exception
Add a new directory (generate the path tree)

Parameters:
path - the directory path
Throws:
java.lang.Exception

OBEROn SDK

Copyright © 2008-2014 Mirko Solazzi. All Rights Reserved.