Search in sources :

Example 6 with ExternalImagesHelper

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

the class Alignment method addImages__.

private boolean addImages__(String idTheso, String idConcept, int idUser) {
    ExternalImagesHelper imagesHelper = new ExternalImagesHelper();
    for (SelectedResource selectedResource : imagesOfAlignment) {
        if (selectedResource.isSelected()) {
            if (!imagesHelper.addExternalImage(connect.getPoolConnexion(), idConcept, idTheso, "", selectedAlignement, selectedResource.getGettedValue(), idUser)) {
                error = true;
                alignementResult = alignementResult + ": Erreur dans l'ajout des images";
            }
        }
    }
    alignementResult = alignementResult + " Images ajoutées";
    return true;
}
Also used : SelectedResource(mom.trd.opentheso.core.alignment.SelectedResource) ExternalImagesHelper(mom.trd.opentheso.bdd.helper.ExternalImagesHelper)

Aggregations

ExternalImagesHelper (mom.trd.opentheso.bdd.helper.ExternalImagesHelper)6 FacesMessage (javax.faces.application.FacesMessage)2 SQLException (java.sql.SQLException)1 AlignmentHelper (mom.trd.opentheso.bdd.helper.AlignmentHelper)1 ConceptHelper (mom.trd.opentheso.bdd.helper.ConceptHelper)1 GpsHelper (mom.trd.opentheso.bdd.helper.GpsHelper)1 ImagesHelper (mom.trd.opentheso.bdd.helper.ImagesHelper)1 NoteHelper (mom.trd.opentheso.bdd.helper.NoteHelper)1 NodeImage (mom.trd.opentheso.bdd.helper.nodes.NodeImage)1 SelectedResource (mom.trd.opentheso.core.alignment.SelectedResource)1