◆ from() [1/2]
static Tasks org.turro.dossier.task.Tasks.from |
( |
Dossier |
dossier, |
|
|
boolean |
onlyOpen, |
|
|
boolean |
sameDossier |
|
) |
| |
|
static |
◆ from() [2/2]
static Tasks org.turro.dossier.task.Tasks.from |
( |
Issue |
issue, |
|
|
boolean |
onlyOpen, |
|
|
boolean |
sameDossier |
|
) |
| |
|
static |
◆ getFilledFlat()
Collection<TaskItem> org.turro.dossier.task.Tasks.getFilledFlat |
( |
| ) |
|
◆ getFilledRoots()
Collection<TaskItem> org.turro.dossier.task.Tasks.getFilledRoots |
( |
| ) |
|
◆ getFlat()
Collection<TaskItem> org.turro.dossier.task.Tasks.getFlat |
( |
Collection< TaskItem > |
items | ) |
|
◆ getPercentTasksDone()
double org.turro.dossier.task.Tasks.getPercentTasksDone |
( |
| ) |
|
◆ getRoots()
Collection<TaskItem> org.turro.dossier.task.Tasks.getRoots |
( |
| ) |
|
Definition at line 62 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/task/Tasks.java.
64 return List.<TaskItem>of(
new TaskItem(issue,
null, 1));
66 try(Stream<Issue> stream = SqlClause.select(
"i").from(
"Issue i")
67 .where().equal(
"i.dossier", dossier)
69 .and().in(
"i.status", IssueStatus.selectBy(
null,
null,
null,
false))
71 .and().empty(
"i.targets")
73 .stream(Issue.class)) {
74 return stream.map(i ->
new TaskItem(i,
null, 1)).toList();
◆ getSubtasks()
Definition at line 79 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/task/Tasks.java.
80 try(Stream<IssuePredecessor> stream = SqlClause.select(
"p").from(
"IssuePredecessor p")
81 .where().equal(
"p.target", item.getIssue())
83 .and().in(
"p.target.status", IssueStatus.selectBy(
null,
null,
null,
false))
86 .and(
"p.target.dossier = p.source.dossier")
89 .stream(IssuePredecessor.class)) {
90 return stream.map(p ->
new TaskItem(p.getSource(), p.getType(), item.getLevel() + 1))
The documentation for this class was generated from the following file: