BrightSide Workbench Full Report + Source Code
org.turro.dossier.task.TaskViewVM Class Reference

Public Member Functions

 TaskViewVM ()
 
void showInfo (@BindingParam("taskItem") TaskItem taskItem, @BindingParam("component") Component component, @BindingParam("position") String position)
 
void showIssue (@BindingParam("issue") Issue issue)
 
void update ()
 
void selectDossier (@BindingParam("dossier") Dossier dossier)
 
void onlyOpen (@BindingParam("onlyOpen") Boolean onlyOpen)
 
void showAttachments (@BindingParam("issue") Issue issue)
 
void addInformation (@BindingParam("issue") Issue issue)
 
void addIssue ()
 
Dossier getDossier ()
 
void setDossier (Dossier dossier)
 
Collection< TaskItemgetModel ()
 

Detailed Description

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

Definition at line 43 of file TaskViewVM.java.

Constructor & Destructor Documentation

◆ TaskViewVM()

org.turro.dossier.task.TaskViewVM.TaskViewVM ( )

Definition at line 49 of file TaskViewVM.java.

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

Member Function Documentation

◆ addInformation()

void org.turro.dossier.task.TaskViewVM.addInformation ( @BindingParam("issue") Issue  issue)

Definition at line 96 of file TaskViewVM.java.

96  {
97  if(show && (all || issue.getFullParticipants().isParticipant())) {
98  DossierMenu.addInformation(issue, (Context context) -> {
99  BindUtils.postNotifyChange(null, null, TaskViewVM.this, "model");
100  return null;
101  });
102  }
103  }
Here is the call graph for this function:

◆ addIssue()

void org.turro.dossier.task.TaskViewVM.addIssue ( )

Definition at line 106 of file TaskViewVM.java.

106  {
107  if(all || addNew) {
108  DossierMenu.addDossierInformation(dossier, (Context context) -> {
109  BindUtils.postNotifyChange(null, null, TaskViewVM.this, "model");
110  return null;
111  });
112  }
113  }
Here is the call graph for this function:

◆ getDossier()

Dossier org.turro.dossier.task.TaskViewVM.getDossier ( )

Definition at line 115 of file TaskViewVM.java.

115  {
116  return dossier;
117  }

◆ getModel()

Collection<TaskItem> org.turro.dossier.task.TaskViewVM.getModel ( )

Definition at line 123 of file TaskViewVM.java.

123  {
124  if(dossier != null) {
125  return Tasks.from(dossier, onlyOpen, true).getFilledFlat();
126  } else {
127  return Collections.EMPTY_LIST;
128  }
129  }
Here is the call graph for this function:

◆ onlyOpen()

void org.turro.dossier.task.TaskViewVM.onlyOpen ( @BindingParam("onlyOpen") Boolean  onlyOpen)

Definition at line 81 of file TaskViewVM.java.

81  {
82  this.onlyOpen = onlyOpen;
83  }

◆ selectDossier()

void org.turro.dossier.task.TaskViewVM.selectDossier ( @BindingParam("dossier") Dossier  dossier)

Definition at line 75 of file TaskViewVM.java.

75  {
76  setDossier(dossier);
77  }
void setDossier(Dossier dossier)
Here is the call graph for this function:

◆ setDossier()

void org.turro.dossier.task.TaskViewVM.setDossier ( Dossier  dossier)

Definition at line 119 of file TaskViewVM.java.

119  {
120  this.dossier = dossier;
121  }
Here is the caller graph for this function:

◆ showAttachments()

void org.turro.dossier.task.TaskViewVM.showAttachments ( @BindingParam("issue") Issue  issue)

Definition at line 86 of file TaskViewVM.java.

86  {
87  if(show && (all || issue.getFullParticipants().isParticipant())) {
88  AttachmentControl ac = new AttachmentControl();
89  ac.setEntity(issue);
90  SelectionDialog.showComponent(Framework.getCurrent().getPage(), I_.get("Attachments"),
91  ac, "80%", "80%", null);
92  }
93  }
Here is the call graph for this function:

◆ showInfo()

void org.turro.dossier.task.TaskViewVM.showInfo ( @BindingParam("taskItem") TaskItem  taskItem,
@BindingParam("component") Component  component,
@BindingParam("position") String  position 
)

Definition at line 57 of file TaskViewVM.java.

58  {
59  if(show && (all || taskItem.getIssue().getFullParticipants().isParticipant())) {
60  DossiersInfo.popup(taskItem.getIssue());
61  }
62  }
Here is the call graph for this function:

◆ showIssue()

void org.turro.dossier.task.TaskViewVM.showIssue ( @BindingParam("issue") Issue  issue)

Definition at line 65 of file TaskViewVM.java.

65  {
66  DossierMenu.showIssue(issue.getId());
67  }
Here is the call graph for this function:

◆ update()

void org.turro.dossier.task.TaskViewVM.update ( )

Definition at line 71 of file TaskViewVM.java.

71 {}

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