19 package org.turro.contacts.relation;
21 import java.util.Date;
22 import java.util.List;
23 import java.util.TreeSet;
24 import java.util.stream.Collectors;
25 import org.amic.util.date.Dates;
26 import org.turro.contacts.BusinessRelation;
27 import org.turro.contacts.Contact;
28 import org.turro.contacts.ContactType;
29 import org.turro.contacts.db.ContactsPU;
30 import org.turro.contacts.util.ContactList;
31 import org.turro.jpa.Dao;
32 import org.turro.plugin.contacts.ContactRelations;
33 import org.turro.plugin.contacts.IContactRelation;
39 public class Business extends TreeSet<BusinessRelation> {
42 private final Date now;
45 this.contact = contact;
46 this.now =
new Date();
61 if(cr.getStrong() && cr.asWorker()) {
62 return getDao().find(
Contact.class, cr.getRelatedId());
94 .collect(Collectors.toList());
100 .collect(Collectors.toList());
144 private void load() {
152 private Dao getDao() {