Skip to content

Commit

Permalink
30965 : ANO - problème avec le ws getChildrenByConceptId
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Plá Lozano committed Oct 29, 2018
1 parent deb5890 commit 22eb15d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
15 changes: 15 additions & 0 deletions ginco-api/src/main/java/fr/mcc/ginco/beans/ThesaurusConcept.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public class ThesaurusConcept implements Serializable, IAuditableBean {
private String lexicalValue;
/*** AAM EVO 2017 Evolutions v5 fin ***/

/*** MPL 30965 29/10/2018 debut ***/
private String languageId;
/*** MPL 30965 29/10/2018 fin ***/


@XmlTransient
private Thesaurus thesaurus;
Expand All @@ -90,6 +94,17 @@ public void setLexicalValue(String lexicalvalue) {
/*** AAM EVO 2017 Evolutions v5 fin ***/


/*** MPL 30965 29/10/2018 debut ***/
public String getLanguageId() {
return this.languageId;
}

public void setLanguageId(String languageId) {
this.languageId = languageId;
}
/*** MPL 30965 29/10/2018 fin ***/


public String getIdentifier() {
return identifier;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ private List<ThesaurusConcept> getConcepts(String conceptId, String thesaurusId,
.projectionList()
.add(Projections.property("tc.thesaurus").as("thesaurus"))
.add(Projections.property("tt.lexicalValue").as("lexicalValue"))
//MPL 30965 29/10/2018 debut
.add(Projections.property("tt.language.id").as("languageId"))
//MPL 30965 29/10/2018 fin
.add(Projections.property("tc.notation").as("notation"))
.add(Projections.property("tc.status").as("status"))
.add(Projections.property("tc.identifier").as(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public class ReducedThesaurusConcept {

/*** AAM EVO 2017 Evolutions v5 fin ***/

/*** MPL 30965 29/10/2018 debut ***/
private String languageId;
/*** MPL 30965 29/10/2018 fin ***/

/*** AAM EVO 2017 Evolutions v5 début ***/


Expand All @@ -79,6 +83,16 @@ public void setLexicalValue(String lexicalvalue) {
}
/*** AAM EVO 2017 Evolutions v5 fin ***/

/*** MPL 30965 29/10/2018 debut ***/
public String getLanguageId() {
return this.languageId;
}

public void setLanguageId(String languageId) {
this.languageId = languageId;
}
/*** MPL 30965 29/10/2018 fin ***/

private List<ReducedThesaurusConcept> associates;

private List<ReducedThesaurusConcept> parents;
Expand All @@ -101,6 +115,9 @@ public static ReducedThesaurusConcept getReducedThesaurusConcept(ThesaurusConcep
}
reducedConcept.setLexicalValue(concept.getLexicalValue());
reducedConcept.setNotation(concept.getNotation());
//MPL 30965 29/10/2018 debut
reducedConcept.setLanguageId(concept.getLanguageId());
//MPL 30965 29/10/2018 fin
//FIXME TODO
// reducedConcept.setLexicalValue("lexicalValue aaaa");
// reducedConcept.setNotation("notation bbbbbb");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,8 @@ public List<ReducedThesaurusConcept> getChildrenByConceptId(String conceptId, Co
}
//JLSO 29055 21/06/2018 fin
@Override
public List<ReducedThesaurusConcept> getChildrenByConceptId_v2(String conceptId, ConceptStatusEnum status,
Boolean withAssociates,
Boolean withNotes) {
public List<ReducedThesaurusConcept> getChildrenByConceptId_v2(String conceptId,
ConceptStatusEnum status, Boolean withAssociates, Boolean withNotes) {
if (StringUtils.isNotEmpty(conceptId)) {
List<ReducedThesaurusConcept> results = new ArrayList<ReducedThesaurusConcept>();
ThesaurusConcept thesaurusConcept = thesaurusConceptService.getThesaurusConceptById(conceptId);
Expand Down

0 comments on commit 22eb15d

Please sign in to comment.