public InvestigationIndexVo getInvestigationIndex(Integer recordId) { if(recordId == null) return null; DomainFactory factory = getDomainFactory(); InvestigationIndexVo voInvestigationIndex = InvestigationIndexVoAssembler.create((InvestigationIndex) factory.getDomainObject(InvestigationIndex.class,recordId)); //WDEV-16994 if (voInvestigationIndex == null) return null; if(voInvestigationIndex.getSynonymsIsNotNull() && voInvestigationIndex.getSynonyms().size() > 0) { InvSynonymVoCollection coll = new InvSynonymVoCollection(); for(int i = 0; i < voInvestigationIndex.getSynonyms().size(); i++) { InvSynonymVo syn = voInvestigationIndex.getSynonyms().get(i); if(syn.getActiveStatusIsNotNull() && syn.getActiveStatus().equals(Boolean.TRUE)) coll.add(syn); } voInvestigationIndex.setSynonyms(coll); } return voInvestigationIndex; }
public InvestigationIndexVo getInvestigationWithTaxonomyMappings(InvestigationIndexRefVo investigationRef) { DomainFactory factory = getDomainFactory(); InvestigationIndex inv = (InvestigationIndex) factory.getDomainObject(InvestigationIndex.class, investigationRef.getID_InvestigationIndex()); return InvestigationIndexVoAssembler.create(inv); }