- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 47 of file IssueWrapper.java.
◆ IssueWrapper() [1/2]
org.turro.dossier.issue.IssueWrapper.IssueWrapper |
( |
Issue |
issue | ) |
|
Definition at line 54 of file IssueWrapper.java.
56 this.contact = Authentication.getIContact();
◆ IssueWrapper() [2/2]
org.turro.dossier.issue.IssueWrapper.IssueWrapper |
( |
Issue |
issue, |
|
|
IContact |
contact |
|
) |
| |
◆ canStartBySources()
boolean org.turro.dossier.issue.IssueWrapper.canStartBySources |
( |
| ) |
|
◆ checkPendingRevision()
static void org.turro.dossier.issue.IssueWrapper.checkPendingRevision |
( |
Issue |
issue | ) |
|
|
static |
Definition at line 557 of file IssueWrapper.java.
569 wc.
addClause(
"update IssueParticipant ip");
570 wc.
addClause(
"set pendingRevision = true");
573 iw.getDao().executeUpdate(wc);
580 wc.
addClause(
"update IssueParticipant ip");
581 wc.
addClause(
"set pendingRevision = false");
584 iw.getDao().executeUpdate(wc);
Set< IssueComment > getComments()
Set< IssueParticipant > getParticipants()
IssueWrapper(Issue issue)
void addClause(String clause)
void addNamedValue(String name, Object value)
◆ clearEmpties()
void org.turro.dossier.issue.IssueWrapper.clearEmpties |
( |
| ) |
|
Definition at line 459 of file IssueWrapper.java.
460 Iterator<IssueParticipant> iip =
entity.getParticipants().iterator();
461 while(iip.hasNext()) {
462 if(Strings.isBlank(iip.next().getIdContact())) {
◆ createDao()
Dao org.turro.dossier.issue.IssueWrapper.createDao |
( |
| ) |
|
|
protected |
◆ delete()
boolean org.turro.dossier.issue.IssueWrapper.delete |
( |
| ) |
|
◆ getAlarmImage()
String org.turro.dossier.issue.IssueWrapper.getAlarmImage |
( |
| ) |
|
Definition at line 138 of file IssueWrapper.java.
140 return "/_zul/images/date_surpassed.png";
143 return "/_zul/images/value_surpassed.png";
boolean hasPassedValues()
◆ getAssistantString()
String org.turro.dossier.issue.IssueWrapper.getAssistantString |
( |
| ) |
|
Definition at line 318 of file IssueWrapper.java.
322 result += (Strings.isEmpty(result) ?
"" :
", ") + ip.getName();
◆ getBeginDate()
Date org.turro.dossier.issue.IssueWrapper.getBeginDate |
( |
| ) |
|
◆ getCanCheckClose()
boolean org.turro.dossier.issue.IssueWrapper.getCanCheckClose |
( |
| ) |
|
◆ getCanClose()
boolean org.turro.dossier.issue.IssueWrapper.getCanClose |
( |
| ) |
|
◆ getCanFreeze()
boolean org.turro.dossier.issue.IssueWrapper.getCanFreeze |
( |
| ) |
|
◆ getCanMarkAsIncomplete()
boolean org.turro.dossier.issue.IssueWrapper.getCanMarkAsIncomplete |
( |
| ) |
|
◆ getCanReopen()
boolean org.turro.dossier.issue.IssueWrapper.getCanReopen |
( |
| ) |
|
◆ getCanResolve()
boolean org.turro.dossier.issue.IssueWrapper.getCanResolve |
( |
| ) |
|
◆ getCanShowDossier()
boolean org.turro.dossier.issue.IssueWrapper.getCanShowDossier |
( |
| ) |
|
Definition at line 120 of file IssueWrapper.java.
121 return Application.getApplication().isInRole(
"dossier:show") &&
122 entity.getDossier() !=
null &&
123 new DossierWrapper(
entity.getDossier()).isParticipant();
◆ getCanStart()
boolean org.turro.dossier.issue.IssueWrapper.getCanStart |
( |
| ) |
|
◆ getCanVerify()
boolean org.turro.dossier.issue.IssueWrapper.getCanVerify |
( |
| ) |
|
◆ getControlDate()
Date org.turro.dossier.issue.IssueWrapper.getControlDate |
( |
| ) |
|
◆ getData()
DossierData org.turro.dossier.issue.IssueWrapper.getData |
( |
| ) |
|
Definition at line 207 of file IssueWrapper.java.
208 DossierValues prevision =
new DossierValues();
209 prevision.expenses =
entity.getExpenses();
210 prevision.hours =
entity.getHours();
211 prevision.price =
entity.getPrice();
212 return new DossierData(prevision,
getReality());
DossierValues getReality()
◆ getDetail()
◆ getDossierData()
DossierData org.turro.dossier.issue.IssueWrapper.getDossierData |
( |
| ) |
|
◆ getEndDate()
Date org.turro.dossier.issue.IssueWrapper.getEndDate |
( |
| ) |
|
◆ getIssue()
Issue org.turro.dossier.issue.IssueWrapper.getIssue |
( |
| ) |
|
◆ getKanbanColumn()
int org.turro.dossier.issue.IssueWrapper.getKanbanColumn |
( |
| ) |
|
◆ getLeaveAsLabel()
String org.turro.dossier.issue.IssueWrapper.getLeaveAsLabel |
( |
| ) |
|
Definition at line 501 of file IssueWrapper.java.
503 (
entity.getStatus().isFinished() ?
" " +
I_.
byKey(
entity.getResolution().toString()) :
"");
static String byKey(String key)
static String get(String msg)
◆ getOrderingValue()
String org.turro.dossier.issue.IssueWrapper.getOrderingValue |
( |
| ) |
|
Definition at line 160 of file IssueWrapper.java.
161 StringBuilder result =
new StringBuilder();
181 result.append(
entity.getPriority().getPriority());
182 result.append(
entity.getType().getPriority());
183 result.append(reverse(ObjectString.formatObject(
entity.getModification(), ObjectString.COMPRESSED_DATE_PATTERN,
false)));
184 result.append(
entity.getId());
187 }
catch(Exception ex) {
191 return result.toString();
int getRelevanceOrderByContact()
boolean hasPassedStartDate()
boolean canStartBySources()
static String logMsg(String msg)
◆ getPriorityImage()
String org.turro.dossier.issue.IssueWrapper.getPriorityImage |
( |
| ) |
|
Definition at line 148 of file IssueWrapper.java.
149 int p =
entity.getPriority().getPriority();
151 return "/_zul/images/priority" + p +
".png";
◆ getQAString()
String org.turro.dossier.issue.IssueWrapper.getQAString |
( |
| ) |
|
Definition at line 308 of file IssueWrapper.java.
312 result += (Strings.isEmpty(result) ?
"" :
", ") + ip.getName();
◆ getReality()
DossierValues org.turro.dossier.issue.IssueWrapper.getReality |
( |
| ) |
|
Definition at line 194 of file IssueWrapper.java.
195 if(reality ==
null) {
196 reality =
new DossierValues();
199 reality.
expenses += icomment.getExpenses();
200 reality.hours += icomment.getHours();
201 reality.price += icomment.getPrice();
◆ getRelevanceOrderByContact()
int org.turro.dossier.issue.IssueWrapper.getRelevanceOrderByContact |
( |
| ) |
|
Definition at line 156 of file IssueWrapper.java.
157 return Math.min(getRelevanceByReporter(), Math.min(getRelevanceByResponsible(), getRelevanceByQA()));
◆ getReporterString()
String org.turro.dossier.issue.IssueWrapper.getReporterString |
( |
| ) |
|
Definition at line 298 of file IssueWrapper.java.
302 result += (Strings.isEmpty(result) ?
"" :
", ") + ip.getName();
◆ getResponsibleString()
String org.turro.dossier.issue.IssueWrapper.getResponsibleString |
( |
| ) |
|
Definition at line 288 of file IssueWrapper.java.
292 result += (Strings.isEmpty(result) ?
"" :
", ") + ip.getName();
◆ getSelfLabel()
String org.turro.dossier.issue.IssueWrapper.getSelfLabel |
( |
| ) |
|
◆ getSources()
◆ getTabLabel()
String org.turro.dossier.issue.IssueWrapper.getTabLabel |
( |
| ) |
|
◆ getTargets()
◆ getTimmingImage()
String org.turro.dossier.issue.IssueWrapper.getTimmingImage |
( |
| ) |
|
◆ getTooltiptext()
String org.turro.dossier.issue.IssueWrapper.getTooltiptext |
( |
| ) |
|
◆ getWaitingReason()
List<String> org.turro.dossier.issue.IssueWrapper.getWaitingReason |
( |
| ) |
|
Definition at line 339 of file IssueWrapper.java.
340 List<String> l =
new ArrayList<String>();
341 Date now =
new Date();
342 if(
entity.getStartDate() !=
null) {
343 if(now.before(
entity.getStartDate())) {
347 StringBuffer sb =
new StringBuffer();
349 Issue source = ip.getSource();
static String format(String msg, Object... arguments)
◆ hasAlarm()
boolean org.turro.dossier.issue.IssueWrapper.hasAlarm |
( |
| ) |
|
◆ hasAssistant()
boolean org.turro.dossier.issue.IssueWrapper.hasAssistant |
( |
| ) |
|
◆ hasPassedNow()
boolean org.turro.dossier.issue.IssueWrapper.hasPassedNow |
( |
| ) |
|
Definition at line 262 of file IssueWrapper.java.
263 Date now =
new Date();
264 return (
entity.getControlDate() !=
null && now.after(
entity.getControlDate())) ||
265 (
entity.getDelivery() !=
null && now.after(
entity.getDelivery()));
◆ hasPassedStartDate()
boolean org.turro.dossier.issue.IssueWrapper.hasPassedStartDate |
( |
| ) |
|
◆ hasPassedValues()
boolean org.turro.dossier.issue.IssueWrapper.hasPassedValues |
( |
| ) |
|
◆ hasQA()
boolean org.turro.dossier.issue.IssueWrapper.hasQA |
( |
| ) |
|
◆ hasReporter()
boolean org.turro.dossier.issue.IssueWrapper.hasReporter |
( |
| ) |
|
◆ hasResponsible()
boolean org.turro.dossier.issue.IssueWrapper.hasResponsible |
( |
| ) |
|
◆ isAssistant()
boolean org.turro.dossier.issue.IssueWrapper.isAssistant |
( |
| ) |
|
◆ isFullParticipant()
boolean org.turro.dossier.issue.IssueWrapper.isFullParticipant |
( |
| ) |
|
Definition at line 84 of file IssueWrapper.java.
88 if(dp.getIdContact().equals(contact.
getId()) && dp.isShowAllIssues()) {
◆ isParticipant()
boolean org.turro.dossier.issue.IssueWrapper.isParticipant |
( |
| ) |
|
◆ isQA()
boolean org.turro.dossier.issue.IssueWrapper.isQA |
( |
| ) |
|
◆ isReporter()
boolean org.turro.dossier.issue.IssueWrapper.isReporter |
( |
| ) |
|
◆ isResponsible()
boolean org.turro.dossier.issue.IssueWrapper.isResponsible |
( |
| ) |
|
◆ isUnrelated()
boolean org.turro.dossier.issue.IssueWrapper.isUnrelated |
( |
| ) |
|
◆ setContact()
void org.turro.dossier.issue.IssueWrapper.setContact |
( |
IContact |
contact | ) |
|
◆ setIssue()
void org.turro.dossier.issue.IssueWrapper.setIssue |
( |
Issue |
issue | ) |
|
◆ shouldLog()
boolean org.turro.dossier.issue.IssueWrapper.shouldLog |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: