Changeset 20753
- Timestamp:
- 01/03/10 10:35:57 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/intermine/web/main/src/org/intermine/web/struts/PortalQueryAction.java
r20752 r20753 129 129 BagQueryConfig bagQueryConfig = im.getBagQueryConfig(); 130 130 131 // If the class is not in the model, we can't continue 132 if (model.getClassDescriptorByName(className) == null) { 131 // If the class is not in the model, we can't continue 132 if (model.getClassDescriptorByName(className) == null) { 133 133 recordError(new ActionMessage("errors.badportalclass"), request); 134 134 return goToNoResults(mapping, session); 135 135 } 136 136 137 137 PathQuery pathQuery = new PathQuery(model); 138 138 List<Path> view = PathQueryResultHelper.getDefaultView(className, model, webConfig, null, … … 146 146 WebResultsExecutor executor = im.getWebResultsExecutor(profile); 147 147 WebResults webResults = executor.execute(pathQuery, returnBagQueryResults); 148 148 149 149 String bagName = NameUtil.generateNewName(profile.getSavedBags().keySet(), "link"); 150 150 InterMineBag imBag = profile.createBag(bagName, className, ""); … … 174 174 175 175 imBag = profile.createBag(bagName, className, ""); 176 List<Integer> converted = bagConverter.getConvertedObjectIds(profile, 176 List<Integer> converted = bagConverter.getConvertedObjectIds(profile, 177 177 className, bagName, addparameters[0]); 178 178 // No matches … … 215 215 } 216 216 217 private BagConverter getBagConverter(InterMineAPI im, WebConfig webConfig, 217 private BagConverter getBagConverter(InterMineAPI im, WebConfig webConfig, 218 218 String converterClassName) { 219 219 … … 223 223 try { 224 224 Class clazz = Class.forName(converterClassName); 225 Constructor constructor = clazz.getConstructor( );225 Constructor constructor = clazz.getConstructor(InterMineAPI.class, WebConfig.class); 226 226 bagConverter = (BagConverter) constructor.newInstance(im, webConfig); 227 227 } catch (Exception e) {
