コード例 #1
0
  @Override
  public ThesaurusTerm getConceptPreferredTerm(String conceptId) {

    logger.debug("ConceptId : " + conceptId);

    ThesaurusTerm preferredTerm = thesaurusTermDAO.getConceptPreferredTerm(conceptId);
    if (preferredTerm == null) {
      throw new BusinessException(
          "The concept " + conceptId + "has no preferred term",
          "concept-does-not-have-a-preferred-term");
    }
    return preferredTerm;
  }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see
  * fr.mcc.ginco.services.IThesaurusConceptService#getConceptPreferredTerm
  * (java.lang.String, java.lang.String)
  */
 @Override
 public ThesaurusTerm getConceptPreferredTerm(String conceptId, String languageId) {
   logger.debug("ConceptId : " + conceptId);
   ThesaurusTerm preferredTerm = thesaurusTermDAO.getConceptPreferredTerm(conceptId, languageId);
   return preferredTerm;
 }