コード例 #1
0
 private ConceptImpl getConceptForReference(String id) {
   ConceptImpl concept = componentStore.getConcepts().get(Long.parseLong(id));
   if (concept == null) {
     // Could throw exception here depending on implementation
     concept = new ConceptImpl(id);
     componentStore.addConcept(concept);
   }
   return concept;
 }
コード例 #2
0
 @Override
 public void createConcept(
     String conceptId,
     String effectiveTime,
     String active,
     String moduleId,
     String definitionStatusId) {
   componentStore.addConcept(
       new ConceptImpl(
           conceptId,
           effectiveTime,
           FactoryUtils.parseActive(active),
           moduleId,
           definitionStatusId));
 }