BrightSide Workbench Full Report + Source Code
org.turro.dossier.zul.issue.IssueEdit Class Reference
Inheritance diagram for org.turro.dossier.zul.issue.IssueEdit:
Collaboration diagram for org.turro.dossier.zul.issue.IssueEdit:

Public Member Functions

 IssueEdit () throws InterruptedException
 
 IssueEdit (String title, String border, boolean closable) throws InterruptedException
 
Changes getChanges ()
 
void doAction (String action)
 
String getLeaveAsLabel ()
 
boolean getCanStart ()
 
boolean getCanMarkAsIncomplete ()
 
boolean getCanFreeze ()
 
boolean getCanResolve ()
 
boolean getCanReopen ()
 
boolean getCanVerify ()
 
boolean getCanClose ()
 
boolean getCanCheckClose ()
 
boolean isParticipant ()
 
boolean isReporter ()
 
boolean isResponsible ()
 
boolean isQA ()
 
boolean isAssistant ()
 
boolean hasQA ()
 
void setIssueDossier (Dossier newValue)
 
void setIssueDescription (String newValue)
 
void setIssueVersion (DossierVersion newValue)
 
void setIssuePublishable (boolean newValue)
 
void setIssueType (String newValue)
 
void setIssueResolution (String newValue)
 
void setIssuePriority (String newValue)
 
void setIssueStartDate (Date newValue)
 
void setIssueDelivery (Date newValue)
 
void setIssueControlDate (Date newValue)
 
void setIssueComment (String newValue)
 
void setIssuePrevExpenses (BigDecimal newValue)
 
void setIssuePrevHours (BigDecimal newValue)
 
void setIssuePrevPrice (BigDecimal newValue)
 
void setIssueExpenses (BigDecimal newValue)
 
void setIssueHours (BigDecimal newValue)
 
void setIssuePrice (BigDecimal newValue)
 
void setIssueDuplicated (Issue duplicated)
 
void setCloseIssue (boolean value)
 
void setCancelEmail (boolean value)
 
- Public Member Functions inherited from org.turro.elephant.zkoss.ModalWindow
 ModalWindow (String title, String border, boolean closable)
 
 ModalWindow ()
 
int getResult ()
 
void setResult (int result)
 
Object getResultValue ()
 
void setResultValue (Object resultValue)
 
void show (Page page, Command command)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.elephant.zkoss.ModalWindow
int result
 
Object resultValue
 

Detailed Description

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

Definition at line 44 of file IssueEdit.java.

Constructor & Destructor Documentation

◆ IssueEdit() [1/2]

org.turro.dossier.zul.issue.IssueEdit.IssueEdit ( ) throws InterruptedException

Definition at line 53 of file IssueEdit.java.

53  {
54  super();
55  issueCat = new ChangeCategory(2, I_.get("Changes"));
56  commentCat = new ChangeCategory(5, I_.get("Comment"));
57  }
static String get(String msg)
Definition: I_.java:41
Here is the call graph for this function:

◆ IssueEdit() [2/2]

org.turro.dossier.zul.issue.IssueEdit.IssueEdit ( String  title,
String  border,
boolean  closable 
) throws InterruptedException

Definition at line 59 of file IssueEdit.java.

59  {
60  super(title, border, closable);
61  issueCat = new ChangeCategory(2, I_.get("Changes"));
62  commentCat = new ChangeCategory(5, I_.get("Comment"));
63  }
Here is the call graph for this function:

Member Function Documentation

◆ doAction()

void org.turro.dossier.zul.issue.IssueEdit.doAction ( String  action)

Definition at line 69 of file IssueEdit.java.

69  {
70  if("1".equals(action)) {
71  saveWithStatus(getIssue().getStatus());
72  } else if("2".equals(action)) {
73  saveWithStatus(IssueStatus.STATUS_STARTED);
74  } else if("3".equals(action)) {
75  saveWithStatus(IssueStatus.STATUS_INCOMPLETE);
76  } else if("4".equals(action)) {
77  if(issue.getResolution().equals(IssueResolution.RESOLUTION_DUPLICATED) && issue.getDuplicated() == null) {
78  // throwm message exception
79  } else {
80  saveWithStatus(IssueStatus.STATUS_RESOLVED);
81  }
82  } else if("5".equals(action)) {
83  saveWithStatus(IssueStatus.STATUS_REOPENED);
84  } else if("6".equals(action)) {
85  saveWithStatus(IssueStatus.STATUS_REUNION);
86  } else if("7".equals(action)) {
87  saveWithStatus(IssueStatus.STATUS_FROZEN);
88  } else if("8".equals(action)) {
89  saveWithStatus(IssueStatus.STATUS_VERIFIED);
90  } else if("9".equals(action)) {
91  saveWithStatus(IssueStatus.STATUS_CLOSED);
92  }
93  }
IssueResolution getResolution()
Definition: Issue.java:226
Here is the call graph for this function:

◆ getCanCheckClose()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanCheckClose ( )

Definition at line 142 of file IssueEdit.java.

Here is the call graph for this function:

◆ getCanClose()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanClose ( )

Definition at line 135 of file IssueEdit.java.

135  {
136  return (EnumSet.of(IssueStatus.STATUS_RESOLVED)
137  .contains(getIssue().getStatus()) && !hasQA() && (isParticipant())) ||
138  (EnumSet.of(IssueStatus.STATUS_VERIFIED)
139  .contains(getIssue().getStatus()) && hasQA() && (isParticipant()));
140  }
Here is the call graph for this function:

◆ getCanFreeze()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanFreeze ( )

Definition at line 111 of file IssueEdit.java.

111  {
112  return EnumSet.of(IssueStatus.STATUS_NEW, IssueStatus.STATUS_STARTED,
114  .contains(getIssue().getStatus()) && (isResponsible() || isReporter());
115  }
Here is the call graph for this function:

◆ getCanMarkAsIncomplete()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanMarkAsIncomplete ( )

Definition at line 105 of file IssueEdit.java.

105  {
106  return EnumSet.of(IssueStatus.STATUS_NEW, IssueStatus.STATUS_STARTED,
108  .contains(getIssue().getStatus()) && isResponsible();
109  }
Here is the call graph for this function:

◆ getCanReopen()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanReopen ( )

Definition at line 123 of file IssueEdit.java.

123  {
127  .contains(getIssue().getStatus()) && isParticipant();
128  }
Here is the call graph for this function:

◆ getCanResolve()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanResolve ( )

Definition at line 117 of file IssueEdit.java.

117  {
120  .contains(getIssue().getStatus()) && isResponsible();
121  }
Here is the call graph for this function:

◆ getCanStart()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanStart ( )

Definition at line 100 of file IssueEdit.java.

100  {
102  .contains(getIssue().getStatus()) && isResponsible();
103  }
Here is the call graph for this function:

◆ getCanVerify()

boolean org.turro.dossier.zul.issue.IssueEdit.getCanVerify ( )

Definition at line 130 of file IssueEdit.java.

130  {
131  return EnumSet.of(IssueStatus.STATUS_RESOLVED)
132  .contains(getIssue().getStatus()) && hasQA() && isQA();
133  }
Here is the call graph for this function:

◆ getChanges()

Changes org.turro.dossier.zul.issue.IssueEdit.getChanges ( )

Definition at line 65 of file IssueEdit.java.

65  {
66  return changesManager;
67  }

◆ getLeaveAsLabel()

String org.turro.dossier.zul.issue.IssueEdit.getLeaveAsLabel ( )

Definition at line 95 of file IssueEdit.java.

95  {
96  return I_.get("Leave issue as") + ": " + I_.byKey(getIssue().getStatus().toString()) +
97  (getIssue().getStatus().isFinished() ? " " + I_.byKey(getIssue().getResolution().toString()) : "");
98  }
static String byKey(String key)
Definition: I_.java:83
Here is the call graph for this function:

◆ hasQA()

boolean org.turro.dossier.zul.issue.IssueEdit.hasQA ( )

Definition at line 168 of file IssueEdit.java.

168  {
169  return getWrapper().hasQA();
170  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAssistant()

boolean org.turro.dossier.zul.issue.IssueEdit.isAssistant ( )

Definition at line 164 of file IssueEdit.java.

164  {
165  return getWrapper().isAssistant();
166  }
Here is the call graph for this function:

◆ isParticipant()

boolean org.turro.dossier.zul.issue.IssueEdit.isParticipant ( )

Definition at line 148 of file IssueEdit.java.

148  {
149  return getWrapper().isParticipant();
150  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isQA()

boolean org.turro.dossier.zul.issue.IssueEdit.isQA ( )

Definition at line 160 of file IssueEdit.java.

160  {
161  return getWrapper().isQA();
162  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isReporter()

boolean org.turro.dossier.zul.issue.IssueEdit.isReporter ( )

Definition at line 152 of file IssueEdit.java.

152  {
153  return getWrapper().isReporter();
154  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isResponsible()

boolean org.turro.dossier.zul.issue.IssueEdit.isResponsible ( )

Definition at line 156 of file IssueEdit.java.

156  {
157  return getWrapper().isResponsible();
158  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCancelEmail()

void org.turro.dossier.zul.issue.IssueEdit.setCancelEmail ( boolean  value)

Definition at line 274 of file IssueEdit.java.

274  {
275  cancelEmail = value;
276  }

◆ setCloseIssue()

void org.turro.dossier.zul.issue.IssueEdit.setCloseIssue ( boolean  value)

Definition at line 270 of file IssueEdit.java.

270  {
271  closeIssue = value;
272  }

◆ setIssueComment()

void org.turro.dossier.zul.issue.IssueEdit.setIssueComment ( String  newValue)

Definition at line 226 of file IssueEdit.java.

226  {
227  changesManager.addComment(commentCat, newValue);
228  }

◆ setIssueControlDate()

void org.turro.dossier.zul.issue.IssueEdit.setIssueControlDate ( Date  newValue)

Definition at line 221 of file IssueEdit.java.

221  {
222  changesManager.addChange(new DateChange(issueCat, I_.get("Control"), getIssue().getControlDate(), newValue));
223  getIssue().setControlDate(newValue);
224  }
void setControlDate(Date controlDate)
Definition: Issue.java:138
Here is the call graph for this function:

◆ setIssueDelivery()

void org.turro.dossier.zul.issue.IssueEdit.setIssueDelivery ( Date  newValue)

Definition at line 216 of file IssueEdit.java.

216  {
217  changesManager.addChange(new DateChange(issueCat, I_.get("Delivery"), getIssue().getDelivery(), newValue));
218  getIssue().setDelivery(newValue);
219  }
void setDelivery(Date delivery)
Definition: Issue.java:146
Here is the call graph for this function:

◆ setIssueDescription()

void org.turro.dossier.zul.issue.IssueEdit.setIssueDescription ( String  newValue)

Definition at line 179 of file IssueEdit.java.

179  {
180  changesManager.addChange(new StringChange(issueCat, I_.get("Description"), getIssue().getDescription(), newValue));
181  getIssue().setDescription(newValue);
182  }
void setDescription(String description)
Definition: Issue.java:154
Here is the call graph for this function:

◆ setIssueDossier()

void org.turro.dossier.zul.issue.IssueEdit.setIssueDossier ( Dossier  newValue)

Definition at line 172 of file IssueEdit.java.

172  {
173  changesManager.addChange(new StringChange(issueCat, I_.get("Dossier"),
174  getIssue().getDossier() != null ? getIssue().getDossier().getDescription() : "",
175  newValue != null ? newValue.getDescription() : ""));
176  getIssue().setDossier(newValue);
177  }
void setDossier(Dossier dossier)
Definition: Issue.java:162
Here is the call graph for this function:

◆ setIssueDuplicated()

void org.turro.dossier.zul.issue.IssueEdit.setIssueDuplicated ( Issue  duplicated)

Definition at line 260 of file IssueEdit.java.

260  {
261  if(issue.equals(duplicated)) {
262  duplicated = null;
263  }
264  changesManager.addChange(new StringChange(issueCat, I_.get("Duplicated"),
265  issue.getDuplicated() != null ? issue.getDuplicated().getDescription() : "",
266  duplicated != null ? duplicated.getDescription() : ""));
267  issue.setDuplicated(duplicated);
268  }
void setDuplicated(Issue duplicated)
Definition: Issue.java:170
Here is the call graph for this function:

◆ setIssueExpenses()

void org.turro.dossier.zul.issue.IssueEdit.setIssueExpenses ( BigDecimal  newValue)

Definition at line 245 of file IssueEdit.java.

245  {
246  changesManager.addChange(new UniqueNumber(issueCat, I_.get("Expenses"), newValue));
247  expenses = newValue.doubleValue();
248  }
Here is the call graph for this function:

◆ setIssueHours()

void org.turro.dossier.zul.issue.IssueEdit.setIssueHours ( BigDecimal  newValue)

Definition at line 250 of file IssueEdit.java.

250  {
251  changesManager.addChange(new UniqueNumber(issueCat, I_.get("Hours"), newValue));
252  hours = newValue.doubleValue();
253  }
Here is the call graph for this function:

◆ setIssuePrevExpenses()

void org.turro.dossier.zul.issue.IssueEdit.setIssuePrevExpenses ( BigDecimal  newValue)

Definition at line 230 of file IssueEdit.java.

230  {
231  changesManager.addChange(new NumberChange(issueCat, I_.get("Prevision") + "/" + I_.get("Expenses"), getIssue().getExpenses(), newValue));
232  getIssue().setExpenses(newValue.doubleValue());
233  }
void setExpenses(double expenses)
Definition: Issue.java:303
Here is the call graph for this function:

◆ setIssuePrevHours()

void org.turro.dossier.zul.issue.IssueEdit.setIssuePrevHours ( BigDecimal  newValue)

Definition at line 235 of file IssueEdit.java.

235  {
236  changesManager.addChange(new NumberChange(issueCat, I_.get("Prevision") + "/" + I_.get("Hours"), getIssue().getHours(), newValue));
237  getIssue().setHours(newValue.doubleValue());
238  }
void setHours(double hours)
Definition: Issue.java:311
Here is the call graph for this function:

◆ setIssuePrevPrice()

void org.turro.dossier.zul.issue.IssueEdit.setIssuePrevPrice ( BigDecimal  newValue)

Definition at line 240 of file IssueEdit.java.

240  {
241  changesManager.addChange(new NumberChange(issueCat, I_.get("Prevision") + "/" + I_.get("Price"), getIssue().getPrice(), newValue));
242  getIssue().setPrice(newValue.doubleValue());
243  }
void setPrice(double price)
Definition: Issue.java:319
Here is the call graph for this function:

◆ setIssuePrice()

void org.turro.dossier.zul.issue.IssueEdit.setIssuePrice ( BigDecimal  newValue)

Definition at line 255 of file IssueEdit.java.

255  {
256  changesManager.addChange(new UniqueNumber(issueCat, I_.get("Price"), newValue));
257  price = newValue.doubleValue();
258  }
Here is the call graph for this function:

◆ setIssuePriority()

void org.turro.dossier.zul.issue.IssueEdit.setIssuePriority ( String  newValue)

Definition at line 206 of file IssueEdit.java.

206  {
207  changesManager.addChange(new EnumChange(issueCat, I_.get("Priority"), getIssue().getPriority(), IssuePriority.valueOf(newValue)));
208  getIssue().setPriority(IssuePriority.valueOf(newValue));
209  }
void setPriority(IssuePriority priority)
Definition: Issue.java:210
Here is the call graph for this function:

◆ setIssuePublishable()

void org.turro.dossier.zul.issue.IssueEdit.setIssuePublishable ( boolean  newValue)

Definition at line 191 of file IssueEdit.java.

191  {
192  changesManager.addChange(new BooleanChange(issueCat, I_.get("Publishable"), getIssue().isPublishable(), newValue));
193  getIssue().setPublishable(newValue);
194  }
void setPublishable(boolean publishable)
Definition: Issue.java:218
Here is the call graph for this function:

◆ setIssueResolution()

void org.turro.dossier.zul.issue.IssueEdit.setIssueResolution ( String  newValue)

Definition at line 201 of file IssueEdit.java.

201  {
202  changesManager.addChange(new EnumChange(issueCat, I_.get("Resolution"), getIssue().getResolution(), IssueResolution.valueOf(newValue)));
203  getIssue().setResolution(IssueResolution.valueOf(newValue));
204  }
void setResolution(IssueResolution resolution)
Definition: Issue.java:230
Here is the call graph for this function:

◆ setIssueStartDate()

void org.turro.dossier.zul.issue.IssueEdit.setIssueStartDate ( Date  newValue)

Definition at line 211 of file IssueEdit.java.

211  {
212  changesManager.addChange(new DateChange(issueCat, I_.get("Start date"), getIssue().getStartDate(), newValue));
213  getIssue().setStartDate(newValue);
214  }
void setStartDate(Date startDate)
Definition: Issue.java:327
Here is the call graph for this function:

◆ setIssueType()

void org.turro.dossier.zul.issue.IssueEdit.setIssueType ( String  newValue)

Definition at line 196 of file IssueEdit.java.

196  {
197  changesManager.addChange(new EnumChange(issueCat, I_.get("Type"), getIssue().getType(), IssueType.valueOf(newValue)));
198  getIssue().setType(IssueType.valueOf(newValue));
199  }
void setType(IssueType type)
Definition: Issue.java:295
Here is the call graph for this function:

◆ setIssueVersion()

void org.turro.dossier.zul.issue.IssueEdit.setIssueVersion ( DossierVersion  newValue)

Definition at line 184 of file IssueEdit.java.

184  {
185  changesManager.addChange(new StringChange(issueCat, I_.get("Version"),
186  getIssue().getVersion() == null ? null : getIssue().getVersion().getVersionId(),
187  newValue == null ? null : newValue.getVersionId()));
188  getIssue().setVersion(newValue);
189  }
void setVersion(DossierVersion version)
Definition: Issue.java:335
Here is the call graph for this function:

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