BrightSide Workbench Full Report + Source Code
org.turro.assistant.Assistants Class Reference

Static Public Member Functions

static void addAssistants (String role, AssistantSet list, Object data)
 
static void addAssistants (String path, boolean deep, AssistantSet list, Object data)
 
static void addAssistantsFromEntity (Object entity, boolean deep, AssistantSet list, Object data)
 
static List< String > getParticipated (IContact contact)
 

Detailed Description

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

Definition at line 33 of file Assistants.java.

Member Function Documentation

◆ addAssistants() [1/2]

static void org.turro.assistant.Assistants.addAssistants ( String  path,
boolean  deep,
AssistantSet  list,
Object  data 
)
static

Definition at line 43 of file Assistants.java.

43  {
44  for(IAssistant iAssistant : Instances.cached().byAnnotation(ExternalAssistant.class, IAssistant.class)) {
45  iAssistant.add(path, deep, list, data);
46  if(data != null) {
47  iAssistant.addFromEntityPathData(path, list, data);
48  }
49  }
50  }

◆ addAssistants() [2/2]

static void org.turro.assistant.Assistants.addAssistants ( String  role,
AssistantSet  list,
Object  data 
)
static

Definition at line 35 of file Assistants.java.

35  {
36  for(IContact c : Contacts.getByRole(role)) {
37  if(c != null && c.isWebUser()) {
38  list.add(new Assistant(c.getName(), c.getConnector(IUser.CONNECTOR_EMAIL), c, null));
39  }
40  }
41  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAssistantsFromEntity()

static void org.turro.assistant.Assistants.addAssistantsFromEntity ( Object  entity,
boolean  deep,
AssistantSet  list,
Object  data 
)
static

Definition at line 52 of file Assistants.java.

52  {
53  for(IAssistant iAssistant : Instances.cached().byAnnotation(ExternalAssistant.class, IAssistant.class)) {
54  iAssistant.addFromEntity(entity, deep, list, data);
55  if(data != null) {
56  iAssistant.addFromEntityData(entity, list, data);
57  }
58  }
59  }
Here is the caller graph for this function:

◆ getParticipated()

static List<String> org.turro.assistant.Assistants.getParticipated ( IContact  contact)
static

Definition at line 61 of file Assistants.java.

61  {
62  List<String> participed = new ArrayList<>();
63  for(IAssistant iAssistant : Instances.cached().byAnnotation(ExternalAssistant.class, IAssistant.class)) {
64  participed.addAll(iAssistant.getParticiped(contact));
65  }
66  return participed;
67  }

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