private void addXref(TermPair pair) {
   SessionManager.getManager()
       .apply(
           new AddDbxrefHistoryItem(
               pair.getReferrer().getID(),
               this.makeDbxref(pair.getMaster().getID()),
               false,
               null));
 }
Beispiel #2
0
 @Override
 public SearchHit<OBOObject> getExactHit(String text) {
   Collection<OBOClass> terms = TermUtil.getTerms(SessionManager.getManager().getSession());
   for (OBOClass term : terms) {
     if ((term.getName() != null) && term.getName().equals(text)) {
       return new TermHit(
           term,
           term.getName(),
           new MatchType() {
             @Override
             public String getName() {
               return "Name";
             }
           });
     }
   }
   return null;
 }