package it.acxent.pg; import it.acxent.db.ResParm; import java.util.concurrent.Callable; public class CreaFotoPgCallable implements Callable { private Gara gara; private String fileSorgente; private String dirRidotte; private boolean creaNuovamente; private Foto foto; public CreaFotoPgCallable(Gara gara, String fileSorgente, String dirRidotte, boolean creaNuovamente) { this.gara = gara; this.fileSorgente = fileSorgente; this.dirRidotte = dirRidotte; this.creaNuovamente = creaNuovamente; } public ResParm call() throws Exception { ResParm rp = Foto.creaRiduzioniPerWeb(this.gara, this.fileSorgente, this.dirRidotte, this.creaNuovamente); rp.setReturnObj(getFoto()); return rp; } public Foto getFoto() { return this.foto; } public void setFoto(Foto foto) { this.foto = foto; } }