BrightSide Workbench Full Report + Source Code
org.turro.financials.command.FinancialsAssistants Class Reference
Inheritance diagram for org.turro.financials.command.FinancialsAssistants:
Collaboration diagram for org.turro.financials.command.FinancialsAssistants:

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 38 of file FinancialsAssistants.java.

Member Function Documentation

◆ add()

void org.turro.financials.command.FinancialsAssistants.add ( Object  entity,
boolean  deep,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 41 of file FinancialsAssistants.java.

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

◆ addFromEntity()

void org.turro.financials.command.FinancialsAssistants.addFromEntity ( Object  entity,
boolean  deep,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 56 of file FinancialsAssistants.java.

56  {
57  if(entity instanceof Contract) {
58  Contract contract = (Contract) entity;
59  assistants.addSubject(contract.getName());
60  IContact c = contract.getIContractor();
61  if(c != null && c.isWebUser()) {
62  assistants.add(new Assistant(c.getName(), c.getConnector(IUser.CONNECTOR_EMAIL), c, contract));
63  }
64  for(ContractParticipant cp : contract.getParticipants()) {
65  c = cp.getIContact();
66  if(c != null && c.isWebUser()) {
67  assistants.add(new Assistant(cp.getName(), c.getConnector(IUser.CONNECTOR_EMAIL), c, cp));
68  }
69  }
70  }
71  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFromEntityData()

void org.turro.financials.command.FinancialsAssistants.addFromEntityData ( Object  entity,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 80 of file FinancialsAssistants.java.

80  {
81  //TODO: contracts->dossier
82  }
Here is the caller graph for this function:

◆ addFromEntityPath()

void org.turro.financials.command.FinancialsAssistants.addFromEntityPath ( String  entityPath,
boolean  deep,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 50 of file FinancialsAssistants.java.

50  {
51  Object entity = Entities.getController(entityPath).getEntity();
52  addFromEntity(entity, deep, assistants, data);
53  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFromEntityPathData()

void org.turro.financials.command.FinancialsAssistants.addFromEntityPathData ( String  entityPath,
AssistantSet  assistants,
Object  data 
)

Implements org.turro.assistant.IAssistant.

Definition at line 74 of file FinancialsAssistants.java.

74  {
75  Object entity = Entities.getController(entityPath).getEntity();
76  addFromEntityData(entity, assistants, data);
77  }
void addFromEntityData(Object entity, AssistantSet assistants, Object data)
Here is the call graph for this function:

◆ getParticiped()

List<String> org.turro.financials.command.FinancialsAssistants.getParticiped ( IContact  contact)

Implements org.turro.assistant.IAssistant.

Definition at line 85 of file FinancialsAssistants.java.

85  {
86  return Collections.EMPTY_LIST;
87  }

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