BrightSide Workbench Full Report + Source Code
org.turro.dossier.workload.WorkloadVM Class Reference

Public Member Functions

 WorkloadVM ()
 
void showInfo (@BindingParam("item") WorkloadItem item)
 
void update ()
 
void selectEntity (@BindingParam("entity") Object entity)
 
void selectContact (@BindingParam("contact") IContact contact)
 
void showAttachments (@BindingParam("issue") Issue issue)
 
void addInformation (@BindingParam("issue") Issue issue)
 
void setSearchValue (String searchValue)
 
String getSearchValue ()
 
void setSelectedCategory (Category category)
 
Category getSelectedCategory ()
 
void setSelectedDossier (Dossier dossier)
 
Dossier getSelectedDossier ()
 
void setParticipant (IContact contact)
 
IContact getParticipant ()
 
Set< IssueStatusgetStatus ()
 
void setStatus (Set< IssueStatus > status)
 
Set< IssueTypegetTypes ()
 
void setTypes (Set< IssueType > types)
 
GroupsModel< WorkloadItem, Object, Object > getModel ()
 

Detailed Description

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

Definition at line 50 of file WorkloadVM.java.

Constructor & Destructor Documentation

◆ WorkloadVM()

org.turro.dossier.workload.WorkloadVM.WorkloadVM ( )

Definition at line 54 of file WorkloadVM.java.

54  {
55  query = new WorkloadQuery();
56  }

Member Function Documentation

◆ addInformation()

void org.turro.dossier.workload.WorkloadVM.addInformation ( @BindingParam("issue") Issue  issue)

Definition at line 108 of file WorkloadVM.java.

108  {
109  DossierMenu.addInformation(issue, null);
110  }
Here is the call graph for this function:

◆ getModel()

GroupsModel<WorkloadItem, Object, Object> org.turro.dossier.workload.WorkloadVM.getModel ( )

Definition at line 160 of file WorkloadVM.java.

160  {
161  List<List<WorkloadItem>> data = new ArrayList<>();
162  List<String> headers = new ArrayList<>();
163  List<WorkloadItem> loading = null;
164 
165  IssueStage stage = null;
166 
167  WorkloadSet ws = query.getResults();
168 
169  for(final WorkloadItem item : ws) {
170  IssueStage current = WorkloadSet.getStage(item);
171  if(!(current.equals(stage))) {
172  stage = current;
173  headers.add(stage.toString());
174  loading = new ArrayList<>();
175  data.add(loading);
176  }
177  if(loading != null) {
178  loading.add(item);
179  }
180  }
181 
182  return new SimpleGroupsModel<>(data, headers);
183  }
Here is the call graph for this function:

◆ getParticipant()

IContact org.turro.dossier.workload.WorkloadVM.getParticipant ( )

Definition at line 140 of file WorkloadVM.java.

140  {
141  return query.getByParticipant();
142  }
Here is the call graph for this function:

◆ getSearchValue()

String org.turro.dossier.workload.WorkloadVM.getSearchValue ( )

Definition at line 116 of file WorkloadVM.java.

116  {
117  return query.getSearchValue();
118  }
Here is the call graph for this function:

◆ getSelectedCategory()

Category org.turro.dossier.workload.WorkloadVM.getSelectedCategory ( )

Definition at line 124 of file WorkloadVM.java.

124  {
125  return query.getCategory();
126  }
Here is the call graph for this function:

◆ getSelectedDossier()

Dossier org.turro.dossier.workload.WorkloadVM.getSelectedDossier ( )

Definition at line 132 of file WorkloadVM.java.

132  {
133  return query.getDossier();
134  }
Here is the call graph for this function:

◆ getStatus()

Set<IssueStatus> org.turro.dossier.workload.WorkloadVM.getStatus ( )

Definition at line 144 of file WorkloadVM.java.

144  {
145  return query.getStatus();
146  }
Here is the call graph for this function:

◆ getTypes()

Set<IssueType> org.turro.dossier.workload.WorkloadVM.getTypes ( )

Definition at line 152 of file WorkloadVM.java.

152  {
153  return query.getTypes();
154  }
Here is the call graph for this function:

◆ selectContact()

void org.turro.dossier.workload.WorkloadVM.selectContact ( @BindingParam("contact") IContact  contact)

Definition at line 89 of file WorkloadVM.java.

89  {
90  setParticipant(contact);
91  }
void setParticipant(IContact contact)
Here is the call graph for this function:

◆ selectEntity()

void org.turro.dossier.workload.WorkloadVM.selectEntity ( @BindingParam("entity") Object  entity)

Definition at line 74 of file WorkloadVM.java.

74  {
75  if(entity instanceof Category) {
76  setSelectedCategory((Category) entity);
77  setSelectedDossier(null);
78  } else if(entity instanceof Dossier) {
79  setSelectedDossier((Dossier) entity);
80  setSelectedCategory(null);
81  } else {
82  setSelectedCategory(null);
83  setSelectedDossier(null);
84  }
85  }
void setSelectedCategory(Category category)
void setSelectedDossier(Dossier dossier)
Here is the call graph for this function:

◆ setParticipant()

void org.turro.dossier.workload.WorkloadVM.setParticipant ( IContact  contact)

Definition at line 136 of file WorkloadVM.java.

136  {
137  query.setByParticipant(contact);
138  }
void setByParticipant(IContact byParticipant)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSearchValue()

void org.turro.dossier.workload.WorkloadVM.setSearchValue ( String  searchValue)

Definition at line 112 of file WorkloadVM.java.

112  {
113  query.setSearchValue(searchValue);
114  }
Here is the call graph for this function:

◆ setSelectedCategory()

void org.turro.dossier.workload.WorkloadVM.setSelectedCategory ( Category  category)

Definition at line 120 of file WorkloadVM.java.

120  {
121  query.setCategory(category);
122  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedDossier()

void org.turro.dossier.workload.WorkloadVM.setSelectedDossier ( Dossier  dossier)

Definition at line 128 of file WorkloadVM.java.

128  {
129  query.setDossier(dossier);
130  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStatus()

void org.turro.dossier.workload.WorkloadVM.setStatus ( Set< IssueStatus status)

Definition at line 148 of file WorkloadVM.java.

148  {
149  query.setStatus(status);
150  }
void setStatus(Set< IssueStatus > status)
Here is the call graph for this function:

◆ setTypes()

void org.turro.dossier.workload.WorkloadVM.setTypes ( Set< IssueType types)

Definition at line 156 of file WorkloadVM.java.

156  {
157  query.setTypes(types);
158  }
void setTypes(Set< IssueType > types)
Here is the call graph for this function:

◆ showAttachments()

void org.turro.dossier.workload.WorkloadVM.showAttachments ( @BindingParam("issue") Issue  issue)

Definition at line 94 of file WorkloadVM.java.

94  {
95  Application app = Application.getApplication();
96  IssueWrapper iw = new IssueWrapper(issue);
97  if(app.isInRole("issue:show") &&
98  (app.isInRole("issue:all") || iw.isFullParticipant())) {
99  IssueAttachTree iat = new IssueAttachTree();
100  iat.setEntity(issue);
101  iat.setChanges(new Changes());
102  SelectionDialog.showComponent(Framework.getCurrent().getPage(), I_.get("Attachments"),
103  iat, "80%", "80%", null);
104  }
105  }
Here is the call graph for this function:

◆ showInfo()

void org.turro.dossier.workload.WorkloadVM.showInfo ( @BindingParam("item") WorkloadItem  item)

Definition at line 59 of file WorkloadVM.java.

59  {
60  Application app = Application.getApplication();
61  IssueWrapper iw = new IssueWrapper(item.getIssue());
62  if(app.isInRole("issue:show") &&
63  (app.isInRole("issue:all") || iw.isFullParticipant())) {
64  DossiersInfo.popup(item.getIssue());
65  }
66  }
Here is the call graph for this function:

◆ update()

void org.turro.dossier.workload.WorkloadVM.update ( )

Definition at line 70 of file WorkloadVM.java.

70 {}

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