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