BrightSide Workbench Full Report + Source Code
org.turro.contacts.util.ContactSGCheckTask Class Reference
Inheritance diagram for org.turro.contacts.util.ContactSGCheckTask:
Collaboration diagram for org.turro.contacts.util.ContactSGCheckTask:

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 34 of file ContactSGCheckTask.java.

Member Function Documentation

◆ execute()

void org.turro.contacts.util.ContactSGCheckTask.execute ( )

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

Definition at line 37 of file ContactSGCheckTask.java.

37  {
38  Dao dao = new ContactsPU();
39  try(Stream<Contact> contacts = new ContactsPU().stream(Contact.class, "select c from Contact c")) {
40  contacts.forEach((contact) -> {
41  SocialGroups.resyndicate(List.of(contact), dao);
42  SocialGroups.checkInheritance(List.of(contact), dao);
43  });
44  }
45  }
Here is the call graph for this function:

◆ getDataLabel()

String org.turro.contacts.util.ContactSGCheckTask.getDataLabel ( )

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

Definition at line 58 of file ContactSGCheckTask.java.

58  {
59  return null;
60  }

◆ getName()

String org.turro.contacts.util.ContactSGCheckTask.getName ( )

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

Definition at line 53 of file ContactSGCheckTask.java.

53  {
54  return I_.get("Social grups check");
55  }
Here is the call graph for this function:

◆ isSystem()

boolean org.turro.contacts.util.ContactSGCheckTask.isSystem ( )

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

Definition at line 48 of file ContactSGCheckTask.java.

48  {
49  return true;
50  }

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