Changeset 6435
- Timestamp:
- Mar 17, 2014, 9:01:38 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/DynamicSpotQuery.java
r6127 r6435 59 59 @base.modified $Date$ 60 60 */ 61 @SuppressWarnings("deprecation") 61 62 public class DynamicSpotQuery 62 63 extends DynamicQuery -
trunk/src/core/net/sf/basedb/core/FileSet.java
r6127 r6435 34 34 import net.sf.basedb.core.query.Hql; 35 35 import net.sf.basedb.core.query.Restrictions; 36 37 36 import net.sf.basedb.core.data.FileSetData; 38 37 import net.sf.basedb.core.data.FileSetMemberData; … … 55 54 @base.modified $Date$ 56 55 */ 56 @SuppressWarnings("deprecation") 57 57 public class FileSet 58 58 extends BasicItem<FileSetData> -
trunk/src/core/net/sf/basedb/core/ItemSubtype.java
r6127 r6435 50 50 @base.modified $Date$ 51 51 */ 52 @SuppressWarnings("deprecation") 52 53 public class ItemSubtype 53 54 extends BasicItem<ItemSubtypeData> -
trunk/src/core/net/sf/basedb/core/Job.java
r6432 r6435 75 75 @base.modified $Date$ 76 76 */ 77 @SuppressWarnings("deprecation") 77 78 public class Job 78 79 extends OwnedItem<JobData> -
trunk/src/core/net/sf/basedb/core/PluginDefinition.java
r6127 r6435 64 64 @base.modified $Date$ 65 65 */ 66 @SuppressWarnings("deprecation") 66 67 public class PluginDefinition 67 68 extends CommonItem<PluginDefinitionData> -
trunk/src/core/net/sf/basedb/core/Protocol.java
r6127 r6435 37 37 @version 2.0 38 38 */ 39 @SuppressWarnings("deprecation") 39 40 public class Protocol 40 41 extends AnnotatedItem<ProtocolData> -
trunk/src/core/net/sf/basedb/core/RawDataType.java
r6127 r6435 45 45 @base.modified $Date$ 46 46 */ 47 @SuppressWarnings("deprecation") 47 48 public class RawDataType 48 49 implements Comparable<RawDataType> -
trunk/src/core/net/sf/basedb/core/SessionControl.java
r6427 r6435 75 75 @base.modified $Date$ 76 76 */ 77 @SuppressWarnings("deprecation") 77 78 public class SessionControl 78 79 { -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/AnnotationTypeClient.java
r6434 r6435 22 22 package net.sf.basedb.ws.client; 23 23 24 import net.sf.basedb.info.AnnotationTypeInfo;25 import net.sf.basedb.info.QueryOptions;26 24 27 25 import org.apache.axis2.AxisFault; … … 56 54 @throws AxisFault If communication with web service fails. 57 55 */ 58 public AnnotationTypeInfo getById(int itemId)56 public net.sf.basedb.info.AnnotationTypeInfo getById(int itemId) 59 57 throws AxisFault 60 58 { 61 return invokeBlocking("getById", AnnotationTypeInfo.class,59 return invokeBlocking("getById", net.sf.basedb.info.AnnotationTypeInfo.class, 62 60 session.getId(), itemId); 63 61 } … … 70 68 @throws AxisFault If communication with web service fails. 71 69 */ 72 public AnnotationTypeInfo[] getAnnotationTypes(String itemType,QueryOptions qOpt)70 public net.sf.basedb.info.AnnotationTypeInfo[] getAnnotationTypes(String itemType, net.sf.basedb.info.QueryOptions qOpt) 73 71 throws AxisFault 74 72 { 75 AnnotationTypeInfo[] result = invokeBlocking("getAnnotationTypes",AnnotationTypeInfo[].class,73 net.sf.basedb.info.AnnotationTypeInfo[] result = invokeBlocking("getAnnotationTypes", net.sf.basedb.info.AnnotationTypeInfo[].class, 76 74 session.getId(), itemType, qOpt); 77 75 return result; -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/ArrayDesignClient.java
r6434 r6435 22 22 package net.sf.basedb.ws.client; 23 23 24 import net.sf.basedb.info.ArrayDesignInfo;25 import net.sf.basedb.info.DataFileTypeInfo;26 import net.sf.basedb.info.FileSetMemberInfo;27 import net.sf.basedb.info.QueryOptions;28 24 29 25 import java.io.IOException; … … 66 62 @throws AxisFault If communication with web service fails. 67 63 */ 68 public ArrayDesignInfo getById(int itemId)64 public net.sf.basedb.info.ArrayDesignInfo getById(int itemId) 69 65 throws AxisFault 70 66 { 71 return invokeBlocking("getById", ArrayDesignInfo.class,67 return invokeBlocking("getById", net.sf.basedb.info.ArrayDesignInfo.class, 72 68 session.getId(), itemId); 73 69 } … … 79 75 @throws AxisFault If communication with web service fails. 80 76 */ 81 public ArrayDesignInfo[] getArrayDesigns(QueryOptions qOpt)77 public net.sf.basedb.info.ArrayDesignInfo[] getArrayDesigns(net.sf.basedb.info.QueryOptions qOpt) 82 78 throws AxisFault 83 79 { 84 ArrayDesignInfo[] result = invokeBlocking("getArrayDesigns",ArrayDesignInfo[].class, session.getId(), qOpt);80 net.sf.basedb.info.ArrayDesignInfo[] result = invokeBlocking("getArrayDesigns", net.sf.basedb.info.ArrayDesignInfo[].class, session.getId(), qOpt); 85 81 return result; 86 82 } … … 118 114 @throws AxisFault If communication with the webservice fails. 119 115 */ 120 public DataFileTypeInfo[] getDataFileTypes(int arrayDesignId,QueryOptions qOpt)116 public net.sf.basedb.info.DataFileTypeInfo[] getDataFileTypes(int arrayDesignId, net.sf.basedb.info.QueryOptions qOpt) 121 117 throws AxisFault 122 118 { … … 124 120 ( 125 121 "getDataFileTypes", 126 DataFileTypeInfo[].class,122 net.sf.basedb.info.DataFileTypeInfo[].class, 127 123 session.getId(), 128 124 arrayDesignId, … … 140 136 @since 3.0 141 137 */ 142 public FileSetMemberInfo[] getDataFiles(int arrayDesignId,QueryOptions qOpt)138 public net.sf.basedb.info.FileSetMemberInfo[] getDataFiles(int arrayDesignId, net.sf.basedb.info.QueryOptions qOpt) 143 139 throws AxisFault 144 140 { … … 146 142 ( 147 143 "getDataFiles", 148 FileSetMemberInfo[].class,144 net.sf.basedb.info.FileSetMemberInfo[].class, 149 145 session.getId(), 150 146 arrayDesignId, -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/BioAssaySetClient.java
r6434 r6435 24 24 import java.io.IOException; 25 25 import java.io.InputStream; 26 27 import net.sf.basedb.info.DataFileTypeInfo;28 import net.sf.basedb.info.FileSetMemberInfo;29 import net.sf.basedb.info.QueryOptions;30 26 31 27 import org.apache.axis2.AxisFault; … … 86 82 @since 2.12 87 83 */ 88 public DataFileTypeInfo[] getDataFileTypes(int bioAssaySetId,QueryOptions qOpt)84 public net.sf.basedb.info.DataFileTypeInfo[] getDataFileTypes(int bioAssaySetId, net.sf.basedb.info.QueryOptions qOpt) 89 85 throws AxisFault 90 86 { … … 92 88 ( 93 89 "getDataFileTypes", 94 DataFileTypeInfo[].class,90 net.sf.basedb.info.DataFileTypeInfo[].class, 95 91 session.getId(), 96 92 bioAssaySetId, … … 108 104 @since 3.0 109 105 */ 110 public FileSetMemberInfo[] getDataFiles(int bioAssaySetId,QueryOptions qOpt)106 public net.sf.basedb.info.FileSetMemberInfo[] getDataFiles(int bioAssaySetId, net.sf.basedb.info.QueryOptions qOpt) 111 107 throws AxisFault 112 108 { … … 114 110 ( 115 111 "getDataFiles", 116 FileSetMemberInfo[].class,112 net.sf.basedb.info.FileSetMemberInfo[].class, 117 113 session.getId(), 118 114 bioAssaySetId, -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/ExperimentClient.java
r6434 r6435 22 22 package net.sf.basedb.ws.client; 23 23 24 import net.sf.basedb.info.AnnotationTypeInfo;25 import net.sf.basedb.info.BioAssaySetInfo;26 import net.sf.basedb.info.ExperimentInfo;27 import net.sf.basedb.info.QueryOptions;28 import net.sf.basedb.info.RawBioAssayInfo;29 import net.sf.basedb.info.ReporterListInfo;30 24 31 25 import org.apache.axis2.AxisFault; … … 60 54 @throws AxisFault If communication with web service fails. 61 55 */ 62 public ExperimentInfo getById(int itemId)56 public net.sf.basedb.info.ExperimentInfo getById(int itemId) 63 57 throws AxisFault 64 58 { 65 return invokeBlocking("getById", ExperimentInfo.class,59 return invokeBlocking("getById", net.sf.basedb.info.ExperimentInfo.class, 66 60 session.getId(), itemId); 67 61 } … … 73 67 @throws AxisFault If communication with web service fails. 74 68 */ 75 public ExperimentInfo[] getExperiments(QueryOptions qOpt)69 public net.sf.basedb.info.ExperimentInfo[] getExperiments(net.sf.basedb.info.QueryOptions qOpt) 76 70 throws AxisFault 77 71 { 78 ExperimentInfo[] result = invokeBlocking("getExperiments",ExperimentInfo[].class, session.getId(), qOpt);72 net.sf.basedb.info.ExperimentInfo[] result = invokeBlocking("getExperiments", net.sf.basedb.info.ExperimentInfo[].class, session.getId(), qOpt); 79 73 return result; 80 74 } … … 87 81 @throws AxisFault If communication with web services fails. 88 82 */ 89 public RawBioAssayInfo[] getRawBioAssays(int experimentId,QueryOptions qOpt)83 public net.sf.basedb.info.RawBioAssayInfo[] getRawBioAssays(int experimentId, net.sf.basedb.info.QueryOptions qOpt) 90 84 throws AxisFault 91 85 { 92 RawBioAssayInfo[] result = invokeBlocking("getRawBioAssays",RawBioAssayInfo[].class, session.getId(), experimentId, qOpt);86 net.sf.basedb.info.RawBioAssayInfo[] result = invokeBlocking("getRawBioAssays", net.sf.basedb.info.RawBioAssayInfo[].class, session.getId(), experimentId, qOpt); 93 87 return result; 94 88 } … … 101 95 @throws AxisFault If communication with web services fails. 102 96 */ 103 public BioAssaySetInfo[] getBioAssaySets(int experimentId,QueryOptions qOpt)97 public net.sf.basedb.info.BioAssaySetInfo[] getBioAssaySets(int experimentId, net.sf.basedb.info.QueryOptions qOpt) 104 98 throws AxisFault 105 99 { 106 BioAssaySetInfo[] result = invokeBlocking("getBioAssaySets",BioAssaySetInfo[].class, session.getId(), experimentId, qOpt);100 net.sf.basedb.info.BioAssaySetInfo[] result = invokeBlocking("getBioAssaySets", net.sf.basedb.info.BioAssaySetInfo[].class, session.getId(), experimentId, qOpt); 107 101 return result; 108 102 } … … 116 110 @throws AxisFault If communication with web services fails. 117 111 */ 118 public AnnotationTypeInfo[] getExperimentalFactors(int experimentId,QueryOptions qOpt)112 public net.sf.basedb.info.AnnotationTypeInfo[] getExperimentalFactors(int experimentId, net.sf.basedb.info.QueryOptions qOpt) 119 113 throws AxisFault 120 114 { 121 AnnotationTypeInfo[] result = invokeBlocking("getExperimentalFactors",AnnotationTypeInfo[].class, session.getId(), experimentId, qOpt);115 net.sf.basedb.info.AnnotationTypeInfo[] result = invokeBlocking("getExperimentalFactors", net.sf.basedb.info.AnnotationTypeInfo[].class, session.getId(), experimentId, qOpt); 122 116 return result; 123 117 } … … 131 125 @throws AxisFault If communication with web services fails. 132 126 */ 133 public ReporterListInfo[] getReporterLists(int experimentId,QueryOptions qOpt)127 public net.sf.basedb.info.ReporterListInfo[] getReporterLists(int experimentId, net.sf.basedb.info.QueryOptions qOpt) 134 128 throws AxisFault 135 129 { 136 ReporterListInfo[] result = invokeBlocking("getReporterLists",ReporterListInfo[].class, session.getId(), experimentId, qOpt);130 net.sf.basedb.info.ReporterListInfo[] result = invokeBlocking("getReporterLists", net.sf.basedb.info.ReporterListInfo[].class, session.getId(), experimentId, qOpt); 137 131 return result; 138 132 } -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/FileClient.java
r6434 r6435 25 25 import java.io.InputStream; 26 26 27 import net.sf.basedb.info.FileInfo;28 27 29 28 import org.apache.axis2.AxisFault; … … 61 60 @throws AxisFault If communication with web service fails. 62 61 */ 63 public FileInfo getById(int itemId)62 public net.sf.basedb.info.FileInfo getById(int itemId) 64 63 throws AxisFault 65 64 { 66 return invokeBlocking("getById", FileInfo.class,65 return invokeBlocking("getById", net.sf.basedb.info.FileInfo.class, 67 66 session.getId(), itemId); 68 67 } -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/ProjectClient.java
r6434 r6435 22 22 package net.sf.basedb.ws.client; 23 23 24 import net.sf.basedb.info.ProjectInfo;25 import net.sf.basedb.info.QueryOptions;26 24 27 25 import org.apache.axis2.AxisFault; … … 56 54 @throws AxisFault If communication with web service fails. 57 55 */ 58 public ProjectInfo getById(int itemId)56 public net.sf.basedb.info.ProjectInfo getById(int itemId) 59 57 throws AxisFault 60 58 { 61 return invokeBlocking("getById", ProjectInfo.class,59 return invokeBlocking("getById", net.sf.basedb.info.ProjectInfo.class, 62 60 session.getId(), itemId); 63 61 } … … 81 79 @throws AxisFault If communication with web service fails. 82 80 */ 83 public ProjectInfo[] getProjects(QueryOptions qOpt)81 public net.sf.basedb.info.ProjectInfo[] getProjects(net.sf.basedb.info.QueryOptions qOpt) 84 82 throws AxisFault 85 83 { 86 ProjectInfo[] result = invokeBlocking("getProjects",ProjectInfo[].class, session.getId(), qOpt);84 net.sf.basedb.info.ProjectInfo[] result = invokeBlocking("getProjects", net.sf.basedb.info.ProjectInfo[].class, session.getId(), qOpt); 87 85 return result; 88 86 } -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/RawBioAssayClient.java
r6434 r6435 22 22 package net.sf.basedb.ws.client; 23 23 24 import net.sf.basedb.info.AnnotationInfo;25 import net.sf.basedb.info.ArrayDesignInfo;26 import net.sf.basedb.info.DataFileTypeInfo;27 import net.sf.basedb.info.FileSetMemberInfo;28 import net.sf.basedb.info.QueryOptions;29 import net.sf.basedb.info.RawBioAssayInfo;30 24 31 25 import java.io.IOException; … … 68 62 @throws AxisFault If communication with web service fails. 69 63 */ 70 public RawBioAssayInfo getById(int itemId)71 throws AxisFault 72 { 73 return invokeBlocking("getById", RawBioAssayInfo.class,64 public net.sf.basedb.info.RawBioAssayInfo getById(int itemId) 65 throws AxisFault 66 { 67 return invokeBlocking("getById", net.sf.basedb.info.RawBioAssayInfo.class, 74 68 session.getId(), itemId); 75 69 } … … 81 75 @throws AxisFault If communication with web service fails. 82 76 */ 83 public RawBioAssayInfo[] getRawBioAssays(QueryOptions qOpt)84 throws AxisFault 85 { 86 RawBioAssayInfo[] result = invokeBlocking("getRawBioAssays",RawBioAssayInfo[].class, session.getId(), qOpt);77 public net.sf.basedb.info.RawBioAssayInfo[] getRawBioAssays(net.sf.basedb.info.QueryOptions qOpt) 78 throws AxisFault 79 { 80 net.sf.basedb.info.RawBioAssayInfo[] result = invokeBlocking("getRawBioAssays", net.sf.basedb.info.RawBioAssayInfo[].class, session.getId(), qOpt); 87 81 return result; 88 82 } … … 94 88 @throws AxisFault If communication with the webservice fails. 95 89 */ 96 public ArrayDesignInfo getArrayDesign(int rawBioAssayId)90 public net.sf.basedb.info.ArrayDesignInfo getArrayDesign(int rawBioAssayId) 97 91 throws AxisFault 98 92 { … … 100 94 ( 101 95 "getArrayDesign", 102 ArrayDesignInfo.class,96 net.sf.basedb.info.ArrayDesignInfo.class, 103 97 session.getId(), 104 98 rawBioAssayId … … 158 152 @throws AxisFault If communication with webservice fails. 159 153 */ 160 public DataFileTypeInfo[] getDataFileTypes(int rawBioAssayId,QueryOptions qOpt)154 public net.sf.basedb.info.DataFileTypeInfo[] getDataFileTypes(int rawBioAssayId, net.sf.basedb.info.QueryOptions qOpt) 161 155 throws AxisFault 162 156 { … … 164 158 ( 165 159 "getDataFileTypes", 166 DataFileTypeInfo[].class,160 net.sf.basedb.info.DataFileTypeInfo[].class, 167 161 session.getId(), 168 162 rawBioAssayId, … … 180 174 @since 3.0 181 175 */ 182 public FileSetMemberInfo[] getDataFiles(int rawBioAssayId,QueryOptions qOpt)176 public net.sf.basedb.info.FileSetMemberInfo[] getDataFiles(int rawBioAssayId, net.sf.basedb.info.QueryOptions qOpt) 183 177 throws AxisFault 184 178 { … … 186 180 ( 187 181 "getDataFiles", 188 FileSetMemberInfo[].class,182 net.sf.basedb.info.FileSetMemberInfo[].class, 189 183 session.getId(), 190 184 rawBioAssayId, … … 204 198 @throws AxisFault 205 199 */ 206 public AnnotationInfo[] getAnnotationValues(int rawBioAssayId, Integer[] annotationTypes, boolean findInherited)207 throws AxisFault 208 { 209 return invokeBlocking("getAnnotations", AnnotationInfo[].class,200 public net.sf.basedb.info.AnnotationInfo[] getAnnotationValues(int rawBioAssayId, Integer[] annotationTypes, boolean findInherited) 201 throws AxisFault 202 { 203 return invokeBlocking("getAnnotations", net.sf.basedb.info.AnnotationInfo[].class, 210 204 session.getId(), rawBioAssayId, annotationTypes, findInherited); 211 205 } -
trunk/src/webservices/client/java/net/sf/basedb/ws/client/ReporterClient.java
r6434 r6435 21 21 */ 22 22 package net.sf.basedb.ws.client; 23 24 import net.sf.basedb.info.ExtendedPropertyInfo;25 import net.sf.basedb.info.QueryOptions;26 23 27 24 import java.io.IOException; … … 60 57 @throws AxisFault 61 58 */ 62 public ExtendedPropertyInfo[] getExtendedProperties()59 public net.sf.basedb.info.ExtendedPropertyInfo[] getExtendedProperties() 63 60 throws AxisFault 64 61 { 65 ExtendedPropertyInfo[] result = invokeBlocking("getExtendedProperties",ExtendedPropertyInfo[].class, session.getId());62 net.sf.basedb.info.ExtendedPropertyInfo[] result = invokeBlocking("getExtendedProperties", net.sf.basedb.info.ExtendedPropertyInfo[].class, session.getId()); 66 63 return result; 67 64 } … … 76 73 @throws IOException If something goes wrong with the input stream 77 74 */ 78 public InputStream downloadReportersInList(int reporterListId, ExtendedPropertyInfo[] extPropInfo,QueryOptions qOpt)75 public InputStream downloadReportersInList(int reporterListId, net.sf.basedb.info.ExtendedPropertyInfo[] extPropInfo, net.sf.basedb.info.QueryOptions qOpt) 79 76 throws IOException 80 77 { … … 101 98 @throws IOException If something goes wrong when getting the exported properties. 102 99 */ 103 public InputStream downloadReporters( ExtendedPropertyInfo[] extPropInfo,QueryOptions qOpt)100 public InputStream downloadReporters(net.sf.basedb.info.ExtendedPropertyInfo[] extPropInfo, net.sf.basedb.info.QueryOptions qOpt) 104 101 throws IOException 105 102 { -
trunk/src/webservices/server/net/sf/basedb/ws/server/AnnotationTypeService.java
r6434 r6435 27 27 import net.sf.basedb.core.ItemQuery; 28 28 import net.sf.basedb.core.SessionControl; 29 import net.sf.basedb.info.AnnotationTypeInfo;30 import net.sf.basedb.info.QueryOptions;31 29 32 30 … … 54 52 @return The annotation type information 55 53 */ 56 public AnnotationTypeInfo getById(String ID, int itemId)54 public net.sf.basedb.info.AnnotationTypeInfo getById(String ID, int itemId) 57 55 { 58 56 SessionControl sc = getSessionControl(ID); … … 61 59 { 62 60 AnnotationType at = AnnotationType.getById(dc, itemId); 63 return at.toTransferable(new AnnotationTypeInfo());61 return at.toTransferable(new net.sf.basedb.info.AnnotationTypeInfo()); 64 62 } 65 63 finally … … 80 78 @return Information objects in an array for each found annotation type. 81 79 */ 82 public AnnotationTypeInfo[] getAnnotationTypes(String ID, String itemType,QueryOptions qOpt)80 public net.sf.basedb.info.AnnotationTypeInfo[] getAnnotationTypes(String ID, String itemType, net.sf.basedb.info.QueryOptions qOpt) 83 81 { 84 82 SessionControl sc = getSessionControl(ID); … … 89 87 ItemQuery<AnnotationType> query = AnnotationType.getQuery(item); 90 88 query = util.getConfiguredItemQuery(query, qOpt); 91 return util.listToInfo(query.list(dc), AnnotationTypeInfo.class);89 return util.listToInfo(query.list(dc), net.sf.basedb.info.AnnotationTypeInfo.class); 92 90 } 93 91 finally -
trunk/src/webservices/server/net/sf/basedb/ws/server/ArrayDesignService.java
r6434 r6435 30 30 import net.sf.basedb.core.ItemQuery; 31 31 import net.sf.basedb.core.SessionControl; 32 import net.sf.basedb.info.AnnotationInfo;33 import net.sf.basedb.info.ArrayDesignInfo;34 import net.sf.basedb.info.DataFileTypeInfo;35 import net.sf.basedb.info.FileSetMemberInfo;36 import net.sf.basedb.info.QueryOptions;37 32 38 33 import org.apache.axiom.om.OMElement; … … 63 58 @return The array design information 64 59 */ 65 public ArrayDesignInfo getById(String ID, int itemId)60 public net.sf.basedb.info.ArrayDesignInfo getById(String ID, int itemId) 66 61 { 67 62 SessionControl sc = getSessionControl(ID); … … 70 65 { 71 66 ArrayDesign ad = ArrayDesign.getById(dc, itemId); 72 return ad.toTransferable(new ArrayDesignInfo());67 return ad.toTransferable(new net.sf.basedb.info.ArrayDesignInfo()); 73 68 } 74 69 finally … … 86 81 @return An ArrayDesignInfo array. 87 82 */ 88 public ArrayDesignInfo[] getArrayDesigns(String ID,QueryOptions qOpt)83 public net.sf.basedb.info.ArrayDesignInfo[] getArrayDesigns(String ID, net.sf.basedb.info.QueryOptions qOpt) 89 84 { 90 85 SessionControl sc = getSessionControl(ID); … … 94 89 ItemQuery<ArrayDesign> query= ArrayDesign.getQuery(); 95 90 query = util.getConfiguredItemQuery(query, qOpt); 96 return util.listToInfo(query.list(dc), ArrayDesignInfo.class);91 return util.listToInfo(query.list(dc), net.sf.basedb.info.ArrayDesignInfo.class); 97 92 } 98 93 finally … … 173 168 @return An array with DataFileTypeInfo:s. 174 169 */ 175 public DataFileTypeInfo[] getDataFileTypes(String ID, int arrayDesignId,QueryOptions qOpt)170 public net.sf.basedb.info.DataFileTypeInfo[] getDataFileTypes(String ID, int arrayDesignId, net.sf.basedb.info.QueryOptions qOpt) 176 171 { 177 172 SessionControl sc = getSessionControl(ID); … … 186 181 ItemQuery<DataFileType> query = fileSet.getMemberTypes(); 187 182 query = util.getConfiguredItemQuery(query, qOpt); 188 return util.listToInfo(query.list(dc), DataFileTypeInfo.class);183 return util.listToInfo(query.list(dc), net.sf.basedb.info.DataFileTypeInfo.class); 189 184 } 190 185 } … … 193 188 if (dc != null) dc.close(); 194 189 } 195 return new DataFileTypeInfo[0];190 return new net.sf.basedb.info.DataFileTypeInfo[0]; 196 191 } 197 192 … … 205 200 @since 3.0 206 201 */ 207 public FileSetMemberInfo[] getDataFiles(String ID, int arrayDesignId,QueryOptions qOpt)202 public net.sf.basedb.info.FileSetMemberInfo[] getDataFiles(String ID, int arrayDesignId, net.sf.basedb.info.QueryOptions qOpt) 208 203 { 209 204 SessionControl sc = getSessionControl(ID); … … 231 226 corresponds to the annotation type with the same index in the annotationTypes array 232 227 */ 233 public AnnotationInfo[] getAnnotations(String ID, int arrayDesignId, Integer[] annotationTypes, boolean findInherited)228 public net.sf.basedb.info.AnnotationInfo[] getAnnotations(String ID, int arrayDesignId, Integer[] annotationTypes, boolean findInherited) 234 229 { 235 230 SessionControl sc = getSessionControl(ID); -
trunk/src/webservices/server/net/sf/basedb/ws/server/BioAssaySetService.java
r6434 r6435 29 29 import net.sf.basedb.core.ItemQuery; 30 30 import net.sf.basedb.core.SessionControl; 31 import net.sf.basedb.info.AnnotationInfo;32 import net.sf.basedb.info.DataFileTypeInfo;33 import net.sf.basedb.info.FileSetMemberInfo;34 import net.sf.basedb.info.QueryOptions;35 31 36 32 import org.apache.axiom.om.OMElement; … … 127 123 @since 2.12 128 124 */ 129 public DataFileTypeInfo[] getDataFileTypes(String ID, int bioAssaySetId,QueryOptions qOpt)125 public net.sf.basedb.info.DataFileTypeInfo[] getDataFileTypes(String ID, int bioAssaySetId, net.sf.basedb.info.QueryOptions qOpt) 130 126 { 131 127 SessionControl sc = getSessionControl(ID); … … 138 134 ItemQuery<DataFileType> query = bas.getFileSet().getMemberTypes(); 139 135 query = util.getConfiguredItemQuery(query, qOpt); 140 return util.listToInfo(query.list(dc), DataFileTypeInfo.class);136 return util.listToInfo(query.list(dc), net.sf.basedb.info.DataFileTypeInfo.class); 141 137 } 142 138 } … … 145 141 if (dc != null) dc.close(); 146 142 } 147 return new DataFileTypeInfo[0];143 return new net.sf.basedb.info.DataFileTypeInfo[0]; 148 144 } 149 145 … … 157 153 @since 3.0 158 154 */ 159 public FileSetMemberInfo[] getDataFiles(String ID, int bioAssaySetId,QueryOptions qOpt)155 public net.sf.basedb.info.FileSetMemberInfo[] getDataFiles(String ID, int bioAssaySetId, net.sf.basedb.info.QueryOptions qOpt) 160 156 { 161 157 SessionControl sc = getSessionControl(ID); … … 183 179 corresponds to the annotation type with the same index in the annotationTypes array 184 180 */ 185 public AnnotationInfo[] getAnnotations(String ID, int bioAssaySetId, Integer[] annotationTypes, boolean findInherited)181 public net.sf.basedb.info.AnnotationInfo[] getAnnotations(String ID, int bioAssaySetId, Integer[] annotationTypes, boolean findInherited) 186 182 { 187 183 SessionControl sc = getSessionControl(ID); -
trunk/src/webservices/server/net/sf/basedb/ws/server/ExperimentService.java
r6434 r6435 32 32 import net.sf.basedb.core.query.Hql; 33 33 import net.sf.basedb.core.query.Restrictions; 34 import net.sf.basedb.info.AnnotationTypeInfo;35 import net.sf.basedb.info.BioAssaySetInfo;36 import net.sf.basedb.info.ExperimentInfo;37 import net.sf.basedb.info.QueryOptions;38 import net.sf.basedb.info.RawBioAssayInfo;39 import net.sf.basedb.info.ReporterListInfo;40 34 41 35 /** … … 62 56 @return The experiment information 63 57 */ 64 public ExperimentInfo getById(String ID, int itemId)58 public net.sf.basedb.info.ExperimentInfo getById(String ID, int itemId) 65 59 { 66 60 SessionControl sc = getSessionControl(ID); … … 69 63 { 70 64 Experiment e = Experiment.getById(dc, itemId); 71 return e.toTransferable(new ExperimentInfo());65 return e.toTransferable(new net.sf.basedb.info.ExperimentInfo()); 72 66 } 73 67 finally … … 85 79 @return An ExperimentInfo array. 86 80 */ 87 public ExperimentInfo[] getExperiments(String ID,QueryOptions qOpt)81 public net.sf.basedb.info.ExperimentInfo[] getExperiments(String ID, net.sf.basedb.info.QueryOptions qOpt) 88 82 { 89 83 SessionControl sc = getSessionControl(ID); … … 93 87 ItemQuery<Experiment> query= Experiment.getQuery(); 94 88 query = util.getConfiguredItemQuery(query, qOpt); 95 return util.listToInfo(query.list(dc), ExperimentInfo.class);89 return util.listToInfo(query.list(dc), net.sf.basedb.info.ExperimentInfo.class); 96 90 } 97 91 finally … … 109 103 @return Array of ItemInfo:s, one for each bioassay set that where found by the query. 110 104 */ 111 public BioAssaySetInfo[] getBioAssaySets(String ID, int experimentId,QueryOptions qOpt)105 public net.sf.basedb.info.BioAssaySetInfo[] getBioAssaySets(String ID, int experimentId, net.sf.basedb.info.QueryOptions qOpt) 112 106 { 113 107 SessionControl sc = getSessionControl(ID); … … 118 112 ItemQuery<BioAssaySet> query = experiment.getBioAssaySets(); 119 113 query = util.getConfiguredItemQuery(query, qOpt); 120 return util.listToInfo(query.list(dc), BioAssaySetInfo.class);114 return util.listToInfo(query.list(dc), net.sf.basedb.info.BioAssaySetInfo.class); 121 115 } 122 116 finally … … 134 128 @return Array with {@link net.sf.basedb.info.RawBioAssayInfo}s 135 129 */ 136 public RawBioAssayInfo[] getRawBioAssays(String ID, int experimentId,QueryOptions qOpt)130 public net.sf.basedb.info.RawBioAssayInfo[] getRawBioAssays(String ID, int experimentId, net.sf.basedb.info.QueryOptions qOpt) 137 131 { 138 132 SessionControl sc = getSessionControl(ID); … … 143 137 ItemQuery<RawBioAssay> query = experiment.getRawBioAssays(); 144 138 query = util.getConfiguredItemQuery(query, qOpt); 145 return util.listToInfo(query.list(dc), RawBioAssayInfo.class);139 return util.listToInfo(query.list(dc), net.sf.basedb.info.RawBioAssayInfo.class); 146 140 } 147 141 finally … … 159 153 @return ReporterListInfo array. 160 154 */ 161 public ReporterListInfo[] getReporterLists(String ID, int experimentId,QueryOptions qOpt)155 public net.sf.basedb.info.ReporterListInfo[] getReporterLists(String ID, int experimentId, net.sf.basedb.info.QueryOptions qOpt) 162 156 { 163 157 SessionControl sc = getSessionControl(ID); … … 168 162 ItemQuery<ReporterList> query = ReporterList.getQuery(); 169 163 query.restrictPermanent(Restrictions.eq(Hql.property("experiment"), Hql.entity(experiment))); 170 return util.listToInfo(query.list(dc), ReporterListInfo.class);164 return util.listToInfo(query.list(dc), net.sf.basedb.info.ReporterListInfo.class); 171 165 } 172 166 finally … … 184 178 @return Array with {@link net.sf.basedb.info.AnnotationTypeInfo}:s 185 179 */ 186 public AnnotationTypeInfo[] getExperimentalFactors(String ID, int experimentId,QueryOptions qOpt)180 public net.sf.basedb.info.AnnotationTypeInfo[] getExperimentalFactors(String ID, int experimentId, net.sf.basedb.info.QueryOptions qOpt) 187 181 { 188 182 SessionControl sc = getSessionControl(ID); … … 193 187 ItemQuery<AnnotationType> query = experiment.getExperimentalFactors(); 194 188 query = util.getConfiguredItemQuery(query, qOpt); 195 return util.listToInfo(query.list(dc), AnnotationTypeInfo.class);189 return util.listToInfo(query.list(dc), net.sf.basedb.info.AnnotationTypeInfo.class); 196 190 } 197 191 finally -
trunk/src/webservices/server/net/sf/basedb/ws/server/FileService.java
r6434 r6435 27 27 import net.sf.basedb.core.File; 28 28 import net.sf.basedb.core.SessionControl; 29 import net.sf.basedb.info.FileInfo;30 29 31 30 … … 53 52 @return The file information 54 53 */ 55 public FileInfo getById(String ID, int itemId)54 public net.sf.basedb.info.FileInfo getById(String ID, int itemId) 56 55 { 57 56 SessionControl sc = getSessionControl(ID); … … 60 59 { 61 60 File f = File.getById(dc, itemId); 62 return f.toTransferable(new FileInfo());61 return f.toTransferable(new net.sf.basedb.info.FileInfo()); 63 62 } 64 63 finally -
trunk/src/webservices/server/net/sf/basedb/ws/server/ProjectService.java
r6434 r6435 26 26 import net.sf.basedb.core.Project; 27 27 import net.sf.basedb.core.SessionControl; 28 import net.sf.basedb.info.ProjectInfo;29 import net.sf.basedb.info.QueryOptions;30 28 31 29 … … 53 51 @return The project information 54 52 */ 55 public ProjectInfo getById(String ID, int itemId)53 public net.sf.basedb.info.ProjectInfo getById(String ID, int itemId) 56 54 { 57 55 SessionControl sc = getSessionControl(ID); … … 60 58 { 61 59 Project p = Project.getById(dc, itemId); 62 return p.toTransferable(new ProjectInfo());60 return p.toTransferable(new net.sf.basedb.info.ProjectInfo()); 63 61 } 64 62 finally … … 101 99 @return Information objects in an array for each found project. 102 100 */ 103 public ProjectInfo[] getProjects(String ID,QueryOptions qOpt)101 public net.sf.basedb.info.ProjectInfo[] getProjects(String ID, net.sf.basedb.info.QueryOptions qOpt) 104 102 { 105 103 SessionControl sc = getSessionControl(ID); … … 109 107 ItemQuery<Project> query = Project.getQuery(); 110 108 query = util.getConfiguredItemQuery(query, qOpt); 111 return util.listToInfo(query.list(dc), ProjectInfo.class);109 return util.listToInfo(query.list(dc), net.sf.basedb.info.ProjectInfo.class); 112 110 } 113 111 finally -
trunk/src/webservices/server/net/sf/basedb/ws/server/RawBioAssayService.java
r6434 r6435 30 30 import net.sf.basedb.core.RawBioAssay; 31 31 import net.sf.basedb.core.SessionControl; 32 import net.sf.basedb.info.AnnotationInfo;33 import net.sf.basedb.info.ArrayDesignInfo;34 import net.sf.basedb.info.DataFileTypeInfo;35 import net.sf.basedb.info.FileSetMemberInfo;36 import net.sf.basedb.info.QueryOptions;37 import net.sf.basedb.info.RawBioAssayInfo;38 32 39 33 import org.apache.axiom.om.OMElement; … … 62 56 @return The raw bioassay information 63 57 */ 64 public RawBioAssayInfo getById(String ID, int itemId)58 public net.sf.basedb.info.RawBioAssayInfo getById(String ID, int itemId) 65 59 { 66 60 SessionControl sc = getSessionControl(ID); … … 69 63 { 70 64 RawBioAssay rba = RawBioAssay.getById(dc, itemId); 71 return rba.toTransferable(new RawBioAssayInfo());65 return rba.toTransferable(new net.sf.basedb.info.RawBioAssayInfo()); 72 66 } 73 67 finally … … 84 78 @return An RawBioAssayInfo array. 85 79 */ 86 public RawBioAssayInfo[] getRawBioAssays(String ID,QueryOptions qOpt)80 public net.sf.basedb.info.RawBioAssayInfo[] getRawBioAssays(String ID, net.sf.basedb.info.QueryOptions qOpt) 87 81 { 88 82 SessionControl sc = getSessionControl(ID); … … 92 86 ItemQuery<RawBioAssay> query= RawBioAssay.getQuery(); 93 87 query = util.getConfiguredItemQuery(query, qOpt); 94 return util.listToInfo(query.list(dc), RawBioAssayInfo.class);88 return util.listToInfo(query.list(dc), net.sf.basedb.info.RawBioAssayInfo.class); 95 89 } 96 90 finally … … 106 100 @return ArrayDesignInfo object containing information about the used arraydesign. 107 101 */ 108 public ArrayDesignInfo getArrayDesign(String ID, int rawBioAssayId)109 { 110 SessionControl sc = getSessionControl(ID); 111 DbControl dc = sc.newDbControl(); 112 ArrayDesignInfo info = null;102 public net.sf.basedb.info.ArrayDesignInfo getArrayDesign(String ID, int rawBioAssayId) 103 { 104 SessionControl sc = getSessionControl(ID); 105 DbControl dc = sc.newDbControl(); 106 net.sf.basedb.info.ArrayDesignInfo info = null; 113 107 try 114 108 { 115 109 RawBioAssay rawBioAssay = RawBioAssay.getById(dc, rawBioAssayId); 116 110 ArrayDesign arrayDesign = rawBioAssay.getArrayDesign(); 117 if (arrayDesign != null) info = arrayDesign.toTransferable(new ArrayDesignInfo());111 if (arrayDesign != null) info = arrayDesign.toTransferable(new net.sf.basedb.info.ArrayDesignInfo()); 118 112 } 119 113 finally … … 198 192 @return An array with DataFileTypeInfo:s. 199 193 */ 200 public DataFileTypeInfo[] getDataFileTypes(String ID, int rawBioAssayId,QueryOptions qOpt)194 public net.sf.basedb.info.DataFileTypeInfo[] getDataFileTypes(String ID, int rawBioAssayId, net.sf.basedb.info.QueryOptions qOpt) 201 195 { 202 196 SessionControl sc = getSessionControl(ID); … … 209 203 ItemQuery<DataFileType> query = rawBioAssay.getFileSet().getMemberTypes(); 210 204 query = util.getConfiguredItemQuery(query, qOpt); 211 return util.listToInfo(query.list(dc), DataFileTypeInfo.class);205 return util.listToInfo(query.list(dc), net.sf.basedb.info.DataFileTypeInfo.class); 212 206 } 213 207 } … … 216 210 if (dc != null) dc.close(); 217 211 } 218 return new DataFileTypeInfo[0];212 return new net.sf.basedb.info.DataFileTypeInfo[0]; 219 213 } 220 214 … … 228 222 @since 3.0 229 223 */ 230 public FileSetMemberInfo[] getDataFiles(String ID, int rawBioAssayId,QueryOptions qOpt)224 public net.sf.basedb.info.FileSetMemberInfo[] getDataFiles(String ID, int rawBioAssayId, net.sf.basedb.info.QueryOptions qOpt) 231 225 { 232 226 SessionControl sc = getSessionControl(ID); … … 254 248 corresponds to the annotation type with the same index in the annotationTypes array 255 249 */ 256 public AnnotationInfo[] getAnnotations(String ID, int rawBioAssayId, Integer[] annotationTypes, boolean findInherited)250 public net.sf.basedb.info.AnnotationInfo[] getAnnotations(String ID, int rawBioAssayId, Integer[] annotationTypes, boolean findInherited) 257 251 { 258 252 SessionControl sc = getSessionControl(ID); -
trunk/src/webservices/server/net/sf/basedb/ws/server/ReporterService.java
r6434 r6435 41 41 import net.sf.basedb.core.query.Hql; 42 42 import net.sf.basedb.core.query.Query; 43 import net.sf.basedb.info.ExtendedPropertyInfo;44 import net.sf.basedb.info.QueryOptions;45 43 import net.sf.basedb.util.formatter.Formatter; 46 44 import net.sf.basedb.util.formatter.MultiFormatter; … … 80 78 @return an ExtendedPropertyInfo array. 81 79 */ 82 public ExtendedPropertyInfo[] getExtendedProperties()80 public net.sf.basedb.info.ExtendedPropertyInfo[] getExtendedProperties() 83 81 { 84 82 List<ExtendedProperty> properties = ExtendedProperties.getProperties("ReporterData"); 85 83 if (properties != null) 86 84 { 87 return util.listToInfo(properties, ExtendedPropertyInfo.class);85 return util.listToInfo(properties, net.sf.basedb.info.ExtendedPropertyInfo.class); 88 86 } 89 87 else 90 88 { 91 return new ExtendedPropertyInfo[0];89 return new net.sf.basedb.info.ExtendedPropertyInfo[0]; 92 90 } 93 91 } … … 102 100 @throws Exception If something goes wrong with the export. 103 101 */ 104 public OMElement downloadReportersInList(String ID, int reporterListId, ExtendedPropertyInfo[] extPropInfos,QueryOptions qOpt)102 public OMElement downloadReportersInList(String ID, int reporterListId, net.sf.basedb.info.ExtendedPropertyInfo[] extPropInfos, net.sf.basedb.info.QueryOptions qOpt) 105 103 throws Exception 106 104 { … … 125 123 exportedProperties.add(ExportedProperty.createExportedProperty("reporter.reporterType.name", "Reporter type", metadata, formatter)); 126 124 exportedProperties.add(ExportedProperty.createExportedProperty("score", "Score", metadata, formatter)); 127 for ( ExtendedPropertyInfo ep : extPropInfos)125 for (net.sf.basedb.info.ExtendedPropertyInfo ep : extPropInfos) 128 126 { 129 127 exportedProperties.add(ExportedProperty.createExportedProperty("reporter." + ep.getName(), ep.getTitle(), metadata, formatter)); … … 167 165 @throws Exception If anything goes wrong with the export. 168 166 */ 169 public OMElement downloadReporters(String ID, ExtendedPropertyInfo[] extPropInfos,QueryOptions qOpt)167 public OMElement downloadReporters(String ID, net.sf.basedb.info.ExtendedPropertyInfo[] extPropInfos, net.sf.basedb.info.QueryOptions qOpt) 170 168 throws Exception 171 169 { … … 189 187 exportedProperties.add(ExportedProperty.createExportedProperty("externalId", "External ID", metadata, formatter)); 190 188 exportedProperties.add(ExportedProperty.createExportedProperty("reporterType.name", "Reporter type", metadata, formatter)); 191 for ( ExtendedPropertyInfo ep : extPropInfos)189 for (net.sf.basedb.info.ExtendedPropertyInfo ep : extPropInfos) 192 190 { 193 191 exportedProperties.add(ExportedProperty.createExportedProperty(ep.getName(), ep.getTitle(), metadata, formatter)); -
trunk/src/webservices/server/net/sf/basedb/ws/server/SessionService.java
r6434 r6435 25 25 import net.sf.basedb.core.SessionControl; 26 26 import net.sf.basedb.core.authentication.LoginRequest; 27 import net.sf.basedb.info.VersionInfo;28 27 29 28 /** … … 113 112 @return A {@link VersionInfo} object 114 113 */ 115 public VersionInfo getVersion()114 public net.sf.basedb.info.VersionInfo getVersion() 116 115 { 117 VersionInfo info = newVersionInfo();116 net.sf.basedb.info.VersionInfo info = new net.sf.basedb.info.VersionInfo(); 118 117 info.setMajor(Application.getMajorVersion()); 119 118 info.setMinor(Application.getMinorVersion());
Note: See TracChangeset
for help on using the changeset viewer.