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

Public Member Functions

 SubtaskViewVM ()
 
void init (@ExecutionArgParam("issue") Issue issue)
 
void showInfo (@BindingParam("taskItem") TaskItem taskItem, @BindingParam("component") Component component, @BindingParam("position") String position)
 
void showIssue (@BindingParam("issue") Issue issue)
 
void update ()
 
void showAttachments (@BindingParam("issue") Issue issue)
 
void addInformation (@BindingParam("issue") Issue issue)
 
void addSubtask (@BindingParam("issue") Issue issue)
 
Collection< TaskItemgetModel ()
 

Detailed Description

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

Definition at line 44 of file SubtaskViewVM.java.

Constructor & Destructor Documentation

◆ SubtaskViewVM()

org.turro.dossier.task.SubtaskViewVM.SubtaskViewVM ( )

Definition at line 49 of file SubtaskViewVM.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.SubtaskViewVM.addInformation ( @BindingParam("issue") Issue  issue)

Definition at line 89 of file SubtaskViewVM.java.

89  {
90  if(show && (all || issue.getFullParticipants().isParticipant())) {
91  DossierMenu.addInformation(issue, (Context context) -> {
92  BindUtils.postNotifyChange(null, null, SubtaskViewVM.this, "model");
93  return null;
94  });
95  }
96  }
ParticipantSet getFullParticipants()
Definition: Issue.java:461
Here is the call graph for this function:

◆ addSubtask()

void org.turro.dossier.task.SubtaskViewVM.addSubtask ( @BindingParam("issue") Issue  issue)

Definition at line 99 of file SubtaskViewVM.java.

99  {
100  if(all || addNew) {
101  DossierMenu.addSubtask(issue, (Context context) -> {
102  BindUtils.postNotifyChange(null, null, SubtaskViewVM.this, "model");
103  return null;
104  });
105  }
106  }
Here is the call graph for this function:

◆ getModel()

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

Definition at line 108 of file SubtaskViewVM.java.

108  {
109  if(issue != null) {
110  return Tasks.from(issue, false, false).getFilledFlat();
111  } else {
112  return Collections.EMPTY_LIST;
113  }
114  }
Here is the call graph for this function:

◆ init()

void org.turro.dossier.task.SubtaskViewVM.init ( @ExecutionArgParam("issue") Issue  issue)

Definition at line 57 of file SubtaskViewVM.java.

57  {
58  this.issue = issue;
59  }

◆ showAttachments()

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

Definition at line 79 of file SubtaskViewVM.java.

79  {
80  if(show && (all || issue.getFullParticipants().isParticipant())) {
81  AttachmentControl ac = new AttachmentControl();
82  ac.setEntity(issue);
83  SelectionDialog.showComponent(Framework.getCurrent().getPage(), I_.get("Attachments"),
84  ac, "80%", "80%", null);
85  }
86  }
Here is the call graph for this function:

◆ showInfo()

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

Definition at line 62 of file SubtaskViewVM.java.

63  {
64  if(show && (all || taskItem.getIssue().getFullParticipants().isParticipant())) {
65  DossiersInfo.popup(taskItem.getIssue());
66  }
67  }
Here is the call graph for this function:

◆ showIssue()

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

Definition at line 70 of file SubtaskViewVM.java.

70  {
71  DossierMenu.showIssue(issue.getId());
72  }
Here is the call graph for this function:

◆ update()

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

Definition at line 76 of file SubtaskViewVM.java.

76 {}

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