Search in sources :

Example 26 with AlignmentHelper

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

the class EditAlignementSourceBean method onRowSelect.

public void onRowSelect(SelectEvent event) {
    if (exporSource) {
        AlignmentHelper alignmentHelper = new AlignmentHelper();
        selectedThesaurus = alignmentHelper.getSelectedAlignementOfThisTheso(connect.getPoolConnexion(), ((AlignementSource) event.getObject()).getId());
    }
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper) AlignementSource(mom.trd.opentheso.core.alignment.AlignementSource)

Example 27 with AlignmentHelper

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

the class EditAlignementSourceBean method insertIntoAlignementSource.

public void insertIntoAlignementSource(String currentIdTheso, List<String> selectedThesaurus, int id_user) {
    AlignementSource alignementSource = new AlignementSource();
    alignementSource.setAlignement_format(alignement_format);
    alignementSource.setDescription(description);
    alignementSource.setId(id);
    alignementSource.setRequete(requete);
    alignementSource.setSource(source);
    alignementSource.setTypeRequete(type_rqt);
    AlignmentHelper alignementHelper = new AlignmentHelper();
    alignementHelper.injenctdansBDAlignement(connect.getPoolConnexion(), selectedThesaurus, alignementSource, id_user, currentIdTheso);
    setListeAlignementSources(currentIdTheso);
    cancel();
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper) AlignementSource(mom.trd.opentheso.core.alignment.AlignementSource)

Example 28 with AlignmentHelper

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

the class GpsBeans method setListeAlignementSources.

/**
 * fait la recuperation de les alignements du GPS
 *
 * @param idTheso
 */
public void setListeAlignementSources(String idTheso) {
    int role = theUser.getUser().getIdRole();
    if (role == 1 || role == 2) {
        AlignmentHelper alignmentHelper = new AlignmentHelper();
        listeAlignementSources = alignmentHelper.getAlignementSourceSAdmin(connect.getPoolConnexion());
    }
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper)

Example 29 with AlignmentHelper

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

the class GpsBeans method initAlign.

public void initAlign(int id_user) {
    AlignmentHelper alignmentHelper = new AlignmentHelper();
    alignmentHelper.init_preferences(connect.getPoolConnexion(), id_theso, id_user, id_concept_depart);
}
Also used : AlignmentHelper(mom.trd.opentheso.bdd.helper.AlignmentHelper)

Example 30 with AlignmentHelper

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

the class GpsBeans method onRowSelect.

public void onRowSelect(SelectEvent event) {
    AlignmentHelper alignmentHelper = new AlignmentHelper();
    GpsHelper gpsHelper = new GpsHelper();
    GpsPreferences gpsPreferences;
    gpsPreferences = gpsHelper.getGpsPreferences(connect.getPoolConnexion(), id_theso, id_user1, ((AlignementSource) event.getObject()).getId());
    integrerTraduction = gpsPreferences.isGps_integrertraduction();
    alignementAutomatique = gpsPreferences.isGps_alignementautomatique();
    remplacerTraduction = gpsPreferences.isGps_reemplacertraduction();
    // alignement_source = "" + gpsPreferences.getId_alignement_source();
    for (AlignementSource alignementSource : alignementSources) {
        if (((AlignementSource) event.getObject()).getId() == alignementSource.getId()) {
            alignement_source = alignementSource;
        }
    }
    selectedAlignement = alignement_source.getRequete();
}
Also used : GpsHelper(mom.trd.opentheso.bdd.helper.GpsHelper) GpsPreferences(mom.trd.opentheso.core.alignment.GpsPreferences) 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