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());
}
}
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();
}
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());
}
}
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);
}
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();
}
Aggregations