Changeset 20753


Ignore:
Timestamp:
01/03/10 10:35:57 (2 years ago)
Author:
julie
Message:

added missing arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/intermine/web/main/src/org/intermine/web/struts/PortalQueryAction.java

    r20752 r20753  
    129129        BagQueryConfig bagQueryConfig = im.getBagQueryConfig(); 
    130130 
    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) { 
    133133            recordError(new ActionMessage("errors.badportalclass"), request); 
    134134            return goToNoResults(mapping, session); 
    135135        } 
    136               
     136 
    137137        PathQuery pathQuery = new PathQuery(model); 
    138138        List<Path> view = PathQueryResultHelper.getDefaultView(className, model, webConfig, null, 
     
    146146        WebResultsExecutor executor = im.getWebResultsExecutor(profile); 
    147147        WebResults webResults = executor.execute(pathQuery, returnBagQueryResults); 
    148          
     148 
    149149        String bagName = NameUtil.generateNewName(profile.getSavedBags().keySet(), "link"); 
    150150        InterMineBag imBag = profile.createBag(bagName, className, ""); 
     
    174174 
    175175                    imBag = profile.createBag(bagName, className, ""); 
    176                     List<Integer> converted = bagConverter.getConvertedObjectIds(profile,  
     176                    List<Integer> converted = bagConverter.getConvertedObjectIds(profile, 
    177177                            className, bagName, addparameters[0]); 
    178178                    // No matches 
     
    215215    } 
    216216 
    217     private BagConverter getBagConverter(InterMineAPI im, WebConfig webConfig,  
     217    private BagConverter getBagConverter(InterMineAPI im, WebConfig webConfig, 
    218218            String converterClassName) { 
    219219 
     
    223223            try { 
    224224                Class clazz = Class.forName(converterClassName); 
    225                 Constructor constructor = clazz.getConstructor(); 
     225                Constructor constructor = clazz.getConstructor(InterMineAPI.class, WebConfig.class); 
    226226                bagConverter = (BagConverter) constructor.newInstance(im, webConfig); 
    227227            } catch (Exception e) { 
Note: See TracChangeset for help on using the changeset viewer.