Changeset 3983
- Timestamp:
- Nov 20, 2007, 11:28:06 AM (15 years ago)
- Location:
- trunk/src/webservices
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/webservices/client/java/net/sf/basedb/ws/client/ArrayDesignClient.java
r3964 r3983 24 24 package net.sf.basedb.ws.client; 25 25 26 import net.sf.basedb.info.ArrayDesignInfo; 26 27 import net.sf.basedb.info.DataFileTypeInfo; 27 28 import net.sf.basedb.info.QueryOptions; … … 58 59 } 59 60 61 /** 62 Get info about an array design when you know the ID. 63 @param itemId The ID of the array design 64 @return An ArrayDesignInfo object 65 */ 66 public ArrayDesignInfo getById(int itemId) 67 throws AxisFault 68 { 69 return invokeBlocking("getById", ArrayDesignInfo.class, 70 session.getId(), itemId); 71 } 72 73 /** 74 Gets info about array designs that are available in the logged in session. 75 @param qOpt Options to put on the query 76 @return An array with info object for each array design that was found. 77 @throws AxisFault If communication with web service fails. 78 */ 79 public ArrayDesignInfo[] getArrayDesigns(QueryOptions qOpt) 80 throws AxisFault 81 { 82 ArrayDesignInfo[] result = invokeBlocking("getArrayDesigns", ArrayDesignInfo[].class, session.getId(), qOpt); 83 return result; 84 } 85 60 86 /** 61 87 Downloads an arraydesign as a file, -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/ExperimentClient.java
r3976 r3983 52 52 super(session.getUrl(), "Experiment"); 53 53 this.session = session; 54 } 55 56 /** 57 Get info about an experiment when you know the ID. 58 @param itemId The ID of the experiment 59 @return An ExperimentInfo object 60 */ 61 public ExperimentInfo getById(int itemId) 62 throws AxisFault 63 { 64 return invokeBlocking("getById", ExperimentInfo.class, 65 session.getId(), itemId); 54 66 } 55 67 -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/ProjectClient.java
r3952 r3983 51 51 52 52 /** 53 Get info about a project when you know the ID. 54 @param itemId The ID of the project 55 @return An ExperimentInfo object 56 */ 57 public ProjectInfo getById(int itemId) 58 throws AxisFault 59 { 60 return invokeBlocking("getById", ProjectInfo.class, 61 session.getId(), itemId); 62 } 63 64 65 /** 53 66 Sets a project to be active. 54 67 @param projectId Id of the project that should be put active. -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/RawBioAssayClient.java
r3973 r3983 28 28 import net.sf.basedb.info.DataFileTypeInfo; 29 29 import net.sf.basedb.info.QueryOptions; 30 import net.sf.basedb.info.RawBioAssayInfo; 30 31 31 32 import java.io.IOException; … … 60 61 this.session = session; 61 62 } 63 64 /** 65 Get info about a raw bioassay when you know the ID. 66 @param itemId The ID of the raw bioassay 67 @return An RawBioAssayInfo object 68 */ 69 public RawBioAssayInfo getById(int itemId) 70 throws AxisFault 71 { 72 return invokeBlocking("getById", RawBioAssayInfo.class, 73 session.getId(), itemId); 74 } 75 76 /** 77 Gets info about raw bioassays that are available in the logged in session. 78 @param qOpt Options to put on the query 79 @return An array with info object for each raw bioassay that was found. 80 @throws AxisFault If communication with web service fails. 81 */ 82 public RawBioAssayInfo[] getRawBioAssays(QueryOptions qOpt) 83 throws AxisFault 84 { 85 RawBioAssayInfo[] result = invokeBlocking("getRawBioAssays", RawBioAssayInfo[].class, session.getId(), qOpt); 86 return result; 87 } 62 88 63 89 /** -
trunk/src/webservices/server/net/sf/basedb/ws/server/ArrayDesignService.java
r3973 r3983 23 23 */ 24 24 package net.sf.basedb.ws.server; 25 25 26 26 27 import net.sf.basedb.core.ArrayDesign; … … 33 34 import net.sf.basedb.core.SessionControl; 34 35 import net.sf.basedb.info.AnnotationInfo; 36 import net.sf.basedb.info.ArrayDesignInfo; 35 37 import net.sf.basedb.info.DataFileTypeInfo; 36 38 import net.sf.basedb.info.QueryOptions; … … 54 56 public ArrayDesignService() 55 57 {} 58 59 /** 60 Get information about an array design that you know the ID of. 61 @param ID Id to identify the session. 62 @param itemId The ID of the array design 63 @return The array design information 64 */ 65 public ArrayDesignInfo getById(String ID, int itemId) 66 { 67 SessionControl sc = getSessionControl(ID); 68 DbControl dc = sc.newDbControl(); 69 try 70 { 71 ArrayDesign ad = ArrayDesign.getById(dc, itemId); 72 return ad.toTransferable(new ArrayDesignInfo()); 73 } 74 finally 75 { 76 if (dc != null) dc.close(); 77 } 78 } 79 80 81 /** 82 Gets an array with info about array designs 83 available for the active session. 84 @param ID Id for the session to use. 85 @param qOpt QueryOptions to put on the query 86 @return An ArrayDesignInfo array. 87 */ 88 public ArrayDesignInfo[] getArrayDesigns(String ID, QueryOptions qOpt) 89 { 90 SessionControl sc = getSessionControl(ID); 91 DbControl dc = sc.newDbControl(); 92 try 93 { 94 ItemQuery<ArrayDesign> query= ArrayDesign.getQuery(); 95 query = util.getConfiguredItemQuery(query, qOpt); 96 return util.listToInfo(query.list(dc), ArrayDesignInfo.class); 97 } 98 finally 99 { 100 if (dc != null) dc.close(); 101 } 102 } 56 103 57 104 /** -
trunk/src/webservices/server/net/sf/basedb/ws/server/ExperimentService.java
r3976 r3983 41 41 import net.sf.basedb.info.ReporterListInfo; 42 42 43 import java.util.LinkedList;44 import java.util.List;45 46 43 /** 47 44 Web Service class for … … 60 57 61 58 /** 59 Get information about an experiment that you know the ID of. 60 @param ID Id to identify the session. 61 @param itemId The ID of the experiment 62 @return The experiment information 63 */ 64 public ExperimentInfo getById(String ID, int itemId) 65 { 66 SessionControl sc = getSessionControl(ID); 67 DbControl dc = sc.newDbControl(); 68 try 69 { 70 Experiment e = Experiment.getById(dc, itemId); 71 return e.toTransferable(new ExperimentInfo()); 72 } 73 finally 74 { 75 if (dc != null) dc.close(); 76 } 77 } 78 79 80 /** 62 81 Gets an array with info about experiments 63 82 available for the active session. … … 70 89 SessionControl sc = getSessionControl(ID); 71 90 DbControl dc = sc.newDbControl(); 72 List<ExperimentInfo> experiments = new LinkedList<ExperimentInfo>();73 91 try 74 92 { -
trunk/src/webservices/server/net/sf/basedb/ws/server/ProjectService.java
r3972 r3983 48 48 49 49 /** 50 Get information about a project that you know the ID of. 51 @param ID Id to identify the session. 52 @param itemId The ID of the project 53 @return The project information 54 */ 55 public ProjectInfo getById(String ID, int itemId) 56 { 57 SessionControl sc = getSessionControl(ID); 58 DbControl dc = sc.newDbControl(); 59 try 60 { 61 Project p = Project.getById(dc, itemId); 62 return p.toTransferable(new ProjectInfo()); 63 } 64 finally 65 { 66 if (dc != null) dc.close(); 67 } 68 } 69 70 /** 50 71 Sets a project active 51 72 @param ID Id to identify the active session -
trunk/src/webservices/server/net/sf/basedb/ws/server/RawBioAssayService.java
r3974 r3983 37 37 import net.sf.basedb.info.DataFileTypeInfo; 38 38 import net.sf.basedb.info.QueryOptions; 39 import net.sf.basedb.info.RawBioAssayInfo; 39 40 40 41 … … 55 56 public RawBioAssayService() 56 57 {} 58 59 /** 60 Get information about a raw bioassay that you know the ID of. 61 @param ID Id to identify the session. 62 @param itemId The ID of the raw bioassay 63 @return The raw bioassay information 64 */ 65 public RawBioAssayInfo getById(String ID, int itemId) 66 { 67 SessionControl sc = getSessionControl(ID); 68 DbControl dc = sc.newDbControl(); 69 try 70 { 71 RawBioAssay rba = RawBioAssay.getById(dc, itemId); 72 return rba.toTransferable(new RawBioAssayInfo()); 73 } 74 finally 75 { 76 if (dc != null) dc.close(); 77 } 78 } 79 80 /** 81 Gets an array with info about raw bioassays 82 available for the active session. 83 @param ID Id for the session to use. 84 @param qOpt QueryOptions to put on the query 85 @return An RawBioAssayInfo array. 86 */ 87 public RawBioAssayInfo[] getRawBioAssays(String ID, QueryOptions qOpt) 88 { 89 SessionControl sc = getSessionControl(ID); 90 DbControl dc = sc.newDbControl(); 91 try 92 { 93 ItemQuery<RawBioAssay> query= RawBioAssay.getQuery(); 94 query = util.getConfiguredItemQuery(query, qOpt); 95 return util.listToInfo(query.list(dc), RawBioAssayInfo.class); 96 } 97 finally 98 { 99 if (dc != null) dc.close(); 100 } 101 } 57 102 58 103 /**
Note: See TracChangeset
for help on using the changeset viewer.