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

Public Member Functions

boolean isDirect ()
 
List< IContactRelationgetRelations (String idContact)
 
List< IContactRelationgetBusiness (String idContact)
 
List< IContactRelationgetWorkers (String idContact)
 

Detailed Description

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

Definition at line 35 of file ContactRelationSolver.java.

Member Function Documentation

◆ getBusiness()

List<IContactRelation> org.turro.contacts.relation.ContactRelationSolver.getBusiness ( String  idContact)

Implements org.turro.plugin.contacts.IContactRelationSolver.

Definition at line 51 of file ContactRelationSolver.java.

51  {
52  List<IContactRelation> list = new ArrayList<>();
53  for(BusinessRelation br : getBusinessRelations(idContact)) {
54  if(!br.isEmpty()) list.add(new ContactRelationAdapter(true, br));
55  }
56  return list;
57  }
Here is the caller graph for this function:

◆ getRelations()

List<IContactRelation> org.turro.contacts.relation.ContactRelationSolver.getRelations ( String  idContact)

Implements org.turro.plugin.contacts.IContactRelationSolver.

Definition at line 43 of file ContactRelationSolver.java.

43  {
44  List<IContactRelation> list = new ArrayList<>();
45  list.addAll(getBusiness(idContact));
46  list.addAll(getWorkers(idContact));
47  return list;
48  }
List< IContactRelation > getWorkers(String idContact)
List< IContactRelation > getBusiness(String idContact)
Here is the call graph for this function:

◆ getWorkers()

List<IContactRelation> org.turro.contacts.relation.ContactRelationSolver.getWorkers ( String  idContact)

Implements org.turro.plugin.contacts.IContactRelationSolver.

Definition at line 60 of file ContactRelationSolver.java.

60  {
61  List<IContactRelation> list = new ArrayList<>();
62  for(BusinessRelation br : getWorkerRelations(idContact)) {
63  if(!br.isEmpty()) list.add(new ContactRelationAdapter(false, br));
64  }
65  return list;
66  }
Here is the caller graph for this function:

◆ isDirect()

boolean org.turro.contacts.relation.ContactRelationSolver.isDirect ( )

Implements org.turro.plugin.contacts.IContactRelationSolver.

Definition at line 38 of file ContactRelationSolver.java.

38  {
39  return true;
40  }

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