Search in sources :

Example 1 with AlignmentHelper

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

the class EditAlignementSourceBean method setListeAlignementSources.

public void setListeAlignementSources(String idTheso) {
    int role = theUser.getUser().getIdRole();
    if (role == 1 || role == 2) {
        AlignmentHelper alignmentHelper = new AlignmentHelper();
        listeAlignementSources = alignmentHelper.getAlignementSourceSAdmin(connect.getPoolConnexion());
        cancel();
    }
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper)

Example 2 with AlignmentHelper

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

the class EditAlignementSourceBean method updateSource.

public void updateSource(String idTheso) {
    AlignmentHelper alignmentHelper = new AlignmentHelper();
    alignmentHelper.update_alignementSource(connect.getPoolConnexion(), alignementSources, id);
    setListeAlignementSources(idTheso);
    cancel();
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper)

Example 3 with AlignmentHelper

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

the class EditAlignementSourceBean method getTypes_type_requetes.

public ArrayList<String> getTypes_type_requetes() throws SQLException {
    AlignmentHelper aligneAlignmentHelper = new AlignmentHelper();
    types_type_requetes = aligneAlignmentHelper.typesRequetes(connect.getPoolConnexion(), "alignement_type_rqt");
    return types_type_requetes;
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper)

Example 4 with AlignmentHelper

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

the class EditAlignementSourceBean method effaceAlignementSource.

public void effaceAlignementSource(String idTheso) {
    AlignmentHelper alignmentHelper = new AlignmentHelper();
    alignmentHelper.efaceAligSour(connect.getPoolConnexion(), id);
    setListeAlignementSources(idTheso);
    cancel();
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper)

Example 5 with AlignmentHelper

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

the class EditAlignementSourceBean method exportAlignement.

public void exportAlignement(String idTheso) {
    AlignmentHelper alignmentHelper = new AlignmentHelper();
    alignmentHelper.deleteAllALignementSourceOfTheso(connect.getPoolConnexion(), idTheso);
    for (AlignementSource alignementSource : alignementSources) {
        source = alignementSource.getSource();
        requete = alignementSource.getRequete();
        if (!alignmentHelper.addSourceAlignementToTheso(connect.getPoolConnexion(), idTheso, alignementSource.getId())) {
        }
    }
    idThesoForAssosAlig = "";
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper) AlignementSource(mom.trd.opentheso.core.alignment.AlignementSource)

Aggregations

AlignmentHelper (mom.trd.opentheso.bdd.helper.AlignmentHelper)42 ConceptHelper (mom.trd.opentheso.bdd.helper.ConceptHelper)16 NoteHelper (mom.trd.opentheso.bdd.helper.NoteHelper)11 Concept (mom.trd.opentheso.bdd.datas.Concept)10 Term (mom.trd.opentheso.bdd.datas.Term)10 TermHelper (mom.trd.opentheso.bdd.helper.TermHelper)10 NodeEM (mom.trd.opentheso.bdd.helper.nodes.NodeEM)9 NodeTerm (mom.trd.opentheso.bdd.helper.nodes.term.NodeTerm)9 NodeNote (mom.trd.opentheso.bdd.helper.nodes.notes.NodeNote)8 ArrayList (java.util.ArrayList)7 NodeAlignment (mom.trd.opentheso.bdd.helper.nodes.NodeAlignment)7 FacesMessage (javax.faces.application.FacesMessage)6 AlignementSource (mom.trd.opentheso.core.alignment.AlignementSource)6 SQLException (java.sql.SQLException)5 SKOSMapping (skos.SKOSMapping)5 SKOSTopConcept (skos.SKOSTopConcept)5 PrefixString (com.k_int.IR.QueryModels.PrefixString)4 HierarchicalRelationship (mom.trd.opentheso.bdd.datas.HierarchicalRelationship)4 GpsHelper (mom.trd.opentheso.bdd.helper.GpsHelper)4 NodeTermTraduction (mom.trd.opentheso.bdd.helper.nodes.term.NodeTermTraduction)4