- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 38 of file IssueResults.java.
◆ IssueResults()
org.turro.dossier.search.IssueResults.IssueResults |
( |
| ) |
|
◆ addClause()
void org.turro.dossier.search.IssueResults.addClause |
( |
WhereClause |
wc | ) |
|
|
protected |
◆ addCriteria()
void org.turro.dossier.search.IssueResults.addCriteria |
( |
WhereClause |
wc | ) |
|
Definition at line 154 of file IssueResults.java.
155 boolean asParticipant =
161 if(Strings.isEmpty(issueValue) || (!asParticipant && !app.
isInRole(
"issue:all"))) {
166 if(byParticipant ==
null) {
167 byParticipant = Authentication.getIContact();
172 id = Long.valueOf(issueValue);
178 }
catch(Exception ex) {}
183 }, (issueValue ==
null ?
"" : issueValue.replaceAll(
"\\*",
"%")));
191 wc.
addClause(
"and (issue.startDate >= :startDate or issue.startDate is null)");
195 if(asParticipant && !(ckOthers && app.
isInRole(
"issue:all"))) {
199 if(roles.contains(ii)) {
203 wc.
addClause(
"participant.idContact = :idContact");
205 wc.
addClause(
"and participant.role = :" + ii.toString());
213 if(byResponsible !=
null && byResponsible.
getId() !=
null) {
215 wc.
addClause(
"participant.idContact = :idRes");
217 wc.
addClause(
"and participant.role = :byRes");
222 if(byReporter !=
null && byReporter.
getId() !=
null) {
224 wc.
addClause(
"participant.idContact = :idInf");
226 wc.
addClause(
"and participant.role = :byInf");
231 if(byQA !=
null && byQA.
getId() !=
null) {
233 wc.
addClause(
"participant.idContact = :idQA");
235 wc.
addClause(
"and participant.role = :byQA");
243 if(status.contains(ii)) {
246 wc.
addClause(
"issue.status = :" + ii.toString());
255 if(resolutions.contains(ii)) {
258 wc.
addClause(
"issue.resolution = :" + ii.toString());
267 if(types.contains(ii)) {
270 wc.
addClause(
"issue.type = :" + ii.toString());
276 if(subject !=
null) {
277 wc.
addClause(
"and exists ( select subject from Participant as subject");
278 wc.
addClause(
"where subject.dossier = issue.dossier");
279 wc.
addClause(
"and subject.idContact = :idSubject");
281 wc.
addClause(
"and subject.role = :roleSubject )");
285 if(dossier !=
null) {
286 wc.
addClause(
"and issue.dossier = :dossier");
288 }
else if(dossierId !=
null && dossierId > 0) {
289 wc.
addClause(
"and issue.dossier.id = :dossierId");
292 wc.
addClause(
"and issue.dossier.status = :dstatus");
296 if(category !=
null) {
297 wc.
addClause(
"and (issue.dossier.category.fullDescription = :decat");
299 wc.
addClause(
"or issue.dossier.category.fullDescription like :dlcat)");
String getFullDescription()
boolean isInRole(String role)
void setPrefix(String prefix)
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void addNamedValue(String name, Object value)
◆ getByParticipant()
IContact org.turro.dossier.search.IssueResults.getByParticipant |
( |
| ) |
|
◆ getByQA()
IContact org.turro.dossier.search.IssueResults.getByQA |
( |
| ) |
|
◆ getByReporter()
IContact org.turro.dossier.search.IssueResults.getByReporter |
( |
| ) |
|
◆ getByResponsible()
IContact org.turro.dossier.search.IssueResults.getByResponsible |
( |
| ) |
|
◆ getCategory()
Category org.turro.dossier.search.IssueResults.getCategory |
( |
| ) |
|
◆ getDossier()
Dossier org.turro.dossier.search.IssueResults.getDossier |
( |
| ) |
|
◆ getDossierId()
Long org.turro.dossier.search.IssueResults.getDossierId |
( |
| ) |
|
◆ getIssueCount()
long org.turro.dossier.search.IssueResults.getIssueCount |
( |
| ) |
|
Definition at line 79 of file IssueResults.java.
82 wc.
addClause(
"select count(distinct issue) from Issue as issue");
83 wc.
addClause(
"left outer join issue.participants participant");
84 wc.
addClause(
"left outer join issue.comments comment");
void addCriteria(WhereClause wc)
Object getSingleResult(WhereClause wc)
◆ getIssueList()
java.util.List<IssueWrapper> org.turro.dossier.search.IssueResults.getIssueList |
( |
| ) |
|
Definition at line 90 of file IssueResults.java.
93 wc.
addClause(
"select distinct issue from Issue as issue");
94 wc.
addClause(
"left outer join issue.participants participant");
95 wc.
addClause(
"left outer join issue.comments comment");
99 return new ArrayList(
new IssueSet(dao.getResultList(wc), ckStartPosible, byParticipant));
void addClause(WhereClause wc)
◆ getIssueValue()
String org.turro.dossier.search.IssueResults.getIssueValue |
( |
| ) |
|
◆ getResolutions()
Set<IssueResolution> org.turro.dossier.search.IssueResults.getResolutions |
( |
| ) |
|
◆ getRoles()
◆ getStatus()
Set<IssueStatus> org.turro.dossier.search.IssueResults.getStatus |
( |
| ) |
|
◆ getSubject()
IContact org.turro.dossier.search.IssueResults.getSubject |
( |
| ) |
|
◆ getTypes()
Set<IssueType> org.turro.dossier.search.IssueResults.getTypes |
( |
| ) |
|
◆ isCkOthers()
boolean org.turro.dossier.search.IssueResults.isCkOthers |
( |
| ) |
|
◆ isCkStartPosible()
boolean org.turro.dossier.search.IssueResults.isCkStartPosible |
( |
| ) |
|
◆ markAll()
void org.turro.dossier.search.IssueResults.markAll |
( |
| ) |
|
◆ setApplication()
void org.turro.dossier.search.IssueResults.setApplication |
( |
Application |
app | ) |
|
◆ setByParticipant()
void org.turro.dossier.search.IssueResults.setByParticipant |
( |
IContact |
byParticipant | ) |
|
◆ setByParticipantId()
void org.turro.dossier.search.IssueResults.setByParticipantId |
( |
String |
id | ) |
|
◆ setByQA()
void org.turro.dossier.search.IssueResults.setByQA |
( |
IContact |
byQA | ) |
|
◆ setByReporter()
void org.turro.dossier.search.IssueResults.setByReporter |
( |
IContact |
byReporter | ) |
|
◆ setByResponsible()
void org.turro.dossier.search.IssueResults.setByResponsible |
( |
IContact |
byResponsible | ) |
|
◆ setCategory()
void org.turro.dossier.search.IssueResults.setCategory |
( |
Category |
category | ) |
|
◆ setCkOthers()
void org.turro.dossier.search.IssueResults.setCkOthers |
( |
boolean |
ckOthers | ) |
|
◆ setCkStartPosible()
void org.turro.dossier.search.IssueResults.setCkStartPosible |
( |
boolean |
ckStartPosible | ) |
|
◆ setDossier()
void org.turro.dossier.search.IssueResults.setDossier |
( |
Dossier |
dossier | ) |
|
◆ setDossierId()
void org.turro.dossier.search.IssueResults.setDossierId |
( |
Long |
dossierId | ) |
|
◆ setIssueValue()
void org.turro.dossier.search.IssueResults.setIssueValue |
( |
String |
issueValue | ) |
|
◆ setResolutions()
void org.turro.dossier.search.IssueResults.setResolutions |
( |
Set< IssueResolution > |
resolutions | ) |
|
◆ setRoles()
◆ setStatus()
void org.turro.dossier.search.IssueResults.setStatus |
( |
Set< IssueStatus > |
status | ) |
|
◆ setSubject()
void org.turro.dossier.search.IssueResults.setSubject |
( |
IContact |
subject | ) |
|
◆ setType()
void org.turro.dossier.search.IssueResults.setType |
( |
IssueType |
type | ) |
|
◆ setTypes()
void org.turro.dossier.search.IssueResults.setTypes |
( |
Set< IssueType > |
types | ) |
|
The documentation for this class was generated from the following file: