BrightSide Workbench Full Report + Source Code
org.turro.dossier.dossier.DossierNotifierTask Class Reference
Inheritance diagram for org.turro.dossier.dossier.DossierNotifierTask:
Collaboration diagram for org.turro.dossier.dossier.DossierNotifierTask:

Public Member Functions

void execute ()
 
boolean isSystem ()
 
String getName ()
 
String getDataLabel ()
 
- Public Member Functions inherited from org.turro.scheduler.task.AbstractTask
void setConstructor (IConstructor constructor)
 
void setSettings (TaskSettings settings)
 
IConstructor getConstructor ()
 
TaskSettings getSettings ()
 
void setLastExecuted (Date lastExecuted)
 
boolean isDone ()
 
boolean shouldRun (Date now)
 
void doRun (Motor motor)
 
void stop ()
 
void run ()
 
String getColor ()
 
String getIcon ()
 
String getDescription ()
 
int compareTo (AbstractTask o)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file DossierNotifierTask.java.

Member Function Documentation

◆ execute()

void org.turro.dossier.dossier.DossierNotifierTask.execute ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 38 of file DossierNotifierTask.java.

38  {
39  Date now = new Date();
40  int days = Integer.parseInt(getSettings().getData()) * -1;
41  Date from = new CheckDate(now).addDays(days).getDate();
42  for(Dossier dossier : getDossiers(now)) {
43  DossierActivitySet das = new DossierActivitySet(dossier, from);
44  if(!das.isEmpty()) {
45  new DossierNotification(dossier, das, from).sendMail(getConstructor());
46  }
47  }
48  }
Here is the call graph for this function:

◆ getDataLabel()

String org.turro.dossier.dossier.DossierNotifierTask.getDataLabel ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 61 of file DossierNotifierTask.java.

61  {
62  return I_.get("Days");
63  }
Here is the call graph for this function:

◆ getName()

String org.turro.dossier.dossier.DossierNotifierTask.getName ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 56 of file DossierNotifierTask.java.

56  {
57  return I_.get("Dossier notifier");
58  }
Here is the call graph for this function:

◆ isSystem()

boolean org.turro.dossier.dossier.DossierNotifierTask.isSystem ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 51 of file DossierNotifierTask.java.

51  {
52  return false;
53  }

The documentation for this class was generated from the following file: