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

Public Member Functions

boolean inWorksheet (Long id)
 
void keep (EnumSet< IssueStage > set)
 
Collection< IssuegetIssues ()
 

Static Public Member Functions

static IssueStage getStage (WorkloadItem item)
 
static int getKanbanColumn (WorkloadItem item)
 

Detailed Description

Member Function Documentation

◆ getIssues()

Collection<Issue> org.turro.dossier.workload.WorkloadSet.getIssues ( )

Definition at line 91 of file elephant-dossier/src/main/java/org/turro/dossier/workload/WorkloadSet.java.

91  {
92  ArrayList<Issue> issues = new ArrayList<>();
93  for(final WorkloadItem item : this) {
94  issues.add(item.getIssue());
95  }
96  return issues;
97  }
Here is the call graph for this function:

◆ getKanbanColumn()

static int org.turro.dossier.workload.WorkloadSet.getKanbanColumn ( WorkloadItem  item)
static

Definition at line 68 of file elephant-dossier/src/main/java/org/turro/dossier/workload/WorkloadSet.java.

68  {
69  return item.getWrapper().getKanbanColumn();
70  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStage()

static IssueStage org.turro.dossier.workload.WorkloadSet.getStage ( WorkloadItem  item)
static

Definition at line 37 of file elephant-dossier/src/main/java/org/turro/dossier/workload/WorkloadSet.java.

37  {
38 
39  Worksheet worksheet = item.getWorksheet();
40  if(worksheet != null) {
41  return IssueStage.ISSUE_STAGE_WORKSHEET;
42  }
43 
44  IssueWrapper wissue = item.getWrapper();
45  if(wissue.isUnrelated()) {
46  return IssueStage.ISSUE_STAGE_UNRELATED;
47  }
48 
49  if(wissue.hasPassedNow()) {
50  return IssueStage.ISSUE_STAGE_DATE_SURPASSED;
51  }
52 
53  if(!wissue.hasPassedStartDate() || !wissue.canStartBySources()) {
54  return IssueStage.ISSUE_STAGE_TO_COME;
55  }
56 
57  int stage = wissue.getRelevanceOrderByContact();
58 
59  switch(stage) {
60  case 1: return IssueStage.ISSUE_STAGE_TO_DO;
61  case 2: return IssueStage.ISSUE_STAGE_REUNION;
62  case 5: return IssueStage.ISSUE_STAGE_FROZEN;
63  }
64 
65  return IssueStage.ISSUE_STAGE_TO_MONITOR;
66  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inWorksheet()

boolean org.turro.dossier.workload.WorkloadSet.inWorksheet ( Long  id)

Definition at line 72 of file elephant-dossier/src/main/java/org/turro/dossier/workload/WorkloadSet.java.

72  {
73  for(final WorkloadItem item : this) {
74  if(item.getWorksheet() == null) break;
75  if(id.equals(item.getIssue().getId())) {
76  return true;
77  }
78  }
79  return false;
80  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ keep()

void org.turro.dossier.workload.WorkloadSet.keep ( EnumSet< IssueStage set)

Definition at line 82 of file elephant-dossier/src/main/java/org/turro/dossier/workload/WorkloadSet.java.

82  {
83  Iterator<WorkloadItem> it = iterator();
84  while(it.hasNext()) {
85  if(!set.contains(getStage(it.next()))) {
86  it.remove();
87  }
88  }
89  }
Here is the call graph for this function:
Here is the caller graph for this function:

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