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

Public Member Functions

void addContacts (Collection< IContact > contacts)
 
void addContact (IContact contact, Object relationEntity)
 
void addUser (String name, String email, Object relationEntity)
 
void addSubject (String value)
 
String getSubject ()
 
boolean exists (IContact contact)
 

Detailed Description

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

Definition at line 32 of file AssistantSet.java.

Member Function Documentation

◆ addContact()

void org.turro.assistant.AssistantSet.addContact ( IContact  contact,
Object  relationEntity 
)

Definition at line 42 of file AssistantSet.java.

42  {
43  if(contact != null && contact.isWebUser()) {
44  add(new Assistant(contact.getName(), contact.getConnector(IUser.CONNECTOR_EMAIL), contact, relationEntity));
45  }
46  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addContacts()

void org.turro.assistant.AssistantSet.addContacts ( Collection< IContact contacts)

Definition at line 36 of file AssistantSet.java.

36  {
37  for(IContact c : contacts) {
38  addContact(c, null);
39  }
40  }
void addContact(IContact contact, Object relationEntity)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addSubject()

void org.turro.assistant.AssistantSet.addSubject ( String  value)

Definition at line 54 of file AssistantSet.java.

54  {
55  subject.add(value);
56  }
Here is the caller graph for this function:

◆ addUser()

void org.turro.assistant.AssistantSet.addUser ( String  name,
String  email,
Object  relationEntity 
)

Definition at line 48 of file AssistantSet.java.

48  {
49  if(!Strings.isBlank(email)) {
50  add(new Assistant(Strings.isBlank(name, email), email, null, relationEntity));
51  }
52  }
Here is the caller graph for this function:

◆ exists()

boolean org.turro.assistant.AssistantSet.exists ( IContact  contact)

Definition at line 67 of file AssistantSet.java.

67  {
68  return contains(new Assistant(contact.getName(), contact.getConnector(IUser.CONNECTOR_EMAIL), contact, null));
69  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSubject()

String org.turro.assistant.AssistantSet.getSubject ( )

Definition at line 58 of file AssistantSet.java.

58  {
59  PhraseBuilder pb = new PhraseBuilder();
60  for(String s : subject) {
61  pb.addWord(s);
62  pb.addPendingSeparator(",");
63  }
64  return pb.toString();
65  }

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