BrightSide Workbench Full Report + Source Code
org.turro.mail.reader.MailCheckTask Class Reference
Inheritance diagram for org.turro.mail.reader.MailCheckTask:
Collaboration diagram for org.turro.mail.reader.MailCheckTask:

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 29 of file MailCheckTask.java.

Member Function Documentation

◆ execute()

void org.turro.mail.reader.MailCheckTask.execute ( )

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

Definition at line 32 of file MailCheckTask.java.

32  {
33  ContextFactory.getImplementationNamesByType("IMailReader_").forEach((s) -> {
34  MailReader reader = (MailReader) ContextFactory.getImplementation(getConstructor(), (String) s);
35  if(reader != null) {
36  Message[] messages = reader.getMessages();
37  if(messages != null) {
38  for(Message message : messages) {
39  MailReaders.processMessage(reader, message);
40  }
41  }
42  }
43  });
44  }
Here is the call graph for this function:

◆ getDataLabel()

String org.turro.mail.reader.MailCheckTask.getDataLabel ( )

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

Definition at line 57 of file MailCheckTask.java.

57  {
58  return null;
59  }

◆ getName()

String org.turro.mail.reader.MailCheckTask.getName ( )

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

Definition at line 52 of file MailCheckTask.java.

52  {
53  return "Mail reader";
54  }

◆ isSystem()

boolean org.turro.mail.reader.MailCheckTask.isSystem ( )

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

Definition at line 47 of file MailCheckTask.java.

47  {
48  return false;
49  }

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