19 package org.turro.contacts.model;
21 import java.util.ArrayList;
22 import java.util.List;
23 import org.turro.string.Strings;
24 import org.turro.contacts.Contact;
25 import org.turro.contacts.content.DirectoryType;
26 import org.turro.contacts.profile.Profile;
27 import org.turro.elephant.context.Application;
28 import org.turro.i18n.I_;
29 import org.turro.jpa.Dao;
30 import org.turro.plugin.contacts.ContactRelations;
31 import org.turro.plugin.contacts.IContactRelation;
39 private final Dao dao;
40 private final String contactId;
41 private final boolean open;
43 private List<String> images;
44 private boolean selected;
48 this.contactId = contactId;
62 contact = dao.find(
Contact.class, contactId);
76 images =
new ArrayList<>();
83 if(
getContact().isDeactivated()) images.add(
"cancel");
97 this.selected = selected;
static Locale getUsedLocale()
static String byKey(String key)