Changeset 506 for trunk

Show
Ignore:
Timestamp:
03/09/11 12:04:34 (15 months ago)
Author:
martijn
Message:

Backwards compatbility fix for changes to GdbProvider?

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/org.bridgedb.rdb/src/org/bridgedb/rdb/GdbProvider.java

    r504 r506  
    7474        } 
    7575         
    76         public IDMapperStack getGdbs(Organism organism) { 
     76        /** @deprecated use getStack(organism) instead */ 
     77        public List<IDMapper> getGdbs(Organism organism) 
     78        { 
     79                return getStack(organism).getMappers(); 
     80        } 
     81         
     82        public IDMapperStack getStack(Organism organism) { 
    7783                IDMapperStack gdbs = organism2gdb.get(organism); 
    7884                if(gdbs == null) { 
     
    94100        { 
    95101                this.transitive = transitive; 
     102        } 
     103         
     104        public static GdbProvider fromConfigFile(File f) throws IDMapperException, IOException, ClassNotFoundException 
     105        { 
     106                return fromConfigFile(f, false); 
    96107        } 
    97108         
  • trunk/org.bridgedb.server/src/org/bridgedb/server/IDMapperResource.java

    r504 r506  
    7777                        throw new IllegalArgumentException("Unknown organism: " + orgName + "<p><font size='+1'><i>Double check the spelling. We are expecting an entry like: Human</i></font></p>"); 
    7878                } 
    79                 mappers = getGdbProvider().getGdbs(org); 
     79                mappers = getGdbProvider().getStack(org); 
    8080                if (mappers.getSize() == 0) 
    8181                { 
  • trunk/org.bridgedb/src/org/bridgedb/IDMapperStack.java

    r473 r506  
    558558                return result; 
    559559        } 
     560 
     561        /** get all mappers */ 
     562        public List<IDMapper> getMappers() 
     563        { 
     564                return gdbs; 
     565        } 
    560566}