Changeset 5003


Ignore:
Timestamp:
Oct 4, 2018, 10:52:04 AM (4 years ago)
Author:
Nicklas Nordborg
Message:

References #1054: Even more functionality in the Flagged alignment wizard

If we mark a 'Specimen' with DoNotUse we also need to find other sample child items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/GenotypeServlet.java

    r4982 r5003  
    10581058    Restriction byName = Restrictions.like(Hql.property("name"), Expressions.string(item.getName()+".%"));
    10591059   
     1060    // Find child samples if the item is a sample (eg. specimen)
     1061    if (item.getType() == Item.SAMPLE)
     1062    {
     1063      ItemQuery<Sample> sampleQuery = Sample.getQuery();
     1064      sampleQuery.setIncludes(Reggie.INCLUDE_IN_CURRENT_PROJECT);
     1065      sampleQuery.restrict(byName);
     1066      allItems.addAll(sampleQuery.list(dc));
     1067    }
     1068   
    10601069    // Find child extracts
    10611070    ItemQuery<Extract> extractQuery = Extract.getQuery();
Note: See TracChangeset for help on using the changeset viewer.