Search in sources :

Example 6 with NodeGroupTraductions

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

the class ExportTabulateHelper method writeGroups.

private boolean writeGroups() {
    ArrayList<NodeGroupLabel> nodeGroupLabel = thesaurusDatas.getNodeGroupLabels();
    boolean first;
    for (NodeGroupLabel nodeGroupLabel1 : nodeGroupLabel) {
        // idGroup
        tabulateBuff.append(nodeGroupLabel1.getIdGroup());
        tabulateBuff.append(";");
        // idArk
        if (nodeGroupLabel1.getIdArk() == null) {
            tabulateBuff.append("");
        } else {
            tabulateBuff.append(nodeGroupLabel1.getIdArk());
        }
        tabulateBuff.append(";");
        // type
        tabulateBuff.append("MT");
        tabulateBuff.append(";");
        // preflabel
        first = true;
        for (NodeGroupTraductions nodeGroupTraduction : nodeGroupLabel1.getNodeGroupTraductionses()) {
            if (!first) {
                tabulateBuff.append("##");
            }
            tabulateBuff.append(nodeGroupTraduction.getTitle());
            tabulateBuff.append("::");
            tabulateBuff.append(nodeGroupTraduction.getIdLang());
            first = false;
        }
        tabulateBuff.append(";");
        // altLabel
        tabulateBuff.append(";");
        // inScheme
        tabulateBuff.append(";");
        // broader
        tabulateBuff.append(";");
        // narrower
        tabulateBuff.append(";");
        // related
        tabulateBuff.append(";");
        // alignment
        tabulateBuff.append(";");
        // definition
        tabulateBuff.append(";");
        // scopeNote
        tabulateBuff.append(";");
        // historyNote
        tabulateBuff.append(";");
        // editorialNote
        tabulateBuff.append(";");
        // createdDate
        for (NodeGroupTraductions nodeGroupTraduction : nodeGroupLabel1.getNodeGroupTraductionses()) {
            tabulateBuff.append(nodeGroupTraduction.getCreated());
        }
        tabulateBuff.append(";");
        // modifiedDdate
        for (NodeGroupTraductions nodeGroupTraduction : nodeGroupLabel1.getNodeGroupTraductionses()) {
            tabulateBuff.append(nodeGroupTraduction.getModified());
        }
        tabulateBuff.append("\n");
    }
    return true;
}
Also used : NodeGroupLabel(mom.trd.opentheso.bdd.helper.nodes.group.NodeGroupLabel) NodeGroupTraductions(mom.trd.opentheso.bdd.helper.nodes.group.NodeGroupTraductions)

Aggregations

NodeGroupTraductions (mom.trd.opentheso.bdd.helper.nodes.group.NodeGroupTraductions)6 GroupHelper (mom.trd.opentheso.bdd.helper.GroupHelper)3 PrefixString (com.k_int.IR.QueryModels.PrefixString)2 Connection (java.sql.Connection)2 PreparedStatement (java.sql.PreparedStatement)2 ResultSet (java.sql.ResultSet)2 SQLException (java.sql.SQLException)2 Statement (java.sql.Statement)2 HashMap (java.util.HashMap)2 ConceptHelper (mom.trd.opentheso.bdd.helper.ConceptHelper)2 NodeGroupLabel (mom.trd.opentheso.bdd.helper.nodes.group.NodeGroupLabel)2 ArrayList (java.util.ArrayList)1 FacesMessage (javax.faces.application.FacesMessage)1 ConceptGroupLabel (mom.trd.opentheso.bdd.datas.ConceptGroupLabel)1 Term (mom.trd.opentheso.bdd.datas.Term)1 TermHelper (mom.trd.opentheso.bdd.helper.TermHelper)1 NodeLang (mom.trd.opentheso.bdd.helper.nodes.NodeLang)1 NodeUri (mom.trd.opentheso.bdd.helper.nodes.NodeUri)1 NodeTermTraduction (mom.trd.opentheso.bdd.helper.nodes.term.NodeTermTraduction)1