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

Public Member Functions

void addRelation (String business, String contact, String relation)
 
void addStrongRelation (String business, String contact, String relation)
 

Detailed Description

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

Definition at line 32 of file RelationSet.java.

Member Function Documentation

◆ addRelation()

void org.turro.contacts.util.RelationSet.addRelation ( String  business,
String  contact,
String  relation 
)

Definition at line 36 of file RelationSet.java.

36  {
37  BusinessRelation r = new BusinessRelation();
38  r.setContact(dao.find(Contact.class, contact));
39  r.setBusiness(dao.find(Contact.class, business));
40  r.setRelationType(relation);
41  if(!r.isEmpty()) {
42  add(r);
43  }
44  }
Here is the call graph for this function:

◆ addStrongRelation()

void org.turro.contacts.util.RelationSet.addStrongRelation ( String  business,
String  contact,
String  relation 
)

Definition at line 46 of file RelationSet.java.

46  {
47  BusinessRelation r = new BusinessRelation();
48  r.setContact(dao.find(Contact.class, contact));
49  r.setBusiness(dao.find(Contact.class, business));
50  r.setRelationType(relation);
51  r.setValidated(true);
52  if(!r.isEmpty()) {
53  add(r);
54  }
55  }
Here is the call graph for this function:

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