◆ getDossierFromText()
String org.turro.dossier.issue.IssueCombobox.getDossierFromText |
( |
String |
text | ) |
|
Definition at line 84 of file IssueCombobox.java.
85 String[] s = text.split(Chars.forward().regexp().spaced().toString());
String getNameFromText(String text)
◆ getIdFromText()
long org.turro.dossier.issue.IssueCombobox.getIdFromText |
( |
String |
text | ) |
|
Definition at line 93 of file IssueCombobox.java.
96 id = Long.valueOf(text);
97 }
catch(Exception ex) {}
◆ getNameFromText()
String org.turro.dossier.issue.IssueCombobox.getNameFromText |
( |
String |
text | ) |
|
Definition at line 75 of file IssueCombobox.java.
76 String[] s = text.split(Chars.forward().regexp().spaced().toString());
◆ getTextFromObject()
String org.turro.dossier.issue.IssueCombobox.getTextFromObject |
( |
Issue |
value | ) |
|
Definition at line 68 of file IssueCombobox.java.
69 return value.getDescription() +
70 (value.getDossier() !=
null ?
71 Chars.forward().spaced() + value.getDossier().getDescription() :
◆ populateList()
void org.turro.dossier.issue.IssueCombobox.populateList |
( |
String |
value, |
|
|
LinkedList |
list, |
|
|
int |
nRows |
|
) |
| |
Reimplemented from org.turro.zkoss.input.GenericCombobox< V >.
Definition at line 38 of file IssueCombobox.java.
39 boolean all = Application.getApplication().isInRole(
"issue:all");
40 Dao dao =
new DossierPU();
42 WhereClause wc =
new WhereClause();
43 wc.addClause(
"select distinct issue from Issue as issue");
45 wc.addClause(
"where issue.id = :id");
46 wc.addNamedValue(
"id",
id);
48 wc.addClause(
"where 1=1");
49 if(!Strings.isBlank(value)) {
50 wc.addClause(
"and (");
52 wc.addLikeFields(
new String[] {
"issue.description"},
getNameFromText(value));
54 wc.addLikeFields(
new String[] {
"issue.dossier.description"},
getDossierFromText(value));
58 wc.addClause(
"order by issue.description");
60 for(Object o : dao.getResultList(wc, nRows)) {
61 if(all ||
new IssueWrapper((Issue) (o)).isFullParticipant()) {
String getDossierFromText(String text)
long getIdFromText(String text)
The documentation for this class was generated from the following file: