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

Public Member Functions

String getName ()
 
void run ()
 
String getDataLabel ()
 
- Public Member Functions inherited from org.turro.scheduler.motor.DefaultTask
boolean isSystem ()
 
boolean isDone ()
 
boolean isActive ()
 
void setActive (boolean active)
 
Constraints getConstraints ()
 
IConstructor getConstructor ()
 
String getData ()
 
void setData (String data)
 
String getDescription ()
 
void setDescription (String value)
 
Date getEndDate ()
 
void setEndDate (Date endDate)
 
String getImplementation ()
 
void setImplementation (String value)
 
Date getStartDate ()
 
void setStartDate (Date startDate)
 
void setLastExecuted (Date lastExecuted)
 
boolean shouldRun (Date now)
 
void doRun (Motor motor)
 
void stop ()
 
void readXML (Element root)
 
void writeXML (Element root)
 
- Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractImplementation
 AbstractImplementation ()
 
void setElement (IElement element)
 
void setConstructor (IConstructor constructor)
 
void setConfiguration (Element configuration)
 
KeyValueMap getAttributes ()
 
Long getLongAttribute (String key)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.elephant.impl.abstracts.AbstractImplementation
IElement iel
 
IConstructor constructor
 
Element configuration
 
Map attributes
 

Detailed Description

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

Definition at line 34 of file DossierNotifier.java.

Member Function Documentation

◆ getDataLabel()

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

Reimplemented from org.turro.scheduler.motor.DefaultTask.

Definition at line 63 of file DossierNotifier.java.

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

◆ getName()

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

Reimplemented from org.turro.scheduler.motor.DefaultTask.

Definition at line 37 of file DossierNotifier.java.

37  {
38  return I_.get("Dossier notifier");
39  }
Here is the call graph for this function:

◆ run()

void org.turro.dossier.dossier.DossierNotifier.run ( )

Reimplemented from org.turro.scheduler.motor.DefaultTask.

Definition at line 42 of file DossierNotifier.java.

42  {
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)) {
47  DossierActivitySet das = new DossierActivitySet(dossier, from);
48  if(!das.isEmpty()) {
49  new DossierNotification(dossier, das, from).sendMail(constructor);
50  }
51  }
52  }
Here is the call graph for this function:

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