BrightSide Workbench Full Report + Source Code
org.turro.dossier.graph.IssueGraphVM Class Reference

Public Member Functions

 IssueGraphVM ()
 
void init (@ExecutionArgParam("dossier") Dossier dossier)
 
void update ()
 
void selectDossier (@BindingParam("dossier") Dossier dossier)
 
void setOnlyMilestones (@BindingParam("onlyMilestones") Boolean onlyMilestones)
 
void setOnlyOpen (@BindingParam("onlyOpen") Boolean onlyOpen)
 
void addIssue ()
 
boolean isOnlyOpen ()
 
boolean isOnlyMilestones ()
 
Dossier getDossier ()
 
Set< IssueVertexgetLeafs ()
 
IssueVertex getSelected ()
 

Detailed Description

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

Definition at line 39 of file IssueGraphVM.java.

Constructor & Destructor Documentation

◆ IssueGraphVM()

org.turro.dossier.graph.IssueGraphVM.IssueGraphVM ( )

Definition at line 46 of file IssueGraphVM.java.

46  {
47  Application app = Application.getApplication();
48  show = app.isInRole("issue:show");
49  all = app.isInRole("issue:all");
50  addNew = app.isInRole("issue:new");
51  }
Here is the call graph for this function:

Member Function Documentation

◆ addIssue()

void org.turro.dossier.graph.IssueGraphVM.addIssue ( )

Definition at line 83 of file IssueGraphVM.java.

83  {
84  if(all || addNew) {
85  DossierMenu.addDossierInformation(dossier, (Context context) -> {
86  BindUtils.postNotifyChange(null, null, IssueGraphVM.this, "leafs");
87  return null;
88  });
89  }
90  }
Here is the call graph for this function:

◆ getDossier()

Dossier org.turro.dossier.graph.IssueGraphVM.getDossier ( )

Definition at line 100 of file IssueGraphVM.java.

100  {
101  return dossier;
102  }

◆ getLeafs()

Set<IssueVertex> org.turro.dossier.graph.IssueGraphVM.getLeafs ( )

Definition at line 104 of file IssueGraphVM.java.

104  {
105  return graph.get().vertexSet().stream()
106  .filter(m -> m.isLeaf() && (!onlyOpen || !m.isAchieved()))
107  .collect(Collectors.toSet());
108  }

◆ getSelected()

IssueVertex org.turro.dossier.graph.IssueGraphVM.getSelected ( )

Definition at line 110 of file IssueGraphVM.java.

110  {
111  return selected;
112  }

◆ init()

void org.turro.dossier.graph.IssueGraphVM.init ( @ExecutionArgParam("dossier") Dossier  dossier)

Definition at line 54 of file IssueGraphVM.java.

54  {
55  selectDossier(dossier);
56  }
void selectDossier(@BindingParam("dossier") Dossier dossier)
Here is the call graph for this function:

◆ isOnlyMilestones()

boolean org.turro.dossier.graph.IssueGraphVM.isOnlyMilestones ( )

Definition at line 96 of file IssueGraphVM.java.

96  {
97  return onlyMilestones;
98  }

◆ isOnlyOpen()

boolean org.turro.dossier.graph.IssueGraphVM.isOnlyOpen ( )

Definition at line 92 of file IssueGraphVM.java.

92  {
93  return onlyOpen;
94  }

◆ selectDossier()

void org.turro.dossier.graph.IssueGraphVM.selectDossier ( @BindingParam("dossier") Dossier  dossier)

Definition at line 64 of file IssueGraphVM.java.

64  {
65  this.dossier = dossier;
66  graph.reset();
67  }
Here is the caller graph for this function:

◆ setOnlyMilestones()

void org.turro.dossier.graph.IssueGraphVM.setOnlyMilestones ( @BindingParam("onlyMilestones") Boolean  onlyMilestones)

Definition at line 71 of file IssueGraphVM.java.

71  {
72  this.onlyMilestones = onlyMilestones;
73  graph.reset();
74  }

◆ setOnlyOpen()

void org.turro.dossier.graph.IssueGraphVM.setOnlyOpen ( @BindingParam("onlyOpen") Boolean  onlyOpen)

Definition at line 78 of file IssueGraphVM.java.

78  {
79  this.onlyOpen = onlyOpen;
80  }

◆ update()

void org.turro.dossier.graph.IssueGraphVM.update ( )

Definition at line 60 of file IssueGraphVM.java.

60 {}

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