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

Public Member Functions

void add (Object entity, boolean deep, AssistantSet assistants, Object data)
 
void addFromEntityPath (String entityPath, boolean deep, AssistantSet assistants, Object data)
 
void addFromEntity (Object entity, boolean deep, AssistantSet assistants, Object data)
 
void addFromEntityPathData (String entityPath, AssistantSet assistants, Object data)
 
void addFromEntityData (Object entity, AssistantSet assistants, Object data)
 
List< String > getParticiped (IContact contact)
 

Detailed Description

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

Definition at line 34 of file ElephantAssistant.java.

Member Function Documentation

◆ add()

void org.turro.assistant.ElephantAssistant.add ( Object  entity,
boolean  deep,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 37 of file ElephantAssistant.java.

37  {
38  if(entity instanceof String) {
39  addFromEntityPath((String) entity, deep, assistants, data);
40  } else {
41  addFromEntity(entity, deep, assistants, data);
42  }
43  }
void addFromEntityPath(String entityPath, boolean deep, AssistantSet assistants, Object data)
void addFromEntity(Object entity, boolean deep, AssistantSet assistants, Object data)
Here is the call graph for this function:

◆ addFromEntity()

void org.turro.assistant.ElephantAssistant.addFromEntity ( Object  entity,
boolean  deep,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 52 of file ElephantAssistant.java.

52  {
53  if(entity instanceof Poll) {
54  Poll poll = (Poll) entity;
55  assistants.addSubject(poll.getTitle());
56  for(PollVote pv : poll.getVotes()) {
57  assistants.addContact(pv.getContact(), null);
58  }
59  }
60  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFromEntityData()

void org.turro.assistant.ElephantAssistant.addFromEntityData ( Object  entity,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 69 of file ElephantAssistant.java.

69  {
70  // noting
71  }
Here is the caller graph for this function:

◆ addFromEntityPath()

void org.turro.assistant.ElephantAssistant.addFromEntityPath ( String  entityPath,
boolean  deep,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 46 of file ElephantAssistant.java.

46  {
47  Object entity = Entities.getController(entityPath).getEntity();
48  addFromEntity(entity, deep, assistants, data);
49  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFromEntityPathData()

void org.turro.assistant.ElephantAssistant.addFromEntityPathData ( String  entityPath,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 63 of file ElephantAssistant.java.

63  {
64  Object entity = Entities.getController(entityPath).getEntity();
65  addFromEntityData(entity, assistants, data);
66  }
void addFromEntityData(Object entity, AssistantSet assistants, Object data)
Here is the call graph for this function:

◆ getParticiped()

List<String> org.turro.assistant.ElephantAssistant.getParticiped ( IContact  contact)

Implements org.turro.assistant.IAssistant.

Definition at line 74 of file ElephantAssistant.java.

74  {
75  return Collections.EMPTY_LIST;
76  }

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