3.2.4: 2013-12-06

net.sf.basedb.ws.server
Class FileService

java.lang.Object
  extended by net.sf.basedb.ws.server.AbstractRPCService
      extended by net.sf.basedb.ws.server.FileService

public class FileService
extends AbstractRPCService

Web service class for File File.

Since:
3.0
Author:
Nicklas

Field Summary
 
Fields inherited from class net.sf.basedb.ws.server.AbstractRPCService
util
 
Constructor Summary
FileService()
           
 
Method Summary
 org.apache.axiom.om.OMElement download(String ID, int fileId)
          Download the file contents.
 FileInfo getById(String ID, int itemId)
          Get information about a file that you know the ID of.
 
Methods inherited from class net.sf.basedb.ws.server.AbstractRPCService
attachFile, getRemoteId, getSessionControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileService

public FileService()
Method Detail

getById

public FileInfo getById(String ID,
                        int itemId)
Get information about a file that you know the ID of.

Parameters:
ID - Id to identify the session.
itemId - The ID of the file
Returns:
The file information

download

public org.apache.axiom.om.OMElement download(String ID,
                                              int fileId)
Download the file contents.

Parameters:
ID - Used to identify an active session with.
fileId - Id of the file to download
Returns:
OMElement with the file attached, or NULL if no file was found or doesn't have any data

3.2.4: 2013-12-06