18 package org.turro.dossier.issue;
20 import java.util.LinkedList;
21 import org.turro.string.Strings;
22 import org.turro.dossier.db.DossierPU;
23 import org.turro.dossier.entity.Issue;
24 import org.turro.elephant.context.Application;
25 import org.turro.elephant.db.WhereClause;
26 import org.turro.jpa.Dao;
27 import org.turro.util.Chars;
28 import org.turro.zkoss.input.GenericCombobox;
38 public void populateList(String value, LinkedList list,
int nRows) {
43 wc.
addClause(
"select distinct issue from Issue as issue");
49 if(!Strings.isBlank(value)) {
58 wc.
addClause(
"order by issue.description");
60 for(Object o : dao.getResultList(wc, nRows)) {
76 String[] s = text.split(Chars.forward().regexp().spaced().toString());
85 String[] s = text.split(Chars.forward().regexp().spaced().toString());
96 id = Long.valueOf(text);
97 }
catch(Exception ex) {}
String getDossierFromText(String text)
void populateList(String value, LinkedList list, int nRows)
long getIdFromText(String text)
String getTextFromObject(Issue value)
String getNameFromText(String text)
boolean isFullParticipant()
boolean isInRole(String role)
static Application getApplication()
void setPrefix(String prefix)
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void addNamedValue(String name, Object value)