40 lines
1.4 KiB
Java
40 lines
1.4 KiB
Java
package it.acxent.anag.servlet;
|
|
|
|
import it.acxent.anag.Glossario;
|
|
import it.acxent.anag.GlossarioCR;
|
|
import it.acxent.anag.TipoGlossario;
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import it.acxent.db.DBAdapter;
|
|
import it.acxent.servlet.AblServletSvlt;
|
|
import javax.servlet.annotation.WebServlet;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
@WebServlet(urlPatterns = {"/admin/anagConfig/Glossario.abl"})
|
|
public class GlossarioSvlt extends AblServletSvlt {
|
|
private static final long serialVersionUID = -6401647334745567418L;
|
|
|
|
protected void addRows(HttpServletRequest req, HttpServletResponse res) {}
|
|
|
|
protected void fillComboAfterDetail(DBAdapter bean, HttpServletRequest req, HttpServletResponse res) {}
|
|
|
|
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {
|
|
ApplParmFull apFull = getApFull(req);
|
|
req.setAttribute("listaTipoGlossario", new TipoGlossario(apFull).findAll());
|
|
}
|
|
|
|
protected DBAdapter getBean(HttpServletRequest req) {
|
|
return new Glossario(getApFull(req));
|
|
}
|
|
|
|
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
|
return new GlossarioCR(getApFull(req));
|
|
}
|
|
|
|
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {}
|
|
|
|
protected boolean isSimpleServlet(HttpServletRequest req) {
|
|
return true;
|
|
}
|
|
}
|