BrightSide Workbench Full Report + Source Code
org.turro.dossier.monitor.MonitorVM Class Reference

Public Member Functions

 MonitorVM ()
 
void showInfo (@BindingParam("monitor") DossierMonitor monitor)
 
void update ()
 
void selectCategory (@BindingParam("category") Category category)
 
void selectContact (@BindingParam("contact") IContact contact)
 
void selectFromAll (@BindingParam("checked") boolean checked)
 
void showAttachments (@BindingParam("wrapper") DossierWrapper wrapper)
 
void addInformation (@BindingParam("dossier") Dossier dossier)
 
void setSearchValue (String searchValue)
 
String getSearchValue ()
 
void setSelectedCategory (Category category)
 
Category getSelectedCategory ()
 
void setParticipant (IContact contact)
 
IContact getParticipant ()
 
Set< DossierStatusgetStatus ()
 
void setStatus (Set< DossierStatus > status)
 
Set< DossierTypegetType ()
 
void setType (Set< DossierType > type)
 
boolean isCkOthers ()
 
void setCkOthers (boolean ckOthers)
 
GroupsModel< DossierMonitor, Object, Object > getModel ()
 

Detailed Description

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

Definition at line 53 of file MonitorVM.java.

Constructor & Destructor Documentation

◆ MonitorVM()

org.turro.dossier.monitor.MonitorVM.MonitorVM ( )

Definition at line 59 of file MonitorVM.java.

59  {
60  query = new DossierResults();
61  query.setByParticipant(Authentication.getIContact());
62  query.setOrderBy("order by dossier.category.fullDescription");
63  Application app = Application.getApplication();
64  show = app.isInRole("dossier:show");
65  all = app.isInRole("dossier:all");
66  }
void setByParticipant(IContact byParticipant)
Here is the call graph for this function:

Member Function Documentation

◆ addInformation()

void org.turro.dossier.monitor.MonitorVM.addInformation ( @BindingParam("dossier") Dossier  dossier)

Definition at line 112 of file MonitorVM.java.

112  {
113  DossierMenu.addDossierInformation(dossier, null);
114  }
Here is the call graph for this function:

◆ getModel()

GroupsModel<DossierMonitor, Object, Object> org.turro.dossier.monitor.MonitorVM.getModel ( )

Definition at line 164 of file MonitorVM.java.

164  {
165  List<List<DossierMonitor>> data = new ArrayList<>();
166  List<String> headers = new ArrayList<>();
167  List<DossierMonitor> loading = null;
168 
169  Long catId = null;
170  Dao dao = new DossierPU();
171 
172  if(!waiting) {
173  Collection<DossierIds> dl = query.getDossierIdList();
174 
175  DossierIds.initDaoList(dao, dl);
176 
177  for(final DossierIds item : dl) {
178  Long current = item.categoryId;
179  if(catId == null || !(current.equals(catId))) {
180  catId = current;
181  headers.add(item.getCategory().getFullDescription());
182  loading = new ArrayList<>();
183  data.add(loading);
184  }
185  if(loading != null) {
186  loading.add(new DossierMonitor(dao, item.dossierId));
187  }
188  }
189  }
190 
191  waiting = false;
192 
193  return new SimpleGroupsModel<>(data, headers);
194  }
java.util.List< DossierIds > getDossierIdList()
Here is the call graph for this function:

◆ getParticipant()

IContact org.turro.dossier.monitor.MonitorVM.getParticipant ( )

Definition at line 136 of file MonitorVM.java.

136  {
137  return query.getByParticipant();
138  }
Here is the call graph for this function:

◆ getSearchValue()

String org.turro.dossier.monitor.MonitorVM.getSearchValue ( )

Definition at line 120 of file MonitorVM.java.

120  {
121  return query.getDossierValue();
122  }
Here is the call graph for this function:

◆ getSelectedCategory()

Category org.turro.dossier.monitor.MonitorVM.getSelectedCategory ( )

Definition at line 128 of file MonitorVM.java.

128  {
129  return query.getCategory();
130  }
Here is the call graph for this function:

◆ getStatus()

Set<DossierStatus> org.turro.dossier.monitor.MonitorVM.getStatus ( )

Definition at line 140 of file MonitorVM.java.

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

◆ getType()

Set<DossierType> org.turro.dossier.monitor.MonitorVM.getType ( )

Definition at line 148 of file MonitorVM.java.

148  {
149  return query.getType();
150  }
Here is the call graph for this function:

◆ isCkOthers()

boolean org.turro.dossier.monitor.MonitorVM.isCkOthers ( )

Definition at line 156 of file MonitorVM.java.

156  {
157  return query.isCkOthers();
158  }
Here is the call graph for this function:

◆ selectCategory()

void org.turro.dossier.monitor.MonitorVM.selectCategory ( @BindingParam("category") Category  category)

Definition at line 81 of file MonitorVM.java.

81  {
82  if(category instanceof Category) {
83  setSelectedCategory((Category) category);
84  } else {
85  setSelectedCategory(null);
86  }
87  }
void setSelectedCategory(Category category)
Definition: MonitorVM.java:124
Here is the call graph for this function:

◆ selectContact()

void org.turro.dossier.monitor.MonitorVM.selectContact ( @BindingParam("contact") IContact  contact)

Definition at line 91 of file MonitorVM.java.

91  {
92  setParticipant(contact);
93  }
void setParticipant(IContact contact)
Definition: MonitorVM.java:132
Here is the call graph for this function:

◆ selectFromAll()

void org.turro.dossier.monitor.MonitorVM.selectFromAll ( @BindingParam("checked") boolean  checked)

Definition at line 97 of file MonitorVM.java.

97  {
98  setCkOthers(checked);
99  }
void setCkOthers(boolean ckOthers)
Definition: MonitorVM.java:160
Here is the call graph for this function:

◆ setCkOthers()

void org.turro.dossier.monitor.MonitorVM.setCkOthers ( boolean  ckOthers)

Definition at line 160 of file MonitorVM.java.

160  {
161  query.setCkOthers(ckOthers);
162  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setParticipant()

void org.turro.dossier.monitor.MonitorVM.setParticipant ( IContact  contact)

Definition at line 132 of file MonitorVM.java.

132  {
133  query.setByParticipant(contact);
134  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSearchValue()

void org.turro.dossier.monitor.MonitorVM.setSearchValue ( String  searchValue)

Definition at line 116 of file MonitorVM.java.

116  {
117  query.setDossierValue(searchValue);
118  }
void setDossierValue(String dossierValue)
Here is the call graph for this function:

◆ setSelectedCategory()

void org.turro.dossier.monitor.MonitorVM.setSelectedCategory ( Category  category)

Definition at line 124 of file MonitorVM.java.

124  {
125  query.setCategory(category);
126  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStatus()

void org.turro.dossier.monitor.MonitorVM.setStatus ( Set< DossierStatus status)

Definition at line 144 of file MonitorVM.java.

144  {
145  query.setStatus(status);
146  }
void setStatus(Set< DossierStatus > status)
Here is the call graph for this function:

◆ setType()

void org.turro.dossier.monitor.MonitorVM.setType ( Set< DossierType type)

Definition at line 152 of file MonitorVM.java.

152  {
153  query.setType(type);
154  }
void setType(Set< DossierType > type)
Here is the call graph for this function:

◆ showAttachments()

void org.turro.dossier.monitor.MonitorVM.showAttachments ( @BindingParam("wrapper") DossierWrapper  wrapper)

Definition at line 102 of file MonitorVM.java.

102  {
103  if(show && (all || wrapper.isParticipant())) {
104  AttachmentControl ac = new AttachmentControl();
105  ac.setEntity(wrapper.getEntity());
106  SelectionDialog.showComponent(Framework.getCurrent().getPage(), I_.get("Attachments"),
107  ac, "80%", "80%", null);
108  }
109  }
Here is the call graph for this function:

◆ showInfo()

void org.turro.dossier.monitor.MonitorVM.showInfo ( @BindingParam("monitor") DossierMonitor  monitor)

Definition at line 69 of file MonitorVM.java.

69  {
70  if(show && (all || monitor.getWrapper().isParticipant())) {
71  DossiersInfo.popup(monitor.getDossier());
72  }
73  }
Here is the call graph for this function:

◆ update()

void org.turro.dossier.monitor.MonitorVM.update ( )

Definition at line 77 of file MonitorVM.java.

77 {}

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