@esfaenza/admin-module 15.2.49 → 15.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/esm2020/lib/admin-module.module.mjs +10 -10
  2. package/esm2020/lib/components/audits/adm_audits.component.mjs +3 -2
  3. package/esm2020/lib/components/dynamic_views/adm_dynamic_views.component.mjs +5 -4
  4. package/esm2020/lib/components/enqueues/adm_enq.component.mjs +4 -3
  5. package/esm2020/lib/components/logs/adm_logs.component.mjs +3 -2
  6. package/esm2020/lib/components/metrics/metrics_search.component.mjs +4 -3
  7. package/esm2020/lib/components/mtd_query/mtd_query.component.mjs +9 -5
  8. package/esm2020/lib/components/profiler/adm_profiler.component.mjs +6 -5
  9. package/esm2020/lib/components/topact/topact_search.component.mjs +9 -6
  10. package/esm2020/lib/components/workers/adm_wrk.component.mjs +6 -5
  11. package/esm2020/lib/models/components/ProcessesView.mjs +1 -1
  12. package/esm2020/lib/models/components/TopActivitiesDataView.mjs +1 -1
  13. package/esm2020/lib/services/admin-module.base.service.mjs +51 -37
  14. package/fesm2015/esfaenza-admin-module.mjs +99 -71
  15. package/fesm2015/esfaenza-admin-module.mjs.map +1 -1
  16. package/fesm2020/esfaenza-admin-module.mjs +99 -71
  17. package/fesm2020/esfaenza-admin-module.mjs.map +1 -1
  18. package/lib/components/audits/adm_audits.component.d.ts +1 -0
  19. package/lib/components/dynamic_views/adm_dynamic_views.component.d.ts +1 -0
  20. package/lib/components/enqueues/adm_enq.component.d.ts +1 -0
  21. package/lib/components/logs/adm_logs.component.d.ts +1 -0
  22. package/lib/components/metrics/metrics_search.component.d.ts +1 -0
  23. package/lib/components/mtd_query/mtd_query.component.d.ts +2 -0
  24. package/lib/components/profiler/adm_profiler.component.d.ts +1 -0
  25. package/lib/components/topact/topact_search.component.d.ts +1 -0
  26. package/lib/components/workers/adm_wrk.component.d.ts +1 -0
  27. package/lib/models/components/ProcessesView.d.ts +1 -0
  28. package/lib/models/components/TopActivitiesDataView.d.ts +1 -0
  29. package/lib/services/admin-module.base.service.d.ts +18 -18
  30. package/package.json +1 -1
@@ -106,129 +106,143 @@ class AdminModuleBaseService {
106
106
  return ret;
107
107
  });
108
108
  }
109
- doSetProcessTracing(instanceid, sid, serial, enable) {
109
+ doSetProcessTracing(be, instanceid, sid, serial, enable) {
110
110
  return __awaiter(this, void 0, void 0, function* () {
111
111
  var pars = new HttpParams()
112
112
  .set("instanceid", instanceid)
113
113
  .set("sid", sid)
114
114
  .set("serial", serial)
115
- .set("enable", enable);
115
+ .set("enable", enable)
116
+ .set("be", be);
116
117
  let ret = yield firstValueFrom(this.http.get(GET_Director_SetProcessTracing, pars));
117
118
  return ret;
118
119
  });
119
120
  }
120
- doKillProcess(instanceid, sid, serial) {
121
+ doKillProcess(be, instanceid, sid, serial) {
121
122
  return __awaiter(this, void 0, void 0, function* () {
122
123
  var pars = new HttpParams()
123
124
  .set("instanceid", instanceid)
124
125
  .set("sid", sid)
125
- .set("serial", serial);
126
+ .set("serial", serial)
127
+ .set("be", be);
126
128
  let ret = yield firstValueFrom(this.http.get(GET_Director_KillProcess, pars));
127
129
  return ret;
128
130
  });
129
131
  }
130
- doChangeProcessConsumerGroup(instanceid, sid, serial, consumerGroup) {
132
+ doChangeProcessConsumerGroup(be, instanceid, sid, serial, consumerGroup) {
131
133
  return __awaiter(this, void 0, void 0, function* () {
132
134
  var pars = new HttpParams()
133
135
  .set("instanceid", instanceid)
134
136
  .set("sid", sid)
135
137
  .set("serial", serial)
136
- .set("consumer_group", consumerGroup);
138
+ .set("consumer_group", consumerGroup)
139
+ .set("be", be);
137
140
  let ret = yield firstValueFrom(this.http.get(GET_Director_ChangeProcessConsumerGroup, pars));
138
141
  return ret;
139
142
  });
140
143
  }
141
- getConsumerGroups() {
144
+ getConsumerGroups(be) {
142
145
  return __awaiter(this, void 0, void 0, function* () {
143
- let ret = yield firstValueFrom(this.http.get(GET_Director_GetConsumerGroups));
146
+ var pars = new HttpParams().set("be", be);
147
+ let ret = yield firstValueFrom(this.http.get(GET_Director_GetConsumerGroups, pars));
144
148
  return ret;
145
149
  });
146
150
  }
147
- getServerLogs(from, to) {
151
+ getServerLogs(be, from, to) {
148
152
  return __awaiter(this, void 0, void 0, function* () {
149
- var pars = new HttpParams().set("from", from).set("to", to);
153
+ var pars = new HttpParams().set("from", from).set("to", to).set("be", be);
150
154
  let ret = yield firstValueFrom(this.http.get(GET_Director_GetServerLogs, pars));
151
155
  return ret;
152
156
  });
153
157
  }
154
- getTopActivities(sv) {
158
+ getTopActivities(be, sv) {
155
159
  return __awaiter(this, void 0, void 0, function* () {
156
- let ret = yield firstValueFrom(this.http.post(POST_Director_GetTopActivities, sv));
160
+ var pars = new HttpParams().set("be", be);
161
+ let ret = yield firstValueFrom(this.http.post(POST_Director_GetTopActivities, sv, pars));
157
162
  return ret;
158
163
  });
159
164
  }
160
- getInfos() {
165
+ getInfos(be) {
161
166
  return __awaiter(this, void 0, void 0, function* () {
162
- let ret = yield firstValueFrom(this.http.get(GET_Director_GetInfos, null, null, false).pipe(catchError(_ => of(null))));
167
+ var pars = new HttpParams().set("be", be);
168
+ let ret = yield firstValueFrom(this.http.get(GET_Director_GetInfos, pars, null, false).pipe(catchError(_ => of(null))));
163
169
  return ret;
164
170
  });
165
171
  }
166
- getNodeStats(nodeId) {
172
+ getNodeStats(be, nodeId) {
167
173
  return __awaiter(this, void 0, void 0, function* () {
168
- let pars = new HttpParams().set("nodeId", nodeId);
174
+ let pars = new HttpParams().set("nodeId", nodeId).set("be", be);
169
175
  let ret = yield firstValueFrom(this.http.get(GET_Director_GetNodeStats, pars));
170
176
  return ret;
171
177
  });
172
178
  }
173
- getSessionStats(sid, serial) {
179
+ getSessionStats(be, sid, serial) {
174
180
  return __awaiter(this, void 0, void 0, function* () {
175
- let pars = new HttpParams().set('sid', sid).set('serial', serial);
181
+ let pars = new HttpParams().set('sid', sid).set('serial', serial).set("be", be);
176
182
  let ret = yield firstValueFrom(this.http.get(GET_Director_GetSessionStats, pars));
177
183
  return ret;
178
184
  });
179
185
  }
180
- getProfilerDataNodes(sv) {
186
+ getProfilerDataNodes(be, sv) {
181
187
  return __awaiter(this, void 0, void 0, function* () {
182
- let ret = yield firstValueFrom(this.http.post(POST_Director_GetProfilerDataNodes, sv));
188
+ var pars = new HttpParams().set("be", be);
189
+ let ret = yield firstValueFrom(this.http.post(POST_Director_GetProfilerDataNodes, sv, pars));
183
190
  return ret;
184
191
  });
185
192
  }
186
- downloadWorkloadReport(from, to) {
187
- let pars = new HttpParams().set("from", from || "").set("to", to || "");
193
+ downloadWorkloadReport(be, from, to) {
194
+ let pars = new HttpParams().set("from", from || "").set("to", to || "").set("be", be);
188
195
  this.http.getFileNative(GET_Director_GetWorkloadReport, pars);
189
196
  }
190
- getMetrics(sv) {
197
+ getMetrics(be, sv) {
191
198
  return __awaiter(this, void 0, void 0, function* () {
192
- let ret = yield firstValueFrom(this.http.post(POST_Director_GetMetrics, sv));
199
+ var pars = new HttpParams().set("be", be);
200
+ let ret = yield firstValueFrom(this.http.post(POST_Director_GetMetrics, sv, pars));
193
201
  return ret;
194
202
  });
195
203
  }
196
- getMetricsList(from, to) {
204
+ getMetricsList(be, from, to) {
197
205
  return __awaiter(this, void 0, void 0, function* () {
198
206
  let pars = new HttpParams()
199
207
  .set("from", from || "")
200
- .set("to", to || "");
208
+ .set("to", to || "")
209
+ .set("be", be);
201
210
  let ret = yield firstValueFrom(this.http.get(GET_Director_GetMetrics, pars));
202
211
  return ret.sort((a, b) => a.name.localeCompare(b.name));
203
212
  });
204
213
  }
205
- getServerLocks(sv) {
214
+ getServerLocks(be, sv) {
206
215
  return __awaiter(this, void 0, void 0, function* () {
207
- let ret = yield firstValueFrom(this.http.post(POST_Director_GetServerLocks, sv));
216
+ var pars = new HttpParams().set("be", be);
217
+ let ret = yield firstValueFrom(this.http.post(POST_Director_GetServerLocks, sv, pars));
208
218
  return ret;
209
219
  });
210
220
  }
211
- getServerQuery(sv) {
221
+ getServerQuery(be, sv) {
212
222
  return __awaiter(this, void 0, void 0, function* () {
213
- let ret = yield firstValueFrom(this.http.post(POST_Director_GetServerQuery, sv));
223
+ var pars = new HttpParams().set("be", be);
224
+ let ret = yield firstValueFrom(this.http.post(POST_Director_GetServerQuery, sv, pars));
214
225
  return ret;
215
226
  });
216
227
  }
217
- getDynamicViewData(sv) {
228
+ getDynamicViewData(be, sv) {
218
229
  return __awaiter(this, void 0, void 0, function* () {
219
- let ret = yield firstValueFrom(this.http.post(POST_Director_GetDynamicViewData, sv));
230
+ var pars = new HttpParams().set("be", be);
231
+ let ret = yield firstValueFrom(this.http.post(POST_Director_GetDynamicViewData, sv, pars));
220
232
  return ret;
221
233
  });
222
234
  }
223
- getDynamicViews() {
235
+ getDynamicViews(be) {
224
236
  return __awaiter(this, void 0, void 0, function* () {
225
- let ret = yield firstValueFrom(this.http.get(GET_Director_GetDynamicViews));
237
+ var pars = new HttpParams().set("be", be);
238
+ let ret = yield firstValueFrom(this.http.get(GET_Director_GetDynamicViews, pars));
226
239
  return ret;
227
240
  });
228
241
  }
229
- getServerAudits(sv) {
242
+ getServerAudits(be, sv) {
230
243
  return __awaiter(this, void 0, void 0, function* () {
231
- let ret = yield firstValueFrom(this.http.post(POST_Director_GetServerAudits, sv));
244
+ var pars = new HttpParams().set("be", be);
245
+ let ret = yield firstValueFrom(this.http.post(POST_Director_GetServerAudits, sv, pars));
232
246
  return ret;
233
247
  });
234
248
  }
@@ -253,6 +267,7 @@ class AdmAuditsComponent {
253
267
  this.Actions = [];
254
268
  this.HttpMethods = [];
255
269
  this.searchInProgress = false;
270
+ this.be = route.snapshot.params["be"] || "";
256
271
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
257
272
  this.HttpMethods = [
258
273
  { id: "GET", description: "GET" },
@@ -310,7 +325,7 @@ class AdmAuditsComponent {
310
325
  }
311
326
  POSTGetProcesses(data) {
312
327
  return __awaiter(this, void 0, void 0, function* () {
313
- this.searchView = yield this.adms.getServerAudits(data);
328
+ this.searchView = yield this.adms.getServerAudits(this.be, data);
314
329
  this.searchInProgress = false;
315
330
  this.localStorage.setItem("HotAudittato", this.searchView).subscribe();
316
331
  });
@@ -402,6 +417,7 @@ class AdmWrkComponent {
402
417
  this.CGs = [];
403
418
  this.CgDictionariesLoaded = false;
404
419
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
420
+ this.be = route.snapshot.params["be"] || "";
405
421
  this.DynamicOps = [
406
422
  new EsTableOperationDefinition("trace_on", this.lc.loc("Attiva Tracing Processo"), "fa fa-circle text-danger", "", "trace_enabled", "N"),
407
423
  new EsTableOperationDefinition("trace_off", this.lc.loc("Disattiva Tracing Progetto"), "fa fa-circle text-success", "", "trace_enabled", "Y"),
@@ -507,13 +523,13 @@ class AdmWrkComponent {
507
523
  }
508
524
  toggleTracing(process, tracing) {
509
525
  return __awaiter(this, void 0, void 0, function* () {
510
- let res = yield this.adms.doSetProcessTracing(process.properties["inst_id"] || process.properties["INST_ID"], process.properties["sid"] || process.properties["SID"], process.properties["serial"] || process.properties["SERIAL"], tracing.toString());
526
+ let res = yield this.adms.doSetProcessTracing(this.be, process.properties["inst_id"] || process.properties["INST_ID"], process.properties["sid"] || process.properties["SID"], process.properties["serial"] || process.properties["SERIAL"], tracing.toString());
511
527
  this.msgExts.manageStringResponse(res, "", this.lc.loc("Errori nella modifica del Tracing del Processo"), () => this.sendSearch());
512
528
  });
513
529
  }
514
530
  killProcess(process) {
515
531
  this.msgExts.simpleWarningWithChoice(this.lc.loc("Conferma Terminazione del Processo"), this.lc.loc("Sei sicuro di voler Terminare il processo selezionato? L'utente relativo sara' disconnesso"), () => __awaiter(this, void 0, void 0, function* () {
516
- let res = yield this.adms.doKillProcess(process.properties["inst_id"] || process.properties["INST_ID"], process.properties["sid"] || process.properties["SID"], process.properties["serial"] || process.properties["SERIAL"]);
532
+ let res = yield this.adms.doKillProcess(this.be, process.properties["inst_id"] || process.properties["INST_ID"], process.properties["sid"] || process.properties["SID"], process.properties["serial"] || process.properties["SERIAL"]);
517
533
  this.msgExts.manageStringResponse(res, this.lc.loc("Processo ucciso con successo"), this.lc.loc("Errori durante la Kill del Processo"), () => this.sendSearch());
518
534
  }));
519
535
  }
@@ -528,7 +544,7 @@ class AdmWrkComponent {
528
544
  }
529
545
  loadCgDictionaries() {
530
546
  return __awaiter(this, void 0, void 0, function* () {
531
- this.CGs = yield this.adms.getConsumerGroups();
547
+ this.CGs = yield this.adms.getConsumerGroups(this.be);
532
548
  });
533
549
  }
534
550
  setupChangeCg() {
@@ -537,7 +553,7 @@ class AdmWrkComponent {
537
553
  }
538
554
  doChangeCg() {
539
555
  return __awaiter(this, void 0, void 0, function* () {
540
- let res = yield this.adms.doChangeProcessConsumerGroup(this.ProcessOnEdit.properties["inst_id"] || this.ProcessOnEdit.properties["INST_ID"], this.ProcessOnEdit.properties["sid"] || this.ProcessOnEdit.properties["SID"], this.ProcessOnEdit.properties["serial"] || this.ProcessOnEdit.properties["SERIAL"], this.newCg);
556
+ let res = yield this.adms.doChangeProcessConsumerGroup(this.be, this.ProcessOnEdit.properties["inst_id"] || this.ProcessOnEdit.properties["INST_ID"], this.ProcessOnEdit.properties["sid"] || this.ProcessOnEdit.properties["SID"], this.ProcessOnEdit.properties["serial"] || this.ProcessOnEdit.properties["SERIAL"], this.newCg);
541
557
  this.msgExts.manageStringResponse(res, this.lc.loc("Gruppo di Consumo modificato con successo"), this.lc.loc("Errori nella modifica del Gruppo di Consumo"), () => this.sendSearch());
542
558
  return true;
543
559
  });
@@ -755,6 +771,7 @@ class AdmProfilerComponent {
755
771
  this.adms = adms;
756
772
  this.mod = mod;
757
773
  this.searchView = new ProfilerDataNodesView();
774
+ this.be = route.snapshot.params["be"] || "";
758
775
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
759
776
  }
760
777
  ngOnInit() {
@@ -800,11 +817,11 @@ class AdmProfilerComponent {
800
817
  this.POSTGetItems(this.searchView);
801
818
  }
802
819
  downloadWorkloadReport() {
803
- this.adms.downloadWorkloadReport(this.searchView.filterfrom, this.searchView.filterto);
820
+ this.adms.downloadWorkloadReport(this.be, this.searchView.filterfrom, this.searchView.filterto);
804
821
  }
805
822
  POSTGetItems(data) {
806
823
  return __awaiter(this, void 0, void 0, function* () {
807
- this.searchView = yield this.adms.getProfilerDataNodes(data);
824
+ this.searchView = yield this.adms.getProfilerDataNodes(this.be, data);
808
825
  this.searchView.searchinprogress = false;
809
826
  this.localStorage.setItem("HotSearchProfilato", this.searchView).subscribe();
810
827
  });
@@ -814,14 +831,14 @@ class AdmProfilerComponent {
814
831
  var view = JSON.parse(JSON.stringify(this.searchView));
815
832
  view.page = 1;
816
833
  view.itemsperpageoverride = 9999999;
817
- let res = yield this.adms.getProfilerDataNodes(view);
834
+ let res = yield this.adms.getProfilerDataNodes(this.be, view);
818
835
  dataCallBack(res.items, ProfilerDataNode);
819
836
  });
820
837
  }
821
838
  loadNodeDetails(nodeId) {
822
839
  this.NodeDetails = null;
823
840
  requestAnimationFrame(() => __awaiter(this, void 0, void 0, function* () {
824
- this.NodeDetails = yield this.adms.getNodeStats(nodeId);
841
+ this.NodeDetails = yield this.adms.getNodeStats(this.be, nodeId);
825
842
  }));
826
843
  }
827
844
  }
@@ -901,6 +918,7 @@ class AdmTopActivitiesComponent {
901
918
  ["iotime"]: "IO"
902
919
  };
903
920
  this.seriesPropertiesMapping2 = {};
921
+ this.be = route.snapshot.params["be"] || "";
904
922
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
905
923
  }
906
924
  ngOnInit() {
@@ -915,7 +933,8 @@ class AdmTopActivitiesComponent {
915
933
  updateRealTimeWindow() {
916
934
  return __awaiter(this, void 0, void 0, function* () {
917
935
  let data = new TopActivitiesDataView();
918
- data = yield this.adms.getTopActivities(data);
936
+ data.filterbe = this.be;
937
+ data = yield this.adms.getTopActivities(this.be, data);
919
938
  let reference = data.items[0];
920
939
  for (let i = 0; i < reference.actsessions.length; i++) {
921
940
  let itemref = reference.actsessions[i];
@@ -978,14 +997,15 @@ class AdmTopActivitiesComponent {
978
997
  }
979
998
  POSTGetItems(data, update) {
980
999
  return __awaiter(this, void 0, void 0, function* () {
981
- let res = yield this.adms.getTopActivities(data);
1000
+ data.filterbe = this.be;
1001
+ let res = yield this.adms.getTopActivities(this.be, data);
982
1002
  //Se sono in modalità di update non devo toccare la searchView attuale se non per il searchinprogress che viene messo dall'es table
983
1003
  if (!update) {
984
1004
  this.searchView = res;
985
1005
  this.localStorage.setItem("HotSearchTopAct", this.searchView).subscribe();
986
1006
  }
987
1007
  // DirectorInfos anche se per qualche motivo crasha di brutto è comunque non obbligatorio, evito di non caricare la pagina solo perché lui scoppia
988
- let dirinfos = yield this.adms.getInfos();
1008
+ let dirinfos = yield this.adms.getInfos(this.be);
989
1009
  this.searchView.searchinprogress = false;
990
1010
  this.reviewBindings(update, res, dirinfos);
991
1011
  });
@@ -993,7 +1013,7 @@ class AdmTopActivitiesComponent {
993
1013
  loadNodeDetails(nodeId) {
994
1014
  this.NodeDetails = null;
995
1015
  requestAnimationFrame(() => __awaiter(this, void 0, void 0, function* () {
996
- this.NodeDetails = yield this.adms.getNodeStats(nodeId);
1016
+ this.NodeDetails = yield this.adms.getNodeStats(this.be, nodeId);
997
1017
  }));
998
1018
  }
999
1019
  reviewBindings(update, searchViewOverride, dirInfos) {
@@ -1068,7 +1088,7 @@ class AdmTopActivitiesComponent {
1068
1088
  loadSessionDetails(sessionId, serialNo) {
1069
1089
  this.SessionDetails = null;
1070
1090
  requestAnimationFrame(() => __awaiter(this, void 0, void 0, function* () {
1071
- this.SessionDetails = yield this.adms.getSessionStats(sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(), serialNo === null || serialNo === void 0 ? void 0 : serialNo.toString());
1091
+ this.SessionDetails = yield this.adms.getSessionStats(this.be, sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(), serialNo === null || serialNo === void 0 ? void 0 : serialNo.toString());
1072
1092
  this.threadSelectionChanged(null);
1073
1093
  }));
1074
1094
  }
@@ -1140,6 +1160,7 @@ class AdmEnqComponent {
1140
1160
  this.adms = adms;
1141
1161
  this.mod = mod;
1142
1162
  this.locksView = new LocksView();
1163
+ this.be = route.snapshot.params["be"] || "";
1143
1164
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1144
1165
  }
1145
1166
  ngOnInit() {
@@ -1180,7 +1201,7 @@ class AdmEnqComponent {
1180
1201
  }
1181
1202
  POSTGetProcesses(data) {
1182
1203
  return __awaiter(this, void 0, void 0, function* () {
1183
- this.locksView = yield this.adms.getServerLocks(data);
1204
+ this.locksView = yield this.adms.getServerLocks(this.be, data);
1184
1205
  this.locksView.searchinprogress = false;
1185
1206
  this.localStorage.setItem("HotEnqueue", this.locksView).subscribe();
1186
1207
  });
@@ -1190,7 +1211,7 @@ class AdmEnqComponent {
1190
1211
  var view = JSON.parse(JSON.stringify(this.locksView));
1191
1212
  view.page = 1;
1192
1213
  view.itemsperpageoverride = 9999999;
1193
- let tmp = yield this.adms.getServerLocks(view);
1214
+ let tmp = yield this.adms.getServerLocks(this.be, view);
1194
1215
  callback(tmp.items, GenericItem);
1195
1216
  });
1196
1217
  }
@@ -1248,6 +1269,7 @@ class AdmMetricsComponent {
1248
1269
  this.selectedInstance = "";
1249
1270
  this.instanceRequired = false;
1250
1271
  this.metricsToShow = [];
1272
+ this.be = route.snapshot.params["be"] || "";
1251
1273
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1252
1274
  }
1253
1275
  ngOnInit() {
@@ -1267,7 +1289,7 @@ class AdmMetricsComponent {
1267
1289
  this.Instances = [];
1268
1290
  this.selectedInstance = "";
1269
1291
  this.searchView.filtermetrics = [];
1270
- this.Metrics = yield this.adms.getMetricsList(this.searchView.filterfrom || "", this.searchView.filterto || "");
1292
+ this.Metrics = yield this.adms.getMetricsList(this.be, this.searchView.filterfrom || "", this.searchView.filterto || "");
1271
1293
  });
1272
1294
  }
1273
1295
  doInit(ignoreStorage) {
@@ -1312,7 +1334,7 @@ class AdmMetricsComponent {
1312
1334
  POSTGetItems(data, update) {
1313
1335
  return __awaiter(this, void 0, void 0, function* () {
1314
1336
  data.filterrealtime = update ? data.filterrealtime : !(!!data.filterfrom || !!data.filterto);
1315
- let res = yield this.adms.getMetrics(data);
1337
+ let res = yield this.adms.getMetrics(this.be, data);
1316
1338
  //Se sono in modalità di update non devo toccare la searchView attuale se non per il searchinprogress che viene messo dall'es table
1317
1339
  if (!update) {
1318
1340
  this.selectedInstance = "";
@@ -1404,6 +1426,7 @@ class AdmLogsComponent {
1404
1426
  this.adms = adms;
1405
1427
  this.filterfrom = "";
1406
1428
  this.filterto = "";
1429
+ this.be = route.snapshot.params["be"] || "";
1407
1430
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1408
1431
  }
1409
1432
  ngOnInit() {
@@ -1414,7 +1437,7 @@ class AdmLogsComponent {
1414
1437
  sendSearch() {
1415
1438
  return __awaiter(this, void 0, void 0, function* () {
1416
1439
  this.searchinprogress = true;
1417
- this.Log = yield this.adms.getServerLogs(this.filterfrom, this.filterto);
1440
+ this.Log = yield this.adms.getServerLogs(this.be, this.filterfrom, this.filterto);
1418
1441
  this.searchinprogress = false;
1419
1442
  });
1420
1443
  }
@@ -1461,11 +1484,12 @@ class AdmDynamicViewsComponent {
1461
1484
  this.currentName = "";
1462
1485
  // Staccato dalla view perché deve essere distrutta e ricreata di continuo
1463
1486
  this.filterName = "";
1487
+ this.be = route.snapshot.params["be"] || "";
1464
1488
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1465
1489
  }
1466
1490
  ngOnInit() {
1467
1491
  return __awaiter(this, void 0, void 0, function* () {
1468
- this.Names = yield this.adms.getDynamicViews();
1492
+ this.Names = yield this.adms.getDynamicViews(this.be);
1469
1493
  this.storageSub = this.route.queryParams.subscribe(params => { this.Init(params["ignoreStorage"]); });
1470
1494
  });
1471
1495
  }
@@ -1511,7 +1535,7 @@ class AdmDynamicViewsComponent {
1511
1535
  var view = JSON.parse(JSON.stringify(this.searchView));
1512
1536
  view.page = 1;
1513
1537
  view.itemsperpageoverride = 9999999;
1514
- let tmp = yield this.adms.getDynamicViewData(view);
1538
+ let tmp = yield this.adms.getDynamicViewData(this.be, view);
1515
1539
  callback(tmp.items, GenericItem);
1516
1540
  });
1517
1541
  }
@@ -1531,7 +1555,7 @@ class AdmDynamicViewsComponent {
1531
1555
  this.searchView.page = 1;
1532
1556
  this.searchView.filtername = this.currentName;
1533
1557
  }
1534
- this.searchView = yield this.adms.getDynamicViewData(this.searchView);
1558
+ this.searchView = yield this.adms.getDynamicViewData(this.be, this.searchView);
1535
1559
  this.searchView.searchinprogress = false;
1536
1560
  this.localStorage.setItem("HotDinamitato", this.searchView).subscribe();
1537
1561
  });
@@ -1578,6 +1602,8 @@ class MtdQueryComponent {
1578
1602
  this.adms = adms;
1579
1603
  this.mod = mod;
1580
1604
  this.searchView = new QueryView();
1605
+ this.searching = false;
1606
+ this.be = route.snapshot.params["be"] || "";
1581
1607
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1582
1608
  }
1583
1609
  ngOnInit() {
@@ -1612,6 +1638,7 @@ class MtdQueryComponent {
1612
1638
  }
1613
1639
  }
1614
1640
  sendSearch(resetPage = true) {
1641
+ this.searching = true;
1615
1642
  if (resetPage)
1616
1643
  this.searchView.page = 1;
1617
1644
  if (!this.searchView.filterquery)
@@ -1620,9 +1647,10 @@ class MtdQueryComponent {
1620
1647
  }
1621
1648
  POSTGetSearch(data) {
1622
1649
  return __awaiter(this, void 0, void 0, function* () {
1623
- this.searchView = yield this.adms.getServerQuery(data);
1650
+ this.searchView = yield this.adms.getServerQuery(this.be, data);
1624
1651
  this.searchView.searchinprogress = false;
1625
1652
  this.localStorage.setItem("HotEnqueue", this.searchView).subscribe();
1653
+ this.searching = false;
1626
1654
  });
1627
1655
  }
1628
1656
  prepareExport(callback) {
@@ -1630,16 +1658,16 @@ class MtdQueryComponent {
1630
1658
  var view = JSON.parse(JSON.stringify(this.searchView));
1631
1659
  view.page = 1;
1632
1660
  view.itemsperpageoverride = 9999999;
1633
- let tmp = yield this.adms.getServerLocks(view);
1661
+ let tmp = yield this.adms.getServerLocks(this.be, view);
1634
1662
  callback(tmp.items, GenericItem);
1635
1663
  });
1636
1664
  }
1637
1665
  }
1638
1666
  MtdQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MtdQueryComponent, deps: [{ token: i1.LocalizationService }, { token: i3.PreferencesService }, { token: i1$1.ExportService }, { token: i1$1.InterComService }, { token: i4.ActivatedRoute }, { token: i5.Location }, { token: AdminModuleBaseService }, { token: ADM_MODULE_PATH }], target: i0.ɵɵFactoryTarget.Component });
1639
- MtdQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MtdQueryComponent, selector: "adm_mtd_query", ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Esecuzione Query Metadati' | localize: lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <form role=\"form\">\r\n <div class=\"col-md-12 row app-first-filter-line\">\r\n <div class=\"col-xl-11 col-lg-11 col-md-11 app-filter-wrapper\">\r\n <form-textarea [Rows]=\"3\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterquery\" name=\"filterquery\" [Placeholder]=\"'Query'\"></form-textarea>\r\n </div>\r\n <button class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Carico i Risultati' | localize: lc}}...</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\" [ExportFileName]=\"'Results.csv'\" [ExportFunction]=\"prepareExport.bind(this)\"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i9.EsTableComponent, selector: "es-table", inputs: ["EsTableTemplate", "CornerMenuOptions", "ColumnsResizable", "ColumnsPinnable", "AutoUpdate", "Height", "EmptySpaceBackgroundColor", "EsTableHandledSearch", "MaxHeight", "ContainerClass", "XLSXExport", "CSVExport", "AllSearch", "HighCellDensity", "Selection", "ShowLoadingOnBootstrap", "Removal", "RemovalCondition", "Export", "ShiftClick", "CountLabel", "HidePaging", "HidePagingCount", "HidePagingButtons", "ContextMenu", "ExportFileName", "TableClass", "ExportFunction", "ExportOnlyVisibleColumns", "HasHeaderGroup", "HasSecondaryHeaderGroup", "HeaderHidden", "BodyHidden", "SelectionDisabled", "SingleSelection", "RowClassAssigner", "OrderByColumn", "MultipleOrderingDirectives", "HiddenColumns", "ColumnsOrdering", "SearchView", "SelectAll", "UseArrayModePaging", "DynamicRowColumnsDefinition", "DynamicOperations", "Hierarchy", "ParentKey", "OwnKey", "StartsExpanded", "SavePreferences", "DefaultAlignment", "PagingStyle", "RowGroupingPagingStyle", "ItemSourceProperty", "UseSelectionCache", "ShowItemGroupsColumns", "Editable", "RangeSelection", "SearchThrottle", "ArraymodeItemsPerPage"], outputs: ["onOrderChanged", "onSearchRequest", "onSelectionChanged", "onRemoval", "onAbortRemoval", "onModelChange", "onOpenContextMenu", "onCornerAction", "onDynamicOperation"] }, { kind: "component", type: i9$1.FormTextareaComponent, selector: "form-textarea", inputs: ["Rows"] }, { kind: "pipe", type: i1.LocalizePipe, name: "localize" }], viewProviders: [{ provide: LocalizationService, useClass: MtdQueryLoc }] });
1667
+ MtdQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MtdQueryComponent, selector: "adm_mtd_query", ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Esecuzione Query Metadati' | localize: lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <form role=\"form\">\r\n <div class=\"col-md-12 row app-first-filter-line\">\r\n <div class=\"col-xl-11 col-lg-11 col-md-11 app-filter-wrapper\">\r\n <form-textarea [Rows]=\"3\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterquery\" name=\"filterquery\" [Placeholder]=\"'Query'\"></form-textarea>\r\n </div>\r\n <button class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Carico i Risultati' | localize: lc}}...</em></p>\r\n <div *ngIf=\"searchView && !searching\">\r\n <es-table [(ngModel)]=\"searchView\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\" [ExportFileName]=\"'Results.csv'\" [ExportFunction]=\"prepareExport.bind(this)\"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i9.EsTableComponent, selector: "es-table", inputs: ["EsTableTemplate", "CornerMenuOptions", "ColumnsResizable", "ColumnsPinnable", "AutoUpdate", "Height", "EmptySpaceBackgroundColor", "EsTableHandledSearch", "MaxHeight", "ContainerClass", "XLSXExport", "CSVExport", "AllSearch", "HighCellDensity", "Selection", "ShowLoadingOnBootstrap", "Removal", "RemovalCondition", "Export", "ShiftClick", "CountLabel", "HidePaging", "HidePagingCount", "HidePagingButtons", "ContextMenu", "ExportFileName", "TableClass", "ExportFunction", "ExportOnlyVisibleColumns", "HasHeaderGroup", "HasSecondaryHeaderGroup", "HeaderHidden", "BodyHidden", "SelectionDisabled", "SingleSelection", "RowClassAssigner", "OrderByColumn", "MultipleOrderingDirectives", "HiddenColumns", "ColumnsOrdering", "SearchView", "SelectAll", "UseArrayModePaging", "DynamicRowColumnsDefinition", "DynamicOperations", "Hierarchy", "ParentKey", "OwnKey", "StartsExpanded", "SavePreferences", "DefaultAlignment", "PagingStyle", "RowGroupingPagingStyle", "ItemSourceProperty", "UseSelectionCache", "ShowItemGroupsColumns", "Editable", "RangeSelection", "SearchThrottle", "ArraymodeItemsPerPage"], outputs: ["onOrderChanged", "onSearchRequest", "onSelectionChanged", "onRemoval", "onAbortRemoval", "onModelChange", "onOpenContextMenu", "onCornerAction", "onDynamicOperation"] }, { kind: "component", type: i9$1.FormTextareaComponent, selector: "form-textarea", inputs: ["Rows"] }, { kind: "pipe", type: i1.LocalizePipe, name: "localize" }], viewProviders: [{ provide: LocalizationService, useClass: MtdQueryLoc }] });
1640
1668
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MtdQueryComponent, decorators: [{
1641
1669
  type: Component,
1642
- args: [{ selector: "adm_mtd_query", viewProviders: [{ provide: LocalizationService, useClass: MtdQueryLoc }], template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Esecuzione Query Metadati' | localize: lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <form role=\"form\">\r\n <div class=\"col-md-12 row app-first-filter-line\">\r\n <div class=\"col-xl-11 col-lg-11 col-md-11 app-filter-wrapper\">\r\n <form-textarea [Rows]=\"3\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterquery\" name=\"filterquery\" [Placeholder]=\"'Query'\"></form-textarea>\r\n </div>\r\n <button class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Carico i Risultati' | localize: lc}}...</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\" [ExportFileName]=\"'Results.csv'\" [ExportFunction]=\"prepareExport.bind(this)\"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
1670
+ args: [{ selector: "adm_mtd_query", viewProviders: [{ provide: LocalizationService, useClass: MtdQueryLoc }], template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Esecuzione Query Metadati' | localize: lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <form role=\"form\">\r\n <div class=\"col-md-12 row app-first-filter-line\">\r\n <div class=\"col-xl-11 col-lg-11 col-md-11 app-filter-wrapper\">\r\n <form-textarea [Rows]=\"3\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterquery\" name=\"filterquery\" [Placeholder]=\"'Query'\"></form-textarea>\r\n </div>\r\n <button class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Carico i Risultati' | localize: lc}}...</em></p>\r\n <div *ngIf=\"searchView && !searching\">\r\n <es-table [(ngModel)]=\"searchView\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\" [ExportFileName]=\"'Results.csv'\" [ExportFunction]=\"prepareExport.bind(this)\"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
1643
1671
  }], ctorParameters: function () {
1644
1672
  return [{ type: i1.LocalizationService }, { type: i3.PreferencesService }, { type: i1$1.ExportService }, { type: i1$1.InterComService }, { type: i4.ActivatedRoute }, { type: i5.Location }, { type: AdminModuleBaseService }, { type: undefined, decorators: [{
1645
1673
  type: Inject,
@@ -1707,15 +1735,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1707
1735
  const routeConfig = [
1708
1736
  {
1709
1737
  path: "", children: [
1710
- { path: "serverworkers", component: AdmWrkComponent, data: { title: "Ricerca Processi Applicativi", internalNavigation: false } },
1711
- { path: "profiler", component: AdmProfilerComponent, data: { title: "Profiler del Server", internalNavigation: false } },
1712
- { path: "topact", component: AdmTopActivitiesComponent, data: { title: "Attività Principali", internalNavigation: false } },
1713
- { path: "metrics", component: AdmMetricsComponent, data: { title: "Metriche di Sistema", internalNavigation: false } },
1714
- { path: "serverlogs", component: AdmLogsComponent, data: { title: "Log del Server", internalNavigation: false } },
1715
- { path: "serveraudits", component: AdmAuditsComponent, data: { title: "Ricerca Audit Applicativi", internalNavigation: false } },
1716
- { path: "serverenqueues", component: AdmEnqComponent, data: { title: "Ricerca Lock Applicativi", internalNavigation: false } },
1717
- { path: "serverviews", component: AdmDynamicViewsComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } },
1718
- { path: "metadataquery", component: MtdQueryComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } }
1738
+ { path: "serverworkers/:be", component: AdmWrkComponent, data: { title: "Ricerca Processi Applicativi", internalNavigation: false } },
1739
+ { path: "profiler/:be", component: AdmProfilerComponent, data: { title: "Profiler del Server", internalNavigation: false } },
1740
+ { path: "topact/:be", component: AdmTopActivitiesComponent, data: { title: "Attività Principali", internalNavigation: false } },
1741
+ { path: "metrics/:be", component: AdmMetricsComponent, data: { title: "Metriche di Sistema", internalNavigation: false } },
1742
+ { path: "serverlogs/:be", component: AdmLogsComponent, data: { title: "Log del Server", internalNavigation: false } },
1743
+ { path: "serveraudits/:be", component: AdmAuditsComponent, data: { title: "Ricerca Audit Applicativi", internalNavigation: false } },
1744
+ { path: "serverenqueues/:be", component: AdmEnqComponent, data: { title: "Ricerca Lock Applicativi", internalNavigation: false } },
1745
+ { path: "serverviews/:be", component: AdmDynamicViewsComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } },
1746
+ { path: "metadataquery/:be", component: MtdQueryComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } }
1719
1747
  ]
1720
1748
  }
1721
1749
  ];