3.0.2: 2012-01-25

net.sf.basedb.ws.client
Class BioAssaySetClient

java.lang.Object
  extended by net.sf.basedb.ws.client.AbstractRPCClient
      extended by net.sf.basedb.ws.client.BioAssaySetClient

public class BioAssaySetClient
extends AbstractRPCClient

Web service client for BioAssaySetService in BASE. BioAssaySetService

Version:
2.5
Author:
Martin

Field Summary
private  SessionClient session
           
 
Constructor Summary
BioAssaySetClient(SessionClient session)
          Creates new BioAssayClient for a session.
 
Method Summary
 FileSetMemberInfo[] getDataFiles(int bioAssaySetId, QueryOptions qOpt)
          Returns information about data files that are used storing data for a bioassay set
 DataFileTypeInfo[] getDataFileTypes(int bioAssaySetId, QueryOptions qOpt)
          Returns information about data file types that are used storing spot data for a bioassay set.
 Boolean hasDownloadableData(int bioAssaySetId)
          Returns if a bioassay set has spot data in the form of files that can be downloaded or not.
 InputStream xdownloadDataFile(int bioAssaySetId, String dataFileType)
          Gets spot data as a file for a bioassay set if it is stored in a file in BASE.
 
Methods inherited from class net.sf.basedb.ws.client.AbstractRPCClient
getOperation, getService, getServiceFactory, invokeBlocking, invokeBlocking, invokeBlocking, invokeFileBlocking, setServiceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final SessionClient session
Constructor Detail

BioAssaySetClient

public BioAssaySetClient(SessionClient session)
Creates new BioAssayClient for a session.

Parameters:
session - Active session.
Method Detail

hasDownloadableData

public Boolean hasDownloadableData(int bioAssaySetId)
                            throws org.apache.axis2.AxisFault
Returns if a bioassay set has spot data in the form of files that can be downloaded or not.

Parameters:
bioAssaySetId - Id of the bioassay set it concerns.
Returns:
TRUE if there are data to be downloaded, FALSE otherwise.
Throws:
org.apache.axis2.AxisFault - If the communication with the webservice fails.
Since:
2.12

getDataFileTypes

public DataFileTypeInfo[] getDataFileTypes(int bioAssaySetId,
                                           QueryOptions qOpt)
                                    throws org.apache.axis2.AxisFault
Returns information about data file types that are used storing spot data for a bioassay set.

Parameters:
bioAssaySetId - Id of the bioassay set to get the information about.
qOpt - Restrictions and includes to put on the query when getting the information.
Returns:
An array of DataFileTypeInfo, one for each data file type used in the raw bioassay.
Throws:
org.apache.axis2.AxisFault - If communication with webservice fails.
Since:
2.12

getDataFiles

public FileSetMemberInfo[] getDataFiles(int bioAssaySetId,
                                        QueryOptions qOpt)
                                 throws org.apache.axis2.AxisFault
Returns information about data files that are used storing data for a bioassay set

Parameters:
bioAssaySetId - Id of the bioassay set to get the information about.
qOpt - Restrictions and includes to put on the query when getting the information.
Returns:
An array of FileSetMemberInfo, one for each data file used in the bioassay set.
Throws:
org.apache.axis2.AxisFault - If communication with webservice fails.
Since:
3.0

xdownloadDataFile

public InputStream xdownloadDataFile(int bioAssaySetId,
                                     String dataFileType)
                              throws org.apache.axis2.AxisFault,
                                     IOException
Gets spot data as a file for a bioassay set if it is stored in a file in BASE.

Parameters:
bioAssaySetId - Id of bioassay set to get the file from
dataFileType - The external ID of the data file type to download
Returns:
An InputStream to read the file data from, or null if no file of the specified type exists
Throws:
org.apache.axis2.AxisFault - If communication with webservices fails.
IOException - If writing to the target file fails.
Since:
2.12

3.0.2: 2012-01-25