Search in sources :

Example 1 with NodeGroupIdLabel

use of mom.trd.opentheso.bdd.helper.nodes.NodeGroupIdLabel in project opentheso by miledrousset.

the class SelectedTerme method majGroup.

/**
 * chargement des groupes d'un concept
 * #MR
 */
private void majGroup() {
    GroupHelper groupHelper = new GroupHelper();
    String labelGroup;
    boolean first = true;
    ArrayList<String> idGroupList = groupHelper.getListIdGroupOfConcept(connect.getPoolConnexion(), idTheso, idC);
    for (String idGroup : idGroupList) {
        labelGroup = groupHelper.getLexicalValueOfGroup(connect.getPoolConnexion(), idGroup, idTheso, idlangue);
        if (first) {
            microTheso = labelGroup;
            first = false;
        } else
            microTheso += ", " + labelGroup;
        NodeGroupIdLabel nodeGroupIdLabeltmp = new NodeGroupIdLabel();
        nodeGroupIdLabeltmp.setIdGroup(idGroup);
        nodeGroupIdLabeltmp.setLabel(labelGroup);
        nodeGroupIdLabel.add(nodeGroupIdLabeltmp);
    }
}
Also used : NodeGroupIdLabel(mom.trd.opentheso.bdd.helper.nodes.NodeGroupIdLabel) PrefixString(com.k_int.IR.QueryModels.PrefixString) GroupHelper(mom.trd.opentheso.bdd.helper.GroupHelper)

Aggregations

PrefixString (com.k_int.IR.QueryModels.PrefixString)1 GroupHelper (mom.trd.opentheso.bdd.helper.GroupHelper)1 NodeGroupIdLabel (mom.trd.opentheso.bdd.helper.nodes.NodeGroupIdLabel)1