Changeset 3978


Ignore:
Timestamp:
Nov 16, 2007, 2:41:45 PM (14 years ago)
Author:
Martin Svensson
Message:

References #827 Created ReporterService? and a method to get the extended properties for reporters.

Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r3977 r3978  
    10641064    <webservices.wsdl serviceClassName="RawBioAssayService"/>
    10651065    <webservices.wsdl serviceClassName="SessionService"/>
     1066    <webservices.wsdl serviceClassName="ReporterService"/>
    10661067    <webservices.wsdl serviceClassName="AnnotationTypeService"/>
    10671068  </target>
  • trunk/src/core/net/sf/basedb/core/ExtendedProperty.java

    r3679 r3978  
    2626package net.sf.basedb.core;
    2727
     28import net.sf.basedb.info.ExtendedPropertyInfo;
     29import net.sf.basedb.info.ToTransferable;
     30
    2831import java.text.NumberFormat;
    2932import java.util.List;
     
    4043*/
    4144public class ExtendedProperty
     45  implements ToTransferable<ExtendedPropertyInfo>
    4246{
    4347 
     
    301305    return url;
    302306  }
     307
     308  public ExtendedPropertyInfo toTransferable(ExtendedPropertyInfo info)
     309  {
     310    info.setColumn(this.getColumn());
     311    info.setDescription(this.getDescription());
     312    info.setInsertable(this.isInsertable());
     313    info.setLength(this.getLength());
     314    info.setName(this.getName());
     315    info.setNullable(this.isNullable());
     316    info.setTitle(this.getTitle());
     317    info.setUpdateable(this.isUpdateable());
     318    return info;
     319  }
    303320 
    304321}
  • trunk/src/test/TestWebservices.java

    r3977 r3978  
    4040import net.sf.basedb.info.DataFileTypeInfo;
    4141import net.sf.basedb.info.ExperimentInfo;
     42import net.sf.basedb.info.ExtendedPropertyInfo;
    4243import net.sf.basedb.info.ProjectInfo;
    4344import net.sf.basedb.info.QueryOptions;
     
    5152import net.sf.basedb.ws.client.ProjectClient;
    5253import net.sf.basedb.ws.client.RawBioAssayClient;
     54import net.sf.basedb.ws.client.ReporterClient;
    5355import net.sf.basedb.ws.client.SessionClient;
    5456
     
    598600    if (client == null || experimentId == 0 || reporterListId == 0)return;
    599601    ExperimentClient experimentClient = new ExperimentClient(client);
     602    ReporterClient reporterClient = new ReporterClient(client);
    600603    try
    601604    {
    602605      ReporterListInfo[] listInfo = experimentClient.getReporterLists(experimentId, null);
    603       if (listInfo.length > 0)
    604       {
    605        
    606       }
    607       else
    608       {
    609         write ("--No reporterlists were received");
    610       }
     606      write(listInfo.length > 0 ?
     607          "--Received reporterlists(" + listInfo.length + ")" :
     608          "--No reporterlists were received");
     609     
     610      ExtendedPropertyInfo[] extPropertyInfos = reporterClient.getExtendedProperties();
     611      write(extPropertyInfos.length > 0 ?
     612          "--Received extended properties for reporters(" + extPropertyInfos.length + ")" :
     613          "--No extended properties were received");
    611614     
    612615      write("--Test of getReporterLists OK");
  • trunk/src/webservices/server/META-INF/services.xml

    r3977 r3978  
    7272    <parameter name="ServiceClass" locked="false">net.sf.basedb.ws.server.ArrayDesignService</parameter>
    7373  </service>
     74  <service name="Reporter" scope="application">
     75    <description>
     76      This service handles reporters
     77    </description>
     78    <messageReceivers>
     79      <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
     80        class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
     81      <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
     82        class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
     83    </messageReceivers>
     84    <parameter name="ServiceClass" locked="false">net.sf.basedb.ws.server.ReporterService</parameter>
     85  </service>
    7486  <service name="AnnotationType" scope="application">
    7587    <description>
Note: See TracChangeset for help on using the changeset viewer.