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

Public Member Functions

 IssueWrapper (Issue issue)
 
 IssueWrapper (Issue issue, IContact contact)
 
String getTabLabel ()
 
String getSelfLabel ()
 
String getTooltiptext ()
 
void setContact (IContact contact)
 
boolean isFullParticipant ()
 
boolean isParticipant ()
 
boolean isReporter ()
 
boolean isResponsible ()
 
boolean isQA ()
 
boolean isAssistant ()
 
boolean hasQA ()
 
boolean getCanShowDossier ()
 
Issue getIssue ()
 
void setIssue (Issue issue)
 
String getTimmingImage ()
 
String getAlarmImage ()
 
String getPriorityImage ()
 
int getRelevanceOrderByContact ()
 
String getOrderingValue ()
 
DossierValues getReality ()
 
DossierData getData ()
 
DossierData getDossierData ()
 
boolean isUnrelated ()
 
boolean hasReporter ()
 
boolean hasResponsible ()
 
boolean hasAssistant ()
 
boolean hasPassedStartDate ()
 
boolean hasPassedNow ()
 
boolean hasPassedValues ()
 
boolean hasAlarm ()
 
Set< IssuePredecessorgetSources ()
 
Set< IssuePredecessorgetTargets ()
 
String getResponsibleString ()
 
String getReporterString ()
 
String getQAString ()
 
String getAssistantString ()
 
boolean canStartBySources ()
 
List< String > getWaitingReason ()
 
int getKanbanColumn ()
 
void clearEmpties ()
 
Date getBeginDate ()
 
Date getEndDate ()
 
Date getControlDate ()
 
IssueDetailSet getDetail ()
 
boolean delete ()
 
String getLeaveAsLabel ()
 
boolean getCanStart ()
 
boolean getCanMarkAsIncomplete ()
 
boolean getCanFreeze ()
 
boolean getCanResolve ()
 
boolean getCanReopen ()
 
boolean getCanVerify ()
 
boolean getCanClose ()
 
boolean getCanCheckClose ()
 
- Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
 DaoEntity ()
 
 DaoEntity (Class< T > persistentClass)
 
 DaoEntity (T entity)
 
Dao getDao ()
 
getEntity ()
 
IElephantEntity getIee ()
 
find (ID id)
 
save ()
 
ID getId ()
 
List< String > getMessages ()
 
boolean canDelete ()
 
boolean canSave ()
 
boolean equals (Object obj)
 
int hashCode ()
 

Static Public Member Functions

static void checkPendingRevision (Issue issue)
 
- Static Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
static Object getEntityId (Object entity)
 
static boolean isNewId (Object id)
 

Protected Member Functions

Dao createDao ()
 
boolean shouldLog ()
 
- Protected Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
void logEntity (SystemLogType logType, Object entity, String action, String data)
 
String dataEntity (Object entity)
 
void initOperation ()
 
void addMessage (String message)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
entity
 
ID id
 
List< String > messages = new ArrayList<>()
 

Detailed Description

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

Definition at line 47 of file IssueWrapper.java.

Constructor & Destructor Documentation

◆ IssueWrapper() [1/2]

org.turro.dossier.issue.IssueWrapper.IssueWrapper ( Issue  issue)

Definition at line 54 of file IssueWrapper.java.

54  {
55  super(issue);
56  this.contact = Authentication.getIContact();
57  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IssueWrapper() [2/2]

org.turro.dossier.issue.IssueWrapper.IssueWrapper ( Issue  issue,
IContact  contact 
)

Definition at line 59 of file IssueWrapper.java.

59  {
60  super(issue);
61  this.contact = contact;
62  }

Member Function Documentation

◆ canStartBySources()

boolean org.turro.dossier.issue.IssueWrapper.canStartBySources ( )

Definition at line 328 of file IssueWrapper.java.

328  {
329  for(IssuePredecessor ip : entity.getSources()) {
330  if(ip.getType() == IssuePredecessorType.START_WHEN_STARTS && !ip.getSource().getStatus().isSeen()) {
331  return false;
332  } else if(ip.getType() == IssuePredecessorType.START_WHEN_ENDS && !ip.getSource().getStatus().isFinished()) {
333  return false;
334  }
335  }
336  return true;
337  }
Here is the caller graph for this function:

◆ checkPendingRevision()

static void org.turro.dossier.issue.IssueWrapper.checkPendingRevision ( Issue  issue)
static

Definition at line 557 of file IssueWrapper.java.

557  {
558  IssueWrapper iw = new IssueWrapper(issue);
559  if(issue.getStatus().equals(IssueStatus.STATUS_CLOSED)) {
560  IssueComment last = null;
561  for(IssueComment ic : issue.getComments()) {
562  last = ic;
563  }
564  if(last != null) {
565  for(IssueParticipant ip : issue.getParticipants()) {
566  if(ip.getRole().equals(IssueParticipantRole.ISSUE_REPORTER)) {
567  if(Strings.isEmpty(last.getIdContact()) || !last.getIdContact().equals(ip.getIdContact())) {
568  WhereClause wc = new WhereClause();
569  wc.addClause("update IssueParticipant ip");
570  wc.addClause("set pendingRevision = true");
571  wc.addClause("where ip = :ip");
572  wc.addNamedValue("ip", ip);
573  iw.getDao().executeUpdate(wc);
574  }
575  }
576  }
577  }
578  } else {
579  WhereClause wc = new WhereClause();
580  wc.addClause("update IssueParticipant ip");
581  wc.addClause("set pendingRevision = false");
582  wc.addClause("where ip.issue = :issue");
583  wc.addNamedValue("issue", issue);
584  iw.getDao().executeUpdate(wc);
585  }
586  }
Set< IssueComment > getComments()
Definition: Issue.java:122
Set< IssueParticipant > getParticipants()
Definition: Issue.java:114
void addNamedValue(String name, Object value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearEmpties()

void org.turro.dossier.issue.IssueWrapper.clearEmpties ( )

Definition at line 459 of file IssueWrapper.java.

459  {
460  Iterator<IssueParticipant> iip = entity.getParticipants().iterator();
461  while(iip.hasNext()) {
462  if(Strings.isBlank(iip.next().getIdContact())) {
463  iip.remove();
464  }
465  }
466  }
Here is the caller graph for this function:

◆ createDao()

Dao org.turro.dossier.issue.IssueWrapper.createDao ( )
protected

◆ delete()

boolean org.turro.dossier.issue.IssueWrapper.delete ( )

Reimplemented from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >.

Definition at line 490 of file IssueWrapper.java.

490  {
491  Relateds.empty().removeAny(DossierPU.getObjectPath(entity));
492  WorksheetUtil.removeWorksheet(entity.getId());
493  return super.delete();
494  }
static String getObjectPath(Object object)
Definition: DossierPU.java:66
Here is the call graph for this function:

◆ getAlarmImage()

String org.turro.dossier.issue.IssueWrapper.getAlarmImage ( )

Definition at line 138 of file IssueWrapper.java.

138  {
139  if(hasPassedNow()) {
140  return "/_zul/images/date_surpassed.png";
141  }
142  if(hasPassedValues()) {
143  return "/_zul/images/value_surpassed.png";
144  }
145  return "";
146  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAssistantString()

String org.turro.dossier.issue.IssueWrapper.getAssistantString ( )

Definition at line 318 of file IssueWrapper.java.

318  {
319  String result = "";
320  for(IssueParticipant ip : entity.getParticipants()) {
321  if(ip.getRole().equals(IssueParticipantRole.ISSUE_ASSISTANT)) {
322  result += (Strings.isEmpty(result) ? "" : ", ") + ip.getName();
323  }
324  }
325  return result;
326  }

◆ getBeginDate()

Date org.turro.dossier.issue.IssueWrapper.getBeginDate ( )

Definition at line 468 of file IssueWrapper.java.

468  {
469  return entity.getStartDate();
470  }

◆ getCanCheckClose()

boolean org.turro.dossier.issue.IssueWrapper.getCanCheckClose ( )

◆ getCanClose()

boolean org.turro.dossier.issue.IssueWrapper.getCanClose ( )

Definition at line 543 of file IssueWrapper.java.

543  {
544  return (EnumSet.of(IssueStatus.STATUS_RESOLVED)
545  .contains(entity.getStatus()) && !hasQA() && (isFullParticipant())) ||
546  (EnumSet.of(IssueStatus.STATUS_VERIFIED)
547  .contains(entity.getStatus()) && hasQA() && (isFullParticipant()));
548  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCanFreeze()

boolean org.turro.dossier.issue.IssueWrapper.getCanFreeze ( )

Definition at line 517 of file IssueWrapper.java.

517  {
518  return EnumSet.of(IssueStatus.STATUS_NEW, IssueStatus.STATUS_STARTED,
521  .contains(entity.getStatus()) && (isResponsible() || isReporter());
522  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCanMarkAsIncomplete()

boolean org.turro.dossier.issue.IssueWrapper.getCanMarkAsIncomplete ( )

Definition at line 511 of file IssueWrapper.java.

511  {
512  return EnumSet.of(IssueStatus.STATUS_NEW, IssueStatus.STATUS_STARTED,
514  .contains(entity.getStatus()) && isResponsible();
515  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCanReopen()

boolean org.turro.dossier.issue.IssueWrapper.getCanReopen ( )

Definition at line 531 of file IssueWrapper.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCanResolve()

boolean org.turro.dossier.issue.IssueWrapper.getCanResolve ( )

Definition at line 524 of file IssueWrapper.java.

524  {
528  .contains(entity.getStatus()) && (isFullParticipant());
529  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCanShowDossier()

boolean org.turro.dossier.issue.IssueWrapper.getCanShowDossier ( )

Definition at line 120 of file IssueWrapper.java.

120  {
121  return Application.getApplication().isInRole("dossier:show") &&
122  entity.getDossier() != null &&
123  new DossierWrapper(entity.getDossier()).isParticipant();
124  }
Here is the call graph for this function:

◆ getCanStart()

boolean org.turro.dossier.issue.IssueWrapper.getCanStart ( )

Definition at line 506 of file IssueWrapper.java.

506  {
508  .contains(entity.getStatus()) && isResponsible();
509  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCanVerify()

boolean org.turro.dossier.issue.IssueWrapper.getCanVerify ( )

Definition at line 538 of file IssueWrapper.java.

538  {
539  return EnumSet.of(IssueStatus.STATUS_RESOLVED)
540  .contains(entity.getStatus()) && hasQA() && isQA();
541  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getControlDate()

Date org.turro.dossier.issue.IssueWrapper.getControlDate ( )

Definition at line 476 of file IssueWrapper.java.

476  {
477  return entity.getControlDate();
478  }

◆ getData()

DossierData org.turro.dossier.issue.IssueWrapper.getData ( )

Definition at line 207 of file IssueWrapper.java.

207  {
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());
213  }
Here is the call graph for this function:

◆ getDetail()

IssueDetailSet org.turro.dossier.issue.IssueWrapper.getDetail ( )

Definition at line 480 of file IssueWrapper.java.

480  {
481  return new IssueDetailSet(entity);
482  }

◆ getDossierData()

DossierData org.turro.dossier.issue.IssueWrapper.getDossierData ( )

Definition at line 215 of file IssueWrapper.java.

215  {
216  DossierDWReport dr = new DossierDWReport();
217  dr.setReportValues(entity.getDossier());
218  return dr.getData();
219  }
Here is the call graph for this function:

◆ getEndDate()

Date org.turro.dossier.issue.IssueWrapper.getEndDate ( )

Definition at line 472 of file IssueWrapper.java.

472  {
473  return entity.getDelivery();
474  }

◆ getIssue()

Issue org.turro.dossier.issue.IssueWrapper.getIssue ( )

Definition at line 126 of file IssueWrapper.java.

126  {
127  return entity;
128  }
Here is the caller graph for this function:

◆ getKanbanColumn()

int org.turro.dossier.issue.IssueWrapper.getKanbanColumn ( )

Definition at line 359 of file IssueWrapper.java.

359  {
360  IssueStatus status = entity.getStatus();
361  if(!status.isSeen()) {
362  return 1;
363  } else if(status.isWorking() || status.isStandBy()) {
364  return 2;
365  } else if(status.isFinished()) {
366  return 3;
367  } else {
368  return 0;
369  }
370  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLeaveAsLabel()

String org.turro.dossier.issue.IssueWrapper.getLeaveAsLabel ( )

Definition at line 501 of file IssueWrapper.java.

501  {
502  return I_.get("Leave issue as") + ": " + I_.byKey(entity.getStatus().toString()) +
503  (entity.getStatus().isFinished() ? " " + I_.byKey(entity.getResolution().toString()) : "");
504  }
static String byKey(String key)
Definition: I_.java:83
static String get(String msg)
Definition: I_.java:41
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOrderingValue()

String org.turro.dossier.issue.IssueWrapper.getOrderingValue ( )

Definition at line 160 of file IssueWrapper.java.

160  {
161  StringBuilder result = new StringBuilder();
162  try {
163  if(isUnrelated()) {
164  result.append("0");
165  }
166  else {
167  result.append("1");
168  }
169  if(hasPassedNow()) {
170  result.append("0");
171  }
172  else {
173  result.append("1");
174  }
176  result.append("0");
177  } else {
178  result.append("1");
179  }
180  result.append(getRelevanceOrderByContact());
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());
185 
186  // TODO: shouldn't happen... but...
187  } catch(Exception ex) {
188  Logger.getLogger(IssueWrapper.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
189  }
190 
191  return result.toString();
192  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPriorityImage()

String org.turro.dossier.issue.IssueWrapper.getPriorityImage ( )

Definition at line 148 of file IssueWrapper.java.

148  {
149  int p = entity.getPriority().getPriority();
150  if(p < 3) {
151  return "/_zul/images/priority" + p + ".png";
152  }
153  return "";
154  }
Here is the caller graph for this function:

◆ getQAString()

String org.turro.dossier.issue.IssueWrapper.getQAString ( )

Definition at line 308 of file IssueWrapper.java.

308  {
309  String result = "";
310  for(IssueParticipant ip : entity.getParticipants()) {
311  if(ip.getRole().equals(IssueParticipantRole.ISSUE_QA)) {
312  result += (Strings.isEmpty(result) ? "" : ", ") + ip.getName();
313  }
314  }
315  return result;
316  }

◆ getReality()

DossierValues org.turro.dossier.issue.IssueWrapper.getReality ( )

Definition at line 194 of file IssueWrapper.java.

194  {
195  if(reality == null) {
196  reality = new DossierValues();
197  // TODO: optimize using SQL aggregates
198  for(IssueComment icomment : entity.getComments()) {
199  reality.expenses += icomment.getExpenses();
200  reality.hours += icomment.getHours();
201  reality.price += icomment.getPrice();
202  }
203  }
204  return reality;
205  }
Here is the caller graph for this function:

◆ getRelevanceOrderByContact()

int org.turro.dossier.issue.IssueWrapper.getRelevanceOrderByContact ( )

Definition at line 156 of file IssueWrapper.java.

156  {
157  return Math.min(getRelevanceByReporter(), Math.min(getRelevanceByResponsible(), getRelevanceByQA()));
158  }
Here is the caller graph for this function:

◆ getReporterString()

String org.turro.dossier.issue.IssueWrapper.getReporterString ( )

Definition at line 298 of file IssueWrapper.java.

298  {
299  String result = "";
300  for(IssueParticipant ip : entity.getParticipants()) {
301  if(ip.getRole().equals(IssueParticipantRole.ISSUE_REPORTER)) {
302  result += (Strings.isEmpty(result) ? "" : ", ") + ip.getName();
303  }
304  }
305  return result;
306  }

◆ getResponsibleString()

String org.turro.dossier.issue.IssueWrapper.getResponsibleString ( )

Definition at line 288 of file IssueWrapper.java.

288  {
289  String result = "";
290  for(IssueParticipant ip : entity.getParticipants()) {
291  if(ip.getRole().equals(IssueParticipantRole.ISSUE_RESPONSIBLE)) {
292  result += (Strings.isEmpty(result) ? "" : ", ") + ip.getName();
293  }
294  }
295  return result;
296  }

◆ getSelfLabel()

String org.turro.dossier.issue.IssueWrapper.getSelfLabel ( )

Definition at line 68 of file IssueWrapper.java.

68  {
69  return I_.get("Issue");
70  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSources()

Set<IssuePredecessor> org.turro.dossier.issue.IssueWrapper.getSources ( )

Definition at line 279 of file IssueWrapper.java.

279  {
280  return entity.getSources();
281  }

◆ getTabLabel()

String org.turro.dossier.issue.IssueWrapper.getTabLabel ( )

Definition at line 64 of file IssueWrapper.java.

64  {
65  return getSelfLabel() + " #" + (entity.getId() == null ? "" : entity.getId());
66  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTargets()

Set<IssuePredecessor> org.turro.dossier.issue.IssueWrapper.getTargets ( )

Definition at line 284 of file IssueWrapper.java.

284  {
285  return entity.getTargets();
286  }

◆ getTimmingImage()

String org.turro.dossier.issue.IssueWrapper.getTimmingImage ( )

Definition at line 134 of file IssueWrapper.java.

134  {
135  return "/_zul/images/timming" + getRelevanceOrderByContact() + ".png";
136  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTooltiptext()

String org.turro.dossier.issue.IssueWrapper.getTooltiptext ( )

Definition at line 72 of file IssueWrapper.java.

72  {
73  try {
74  return entity.getFullDescription();
75  } catch(Exception ex) {
76  return null;
77  }
78  }
Here is the caller graph for this function:

◆ getWaitingReason()

List<String> org.turro.dossier.issue.IssueWrapper.getWaitingReason ( )

Definition at line 339 of file IssueWrapper.java.

339  {
340  List<String> l = new ArrayList<String>();
341  Date now = new Date();
342  if(entity.getStartDate() != null) {
343  if(now.before(entity.getStartDate())) {
344  l.add(I_.format("Waiting for date %tF", entity.getStartDate()));
345  }
346  }
347  StringBuffer sb = new StringBuffer();
348  for(IssuePredecessor ip : entity.getSources()) {
349  Issue source = ip.getSource();
350  if(ip.getType() == IssuePredecessorType.START_WHEN_STARTS && !source.getStatus().isSeen()) {
351  l.add(I_.byKey(ip.getType().toString()) + " #" + source.getId() + " " + source.getDescription() + "\n");
352  } else if(ip.getType() == IssuePredecessorType.START_WHEN_ENDS && !source.getStatus().isFinished()) {
353  l.add(I_.byKey(ip.getType().toString()) + " #" + source.getId() + " " + source.getDescription() + "\n");
354  }
355  }
356  return l;
357  }
static String format(String msg, Object... arguments)
Definition: I_.java:49
Here is the call graph for this function:

◆ hasAlarm()

boolean org.turro.dossier.issue.IssueWrapper.hasAlarm ( )

Definition at line 274 of file IssueWrapper.java.

274  {
275  return hasPassedNow() || hasPassedValues();
276  }
Here is the call graph for this function:

◆ hasAssistant()

boolean org.turro.dossier.issue.IssueWrapper.hasAssistant ( )

Definition at line 247 of file IssueWrapper.java.

247  {
248  for(IssueParticipant ip : entity.getParticipants()) {
249  if(ip.getRole().equals(IssueParticipantRole.ISSUE_ASSISTANT) &&
250  !Strings.isBlank(ip.getIdContact())) {
251  return true;
252  }
253  }
254  return false;
255  }

◆ hasPassedNow()

boolean org.turro.dossier.issue.IssueWrapper.hasPassedNow ( )

Definition at line 262 of file IssueWrapper.java.

262  {
263  Date now = new Date();
264  return (entity.getControlDate() != null && now.after(entity.getControlDate())) ||
265  (entity.getDelivery() != null && now.after(entity.getDelivery()));
266  }
Here is the caller graph for this function:

◆ hasPassedStartDate()

boolean org.turro.dossier.issue.IssueWrapper.hasPassedStartDate ( )

Definition at line 257 of file IssueWrapper.java.

257  {
258  Date now = new Date();
259  return entity.getStartDate() == null || now.after(entity.getStartDate());
260  }
Here is the caller graph for this function:

◆ hasPassedValues()

boolean org.turro.dossier.issue.IssueWrapper.hasPassedValues ( )

Definition at line 268 of file IssueWrapper.java.

268  {
269  return getReality().expenses > entity.getExpenses() ||
270  getReality().hours > entity.getHours() ||
271  getReality().price > entity.getPrice();
272  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasQA()

boolean org.turro.dossier.issue.IssueWrapper.hasQA ( )

Definition at line 115 of file IssueWrapper.java.

115  {
116  getRole();
117  return hasIssueQA;
118  }
Here is the caller graph for this function:

◆ hasReporter()

boolean org.turro.dossier.issue.IssueWrapper.hasReporter ( )

Definition at line 227 of file IssueWrapper.java.

227  {
228  for(IssueParticipant ip : entity.getParticipants()) {
229  if(ip.getRole().equals(IssueParticipantRole.ISSUE_REPORTER) &&
230  !Strings.isBlank(ip.getIdContact())) {
231  return true;
232  }
233  }
234  return false;
235  }
Here is the caller graph for this function:

◆ hasResponsible()

boolean org.turro.dossier.issue.IssueWrapper.hasResponsible ( )

Definition at line 237 of file IssueWrapper.java.

237  {
238  for(IssueParticipant ip : entity.getParticipants()) {
239  if(ip.getRole().equals(IssueParticipantRole.ISSUE_RESPONSIBLE) &&
240  !Strings.isBlank(ip.getIdContact())) {
241  return true;
242  }
243  }
244  return false;
245  }
Here is the caller graph for this function:

◆ isAssistant()

boolean org.turro.dossier.issue.IssueWrapper.isAssistant ( )

Definition at line 111 of file IssueWrapper.java.

111  {
112  return getRole().contains(IssueParticipantRole.ISSUE_ASSISTANT);
113  }
Here is the caller graph for this function:

◆ isFullParticipant()

boolean org.turro.dossier.issue.IssueWrapper.isFullParticipant ( )

Definition at line 84 of file IssueWrapper.java.

84  {
85  if(!Contacts.isValid(contact)) return false;
86  if(isParticipant()) return true;
87  for(IDossierParticipant dp : getIssue().getDossier().getFullParticipants()) {
88  if(dp.getIdContact().equals(contact.getId()) && dp.isShowAllIssues()) {
89  return true;
90  }
91  }
92  return false;
93  }
static boolean isValid(IContact contact)
Definition: Contacts.java:52
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isParticipant()

boolean org.turro.dossier.issue.IssueWrapper.isParticipant ( )

Definition at line 95 of file IssueWrapper.java.

95  {
96  return !getRole().isEmpty();
97  }
Here is the caller graph for this function:

◆ isQA()

boolean org.turro.dossier.issue.IssueWrapper.isQA ( )

Definition at line 107 of file IssueWrapper.java.

107  {
108  return getRole().contains(IssueParticipantRole.ISSUE_QA);
109  }
Here is the caller graph for this function:

◆ isReporter()

boolean org.turro.dossier.issue.IssueWrapper.isReporter ( )

Definition at line 99 of file IssueWrapper.java.

99  {
100  return getRole().contains(IssueParticipantRole.ISSUE_REPORTER);
101  }
Here is the caller graph for this function:

◆ isResponsible()

boolean org.turro.dossier.issue.IssueWrapper.isResponsible ( )

Definition at line 103 of file IssueWrapper.java.

103  {
104  return getRole().contains(IssueParticipantRole.ISSUE_RESPONSIBLE);
105  }
Here is the caller graph for this function:

◆ isUnrelated()

boolean org.turro.dossier.issue.IssueWrapper.isUnrelated ( )

Definition at line 221 of file IssueWrapper.java.

221  {
222  return getIssue().getDossier() == null ||
223  !hasReporter() ||
224  !hasResponsible();
225  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setContact()

void org.turro.dossier.issue.IssueWrapper.setContact ( IContact  contact)

Definition at line 80 of file IssueWrapper.java.

80  {
81  this.contact = contact;
82  }

◆ setIssue()

void org.turro.dossier.issue.IssueWrapper.setIssue ( Issue  issue)

Definition at line 130 of file IssueWrapper.java.

130  {
131  this.entity = issue;
132  }

◆ shouldLog()

boolean org.turro.dossier.issue.IssueWrapper.shouldLog ( )
protected

Reimplemented from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >.

Definition at line 497 of file IssueWrapper.java.

497  {
498  return false;
499  }

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