2.9.0: 2008-11-26

net.sf.basedb.ws.server
Class BioAssaySetService

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

public class BioAssaySetService
extends AbstractRPCService

Web service for BioAssaySet BioAssaySet. This class provides services to get information and data from BioAssaySet.

Version:
2.5
Author:
Martin

Field Summary
private static String MATRIX_BASEFILE
           
private static String MEV
           
private static String SERIAL_BASEFILE
           
 
Fields inherited from class net.sf.basedb.ws.server.AbstractRPCService
util
 
Constructor Summary
BioAssaySetService()
           
 
Method Summary
 org.apache.axiom.om.OMElement downloadBioAssaySet(String ID, int bioAssaySetId, String format, String[] reporterFieldArray, String[] spotFieldArray, Boolean mergeReporters)
          Returns an OMElement with an attached file that contains the exported bioassay set.
 AnnotationInfo[] getAnnotations(String ID, int bioAssaySetId, Integer[] annotationTypes, boolean findInherited)
          Get the annotation values for one or more annotation types.
 String[] getExportFormats(String ID)
          Gets the available file formats a bioassay set can be exported in through webservices.
 
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
 

Field Detail

SERIAL_BASEFILE

private static final String SERIAL_BASEFILE
See Also:
Constant Field Values

MATRIX_BASEFILE

private static final String MATRIX_BASEFILE
See Also:
Constant Field Values

MEV

private static final String MEV
See Also:
Constant Field Values
Constructor Detail

BioAssaySetService

public BioAssaySetService()
Method Detail

getExportFormats

public String[] getExportFormats(String ID)
Gets the available file formats a bioassay set can be exported in through webservices.

Parameters:
ID - A string that identify the active session
Returns:
A string-array with the available formats or null if there is no active session.

downloadBioAssaySet

public org.apache.axiom.om.OMElement downloadBioAssaySet(String ID,
                                                         int bioAssaySetId,
                                                         String format,
                                                         String[] reporterFieldArray,
                                                         String[] spotFieldArray,
                                                         Boolean mergeReporters)
                                                  throws Exception
Returns an OMElement with an attached file that contains the exported bioassay set. Different file formats to export the bioassay set is available There may be some parameters that needs to be configured depending on the selected file format.

Parameters:
ID - An id to identify the active session with
bioAssaySetId - The id of the bioassay-set, which should be exported.
format - File format of which the bioassay set should be exported in. Available formats are:
reporterFieldArray - The reporter fields to include in the export
spotFieldArray - The spot fields to include in the export
mergeReporters - TRUE to merge spot data having the same reporter. see BioAssaySetExporter
Returns:
An OMElement containing the exported file or NULL if there an exception is thrown.
Throws:
Exception - If the data could not be exported to the file.

getAnnotations

public AnnotationInfo[] getAnnotations(String ID,
                                       int bioAssaySetId,
                                       Integer[] annotationTypes,
                                       boolean findInherited)
Get the annotation values for one or more annotation types.

Parameters:
ID - Id of the active session.
bioAssaySetId - Id of the bioassay set it concerns
annotationTypes - Array with the ID of the annotation types
findInherited - TRUE to look among inherited annotations, FALSE to only look at primary annotations
Returns:
An array with AnnotationInfo object, each element in the array corresponds to the annotation type with the same index in the annotationTypes array

2.9.0: 2008-11-26