19 package org.turro.contacts.relation;
21 import java.util.ArrayList;
22 import java.util.List;
23 import org.turro.contacts.BusinessRelation;
24 import org.turro.contacts.Contact;
25 import org.turro.contacts.db.ContactsPU;
26 import org.turro.plugin.contacts.ElephantRelationSolver;
27 import org.turro.plugin.contacts.IContactRelation;
28 import org.turro.plugin.contacts.IContactRelationSolver;
34 @ElephantRelationSolver
44 List<IContactRelation> list =
new ArrayList<>();
52 List<IContactRelation> list =
new ArrayList<>();
60 public List<IContactRelation>
getWorkers(String idContact) {
61 List<IContactRelation> list =
new ArrayList<>();
68 private Iterable<BusinessRelation> getBusinessRelations(String idContact) {
72 private Iterable<BusinessRelation> getWorkerRelations(String idContact) {
78 private Contact contact;
80 private Contact getContact(String idContact) {
81 if(contact ==
null || !idContact.equals(contact.getId())) {
82 contact =
new ContactsPU().find(Contact.class, idContact);