18 package org.turro.contacts.util;
20 import java.util.LinkedList;
21 import java.util.logging.Level;
22 import java.util.logging.Logger;
23 import org.turro.collections.parser.ParserException;
24 import org.turro.action.Contacts;
25 import org.turro.collections.KeyValueMap;
26 import org.turro.contacts.Contact;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.entities.ContactEntities;
29 import org.turro.plugin.contacts.IContact;
30 import org.turro.zkoss.input.GenericCombobox;
31 import org.zkoss.lang.Strings;
40 private boolean onlyUsers;
47 this.onlyUsers = onlyUsers;
72 return contact.
getId();
82 public void populateList(String value, LinkedList list,
int nRows) {
84 KeyValueMap kvm =
new KeyValueMap(!Strings.isBlank(role) ?
"role=" + role :
"");
86 list.addAll(ce.
getEntitites(
"contact", value, nRows, kvm));
87 }
catch (ParserException ex) {
static String logMsg(String msg)