19 package org.turro.crm.command;
21 import java.util.Collection;
22 import java.util.List;
23 import org.turro.string.Strings;
24 import org.turro.action.IMyContact;
25 import org.turro.annotation.MyContact;
26 import org.turro.auth.Authentication;
27 import org.turro.contacts.util.DefaultContact;
28 import org.turro.crm.db.CrmPU;
29 import org.turro.elephant.context.IConstructor;
30 import org.turro.elephant.db.WhereClause;
31 import org.turro.i18n.I_;
32 import org.turro.jpa.Dao;
33 import org.turro.plugin.contacts.ContactSortedSet;
34 import org.turro.plugin.contacts.IContact;
46 if(!Strings.isBlank(search)) {
50 for(String c : (List<String>) dao.getResultList(createCriteria(user, search))) {
67 wc.
addClause(
"select distinct c.idContact from Customer as c");
69 wc.
addClause(
"where o.vendor.idContact = :idUser");
static IContact getIContact()
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void addNamedValue(String name, Object value)
static I18nApiWrapper api()