BrightSide Workbench Full Report + Source Code
org.turro.dossier.zul.issue.SelectByChart Class Reference

Public Member Functions

 SelectByChart (String participant, int type, Area area)
 
IssueResults getResults (IssueResults results)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file SelectByChart.java.

Constructor & Destructor Documentation

◆ SelectByChart()

org.turro.dossier.zul.issue.SelectByChart.SelectByChart ( String  participant,
int  type,
Area  area 
)

Definition at line 38 of file SelectByChart.java.

38  {
39  this.participant = participant;
40  this.type = type;
41  this.area = area;
42  }

Member Function Documentation

◆ getResults()

IssueResults org.turro.dossier.zul.issue.SelectByChart.getResults ( IssueResults  results)

Definition at line 44 of file SelectByChart.java.

44  {
45  if(type == 1) {
46  // Status
47  String statusName = (String) area.getAttribute("category");
48  for(IssueStatus is : IssueStatus.values()) {
49  if(I_.byKey(is.toString()).equals(statusName)) {
50  results.markAll();
51  results.setStatus(EnumSet.of(is));
52  if(participant != null) results.setByParticipantId(participant);
53  break;
54  }
55  }
56  } else if(type == 2) {
57  // Resolution
58  String resolutionName = (String) area.getAttribute("category");
59  for(IssueResolution is : IssueResolution.values()) {
60  if(I_.byKey(is.toString()).equals(resolutionName)) {
61  results.markAll();
62  results.setStatus(EnumSet.of(IssueStatus.STATUS_RESOLVED,
63  IssueStatus.STATUS_VERIFIED, IssueStatus.STATUS_CLOSED));
64  results.setResolutions(EnumSet.of(is));
65  if(participant != null) results.setByParticipantId(participant);
66  break;
67  }
68  }
69  } else if(type == 3) {
70  // Type
71  String typeName = (String) area.getAttribute("category");
72  for(IssueType is : IssueType.values()) {
73  if(I_.byKey(is.toString()).equals(typeName)) {
74  results.markAll();
75  results.setTypes(EnumSet.of(is));
76  if(participant != null) results.setByParticipantId(participant);
77  break;
78  }
79  }
80  }
81 
82  return results;
83  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: