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

Public Member Functions

 DossierGanttWrapper (Dossier dossier)
 
boolean getItFits ()
 
String toJson ()
 
double percentDone (Issue issue)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.web.gantt.GanttWrapper
GanttItems items = new GanttItems()
 

Detailed Description

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

Definition at line 43 of file DossierGanttWrapper.java.

Constructor & Destructor Documentation

◆ DossierGanttWrapper()

org.turro.dossier.gantt.DossierGanttWrapper.DossierGanttWrapper ( Dossier  dossier)

Definition at line 50 of file DossierGanttWrapper.java.

50  {
51  this.dossier = dossier;
52  this.issues = new ArrayList<>();
53  }

Member Function Documentation

◆ getItFits()

boolean org.turro.dossier.gantt.DossierGanttWrapper.getItFits ( )

Definition at line 55 of file DossierGanttWrapper.java.

55  {
56  return !SqlClause.select("i").from("Issue i")
57  .where().equal("i.milestone", true)
58  .startIf(publishable)
59  .and().equal("i.publishable", true)
60  .endIf()
61  .startIf(dossier != null)
62  .and().equal("i.dossier", dossier)
63  .endIf()
64  .and().group().isNotNull("i.startDate")
65  .or().isNotNull("i.delivery").endGroup()
66  .and().notExists(
67  SqlClause.select("p").from("IssuePredecessor p")
68  .where("p.source = i.id")
69  )
70  .dao(dao.get())
71  .max(1)
72  .resultList(Issue.class)
73  .isEmpty();
74  }

◆ percentDone()

double org.turro.dossier.gantt.DossierGanttWrapper.percentDone ( Issue  issue)

Definition at line 165 of file DossierGanttWrapper.java.

165  {
166  return Tasks.from(issue, false, false).getPercentTasksDone();
167  }
Here is the call graph for this function:

◆ toJson()

String org.turro.dossier.gantt.DossierGanttWrapper.toJson ( )

Definition at line 76 of file DossierGanttWrapper.java.

76  {
77  getIssues().forEach(i -> {
78  addItem(i);
79  });
80  return items.toJson();
81  }
Here is the call graph for this function:

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