18 package org.turro.dossier.dossier;
20 import java.util.Date;
21 import java.util.List;
22 import org.amic.util.date.CheckDate;
23 import org.turro.dossier.db.DossierPU;
24 import org.turro.dossier.entity.Dossier;
25 import org.turro.dossier.entity.DossierStatus;
26 import org.turro.elephant.db.WhereClause;
27 import org.turro.i18n.I_;
28 import org.turro.scheduler.motor.DefaultTask;
38 return I_.
get(
"Dossier notifier");
43 Date now =
new Date();
44 int days = Integer.parseInt(
getData()) * -1;
45 Date from =
new CheckDate(now).addDays(days).getDate();
46 for(
Dossier dossier : getDossiers(now)) {
54 private List<Dossier> getDossiers(Date now) {
56 wc.
addClause(
"select distinct dossier from Dossier as dossier");
57 wc.
addClause(
"where dossier.status <> :status");
64 return I_.
get(
"Days");
void sendMail(IConstructor constructor)
void addClause(String clause)
void addNamedValue(String name, Object value)
static String get(String msg)