Changeset 5806


Ignore:
Timestamp:
Jan 9, 2020, 11:54:03 AM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #1209: Add support for storing TMA specimen

Display the same options for selection as described in the help text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/plugins/TMASpecimenImporter.java

    r5799 r5806  
    2222import net.sf.basedb.core.Sample;
    2323import net.sf.basedb.core.StringParameterType;
     24import net.sf.basedb.core.Type;
    2425import net.sf.basedb.core.plugin.GuiContext;
    2526import net.sf.basedb.core.plugin.InteractivePlugin;
     
    117118 
    118119 
     120  private static final IdMethod SCANB_ID = new PropertyIdMethod("scanbId", "SCAN-B ID", "name", "caseColumnMapping", false, Type.STRING);
     121  private static final IdMethod RELEASE_ID = new PropertyIdMethod("releaseId", "Release ID", "externalId", "caseColumnMapping", false, Type.STRING);
     122 
    119123  public TMASpecimenImporter()
    120124  {}
     
    166170  protected IdMethod[] getIdMethods()
    167171  {
    168     return new IdMethod[] { PropertyIdMethod.NAME, PropertyIdMethod.EXTERNAL_ID };
     172    return new IdMethod[] { SCANB_ID, RELEASE_ID };
    169173  }
    170174 
     
    182186      }
    183187    }
    184     return PropertyIdMethod.NAME;
     188    return SCANB_ID;
    185189  }
    186190 
     
    434438        Enumeration<String, String> idMethods = new Enumeration<String, String>();
    435439        idMethods.add(null, null);
    436         idMethods.add(PropertyIdMethod.NAME.getMethod(), PropertyIdMethod.NAME.getTitle());
    437         idMethods.add(PropertyIdMethod.EXTERNAL_ID.getMethod(), PropertyIdMethod.EXTERNAL_ID.getTitle());
     440        idMethods.add(SCANB_ID.getMethod(), SCANB_ID.getTitle());
     441        idMethods.add(RELEASE_ID.getMethod(), RELEASE_ID.getTitle());
    438442        PluginParameter<String> idMethodParameter = new PluginParameter<String>(
    439443          "idMethod",
Note: See TracChangeset for help on using the changeset viewer.