@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
@@ -105,96 +105,110 @@ class AdminModuleBaseService {
105
105
  let ret = await firstValueFrom(this.http.post(POST_Director_GetServerWorkers, sv));
106
106
  return ret;
107
107
  }
108
- async doSetProcessTracing(instanceid, sid, serial, enable) {
108
+ async doSetProcessTracing(be, instanceid, sid, serial, enable) {
109
109
  var pars = new HttpParams()
110
110
  .set("instanceid", instanceid)
111
111
  .set("sid", sid)
112
112
  .set("serial", serial)
113
- .set("enable", enable);
113
+ .set("enable", enable)
114
+ .set("be", be);
114
115
  let ret = await firstValueFrom(this.http.get(GET_Director_SetProcessTracing, pars));
115
116
  return ret;
116
117
  }
117
- async doKillProcess(instanceid, sid, serial) {
118
+ async doKillProcess(be, instanceid, sid, serial) {
118
119
  var pars = new HttpParams()
119
120
  .set("instanceid", instanceid)
120
121
  .set("sid", sid)
121
- .set("serial", serial);
122
+ .set("serial", serial)
123
+ .set("be", be);
122
124
  let ret = await firstValueFrom(this.http.get(GET_Director_KillProcess, pars));
123
125
  return ret;
124
126
  }
125
- async doChangeProcessConsumerGroup(instanceid, sid, serial, consumerGroup) {
127
+ async doChangeProcessConsumerGroup(be, instanceid, sid, serial, consumerGroup) {
126
128
  var pars = new HttpParams()
127
129
  .set("instanceid", instanceid)
128
130
  .set("sid", sid)
129
131
  .set("serial", serial)
130
- .set("consumer_group", consumerGroup);
132
+ .set("consumer_group", consumerGroup)
133
+ .set("be", be);
131
134
  let ret = await firstValueFrom(this.http.get(GET_Director_ChangeProcessConsumerGroup, pars));
132
135
  return ret;
133
136
  }
134
- async getConsumerGroups() {
135
- let ret = await firstValueFrom(this.http.get(GET_Director_GetConsumerGroups));
137
+ async getConsumerGroups(be) {
138
+ var pars = new HttpParams().set("be", be);
139
+ let ret = await firstValueFrom(this.http.get(GET_Director_GetConsumerGroups, pars));
136
140
  return ret;
137
141
  }
138
- async getServerLogs(from, to) {
139
- var pars = new HttpParams().set("from", from).set("to", to);
142
+ async getServerLogs(be, from, to) {
143
+ var pars = new HttpParams().set("from", from).set("to", to).set("be", be);
140
144
  let ret = await firstValueFrom(this.http.get(GET_Director_GetServerLogs, pars));
141
145
  return ret;
142
146
  }
143
- async getTopActivities(sv) {
144
- let ret = await firstValueFrom(this.http.post(POST_Director_GetTopActivities, sv));
147
+ async getTopActivities(be, sv) {
148
+ var pars = new HttpParams().set("be", be);
149
+ let ret = await firstValueFrom(this.http.post(POST_Director_GetTopActivities, sv, pars));
145
150
  return ret;
146
151
  }
147
- async getInfos() {
148
- let ret = await firstValueFrom(this.http.get(GET_Director_GetInfos, null, null, false).pipe(catchError(_ => of(null))));
152
+ async getInfos(be) {
153
+ var pars = new HttpParams().set("be", be);
154
+ let ret = await firstValueFrom(this.http.get(GET_Director_GetInfos, pars, null, false).pipe(catchError(_ => of(null))));
149
155
  return ret;
150
156
  }
151
- async getNodeStats(nodeId) {
152
- let pars = new HttpParams().set("nodeId", nodeId);
157
+ async getNodeStats(be, nodeId) {
158
+ let pars = new HttpParams().set("nodeId", nodeId).set("be", be);
153
159
  let ret = await firstValueFrom(this.http.get(GET_Director_GetNodeStats, pars));
154
160
  return ret;
155
161
  }
156
- async getSessionStats(sid, serial) {
157
- let pars = new HttpParams().set('sid', sid).set('serial', serial);
162
+ async getSessionStats(be, sid, serial) {
163
+ let pars = new HttpParams().set('sid', sid).set('serial', serial).set("be", be);
158
164
  let ret = await firstValueFrom(this.http.get(GET_Director_GetSessionStats, pars));
159
165
  return ret;
160
166
  }
161
- async getProfilerDataNodes(sv) {
162
- let ret = await firstValueFrom(this.http.post(POST_Director_GetProfilerDataNodes, sv));
167
+ async getProfilerDataNodes(be, sv) {
168
+ var pars = new HttpParams().set("be", be);
169
+ let ret = await firstValueFrom(this.http.post(POST_Director_GetProfilerDataNodes, sv, pars));
163
170
  return ret;
164
171
  }
165
- downloadWorkloadReport(from, to) {
166
- let pars = new HttpParams().set("from", from || "").set("to", to || "");
172
+ downloadWorkloadReport(be, from, to) {
173
+ let pars = new HttpParams().set("from", from || "").set("to", to || "").set("be", be);
167
174
  this.http.getFileNative(GET_Director_GetWorkloadReport, pars);
168
175
  }
169
- async getMetrics(sv) {
170
- let ret = await firstValueFrom(this.http.post(POST_Director_GetMetrics, sv));
176
+ async getMetrics(be, sv) {
177
+ var pars = new HttpParams().set("be", be);
178
+ let ret = await firstValueFrom(this.http.post(POST_Director_GetMetrics, sv, pars));
171
179
  return ret;
172
180
  }
173
- async getMetricsList(from, to) {
181
+ async getMetricsList(be, from, to) {
174
182
  let pars = new HttpParams()
175
183
  .set("from", from || "")
176
- .set("to", to || "");
184
+ .set("to", to || "")
185
+ .set("be", be);
177
186
  let ret = await firstValueFrom(this.http.get(GET_Director_GetMetrics, pars));
178
187
  return ret.sort((a, b) => a.name.localeCompare(b.name));
179
188
  }
180
- async getServerLocks(sv) {
181
- let ret = await firstValueFrom(this.http.post(POST_Director_GetServerLocks, sv));
189
+ async getServerLocks(be, sv) {
190
+ var pars = new HttpParams().set("be", be);
191
+ let ret = await firstValueFrom(this.http.post(POST_Director_GetServerLocks, sv, pars));
182
192
  return ret;
183
193
  }
184
- async getServerQuery(sv) {
185
- let ret = await firstValueFrom(this.http.post(POST_Director_GetServerQuery, sv));
194
+ async getServerQuery(be, sv) {
195
+ var pars = new HttpParams().set("be", be);
196
+ let ret = await firstValueFrom(this.http.post(POST_Director_GetServerQuery, sv, pars));
186
197
  return ret;
187
198
  }
188
- async getDynamicViewData(sv) {
189
- let ret = await firstValueFrom(this.http.post(POST_Director_GetDynamicViewData, sv));
199
+ async getDynamicViewData(be, sv) {
200
+ var pars = new HttpParams().set("be", be);
201
+ let ret = await firstValueFrom(this.http.post(POST_Director_GetDynamicViewData, sv, pars));
190
202
  return ret;
191
203
  }
192
- async getDynamicViews() {
193
- let ret = await firstValueFrom(this.http.get(GET_Director_GetDynamicViews));
204
+ async getDynamicViews(be) {
205
+ var pars = new HttpParams().set("be", be);
206
+ let ret = await firstValueFrom(this.http.get(GET_Director_GetDynamicViews, pars));
194
207
  return ret;
195
208
  }
196
- async getServerAudits(sv) {
197
- let ret = await firstValueFrom(this.http.post(POST_Director_GetServerAudits, sv));
209
+ async getServerAudits(be, sv) {
210
+ var pars = new HttpParams().set("be", be);
211
+ let ret = await firstValueFrom(this.http.post(POST_Director_GetServerAudits, sv, pars));
198
212
  return ret;
199
213
  }
200
214
  }
@@ -219,6 +233,7 @@ class AdmAuditsComponent {
219
233
  this.Actions = [];
220
234
  this.HttpMethods = [];
221
235
  this.searchInProgress = false;
236
+ this.be = route.snapshot.params["be"] || "";
222
237
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
223
238
  this.HttpMethods = [
224
239
  { id: "GET", description: "GET" },
@@ -273,7 +288,7 @@ class AdmAuditsComponent {
273
288
  this.POSTGetProcesses(this.searchView);
274
289
  }
275
290
  async POSTGetProcesses(data) {
276
- this.searchView = await this.adms.getServerAudits(data);
291
+ this.searchView = await this.adms.getServerAudits(this.be, data);
277
292
  this.searchInProgress = false;
278
293
  this.localStorage.setItem("HotAudittato", this.searchView).subscribe();
279
294
  }
@@ -363,6 +378,7 @@ class AdmWrkComponent {
363
378
  this.CGs = [];
364
379
  this.CgDictionariesLoaded = false;
365
380
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
381
+ this.be = route.snapshot.params["be"] || "";
366
382
  this.DynamicOps = [
367
383
  new EsTableOperationDefinition("trace_on", this.lc.loc("Attiva Tracing Processo"), "fa fa-circle text-danger", "", "trace_enabled", "N"),
368
384
  new EsTableOperationDefinition("trace_off", this.lc.loc("Disattiva Tracing Progetto"), "fa fa-circle text-success", "", "trace_enabled", "Y"),
@@ -461,12 +477,12 @@ class AdmWrkComponent {
461
477
  }
462
478
  }
463
479
  async toggleTracing(process, tracing) {
464
- let res = await 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());
480
+ let res = await 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());
465
481
  this.msgExts.manageStringResponse(res, "", this.lc.loc("Errori nella modifica del Tracing del Processo"), () => this.sendSearch());
466
482
  }
467
483
  killProcess(process) {
468
484
  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"), async () => {
469
- let res = await this.adms.doKillProcess(process.properties["inst_id"] || process.properties["INST_ID"], process.properties["sid"] || process.properties["SID"], process.properties["serial"] || process.properties["SERIAL"]);
485
+ let res = await 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"]);
470
486
  this.msgExts.manageStringResponse(res, this.lc.loc("Processo ucciso con successo"), this.lc.loc("Errori durante la Kill del Processo"), () => this.sendSearch());
471
487
  });
472
488
  }
@@ -480,14 +496,14 @@ class AdmWrkComponent {
480
496
  this.dlgChangeCg.show();
481
497
  }
482
498
  async loadCgDictionaries() {
483
- this.CGs = await this.adms.getConsumerGroups();
499
+ this.CGs = await this.adms.getConsumerGroups(this.be);
484
500
  }
485
501
  setupChangeCg() {
486
502
  this.utiExts.cleanForm(this.cgFrom);
487
503
  setTimeout(() => { this.newCg = ""; });
488
504
  }
489
505
  async doChangeCg() {
490
- let res = await 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);
506
+ let res = await 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);
491
507
  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());
492
508
  return true;
493
509
  }
@@ -703,6 +719,7 @@ class AdmProfilerComponent {
703
719
  this.adms = adms;
704
720
  this.mod = mod;
705
721
  this.searchView = new ProfilerDataNodesView();
722
+ this.be = route.snapshot.params["be"] || "";
706
723
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
707
724
  }
708
725
  ngOnInit() {
@@ -746,10 +763,10 @@ class AdmProfilerComponent {
746
763
  this.POSTGetItems(this.searchView);
747
764
  }
748
765
  downloadWorkloadReport() {
749
- this.adms.downloadWorkloadReport(this.searchView.filterfrom, this.searchView.filterto);
766
+ this.adms.downloadWorkloadReport(this.be, this.searchView.filterfrom, this.searchView.filterto);
750
767
  }
751
768
  async POSTGetItems(data) {
752
- this.searchView = await this.adms.getProfilerDataNodes(data);
769
+ this.searchView = await this.adms.getProfilerDataNodes(this.be, data);
753
770
  this.searchView.searchinprogress = false;
754
771
  this.localStorage.setItem("HotSearchProfilato", this.searchView).subscribe();
755
772
  }
@@ -757,13 +774,13 @@ class AdmProfilerComponent {
757
774
  var view = JSON.parse(JSON.stringify(this.searchView));
758
775
  view.page = 1;
759
776
  view.itemsperpageoverride = 9999999;
760
- let res = await this.adms.getProfilerDataNodes(view);
777
+ let res = await this.adms.getProfilerDataNodes(this.be, view);
761
778
  dataCallBack(res.items, ProfilerDataNode);
762
779
  }
763
780
  loadNodeDetails(nodeId) {
764
781
  this.NodeDetails = null;
765
782
  requestAnimationFrame(async () => {
766
- this.NodeDetails = await this.adms.getNodeStats(nodeId);
783
+ this.NodeDetails = await this.adms.getNodeStats(this.be, nodeId);
767
784
  });
768
785
  }
769
786
  }
@@ -842,6 +859,7 @@ class AdmTopActivitiesComponent {
842
859
  ["iotime"]: "IO"
843
860
  };
844
861
  this.seriesPropertiesMapping2 = {};
862
+ this.be = route.snapshot.params["be"] || "";
845
863
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
846
864
  }
847
865
  ngOnInit() {
@@ -855,7 +873,8 @@ class AdmTopActivitiesComponent {
855
873
  }
856
874
  async updateRealTimeWindow() {
857
875
  let data = new TopActivitiesDataView();
858
- data = await this.adms.getTopActivities(data);
876
+ data.filterbe = this.be;
877
+ data = await this.adms.getTopActivities(this.be, data);
859
878
  let reference = data.items[0];
860
879
  for (let i = 0; i < reference.actsessions.length; i++) {
861
880
  let itemref = reference.actsessions[i];
@@ -912,21 +931,22 @@ class AdmTopActivitiesComponent {
912
931
  this.POSTGetItems(sv, update);
913
932
  }
914
933
  async POSTGetItems(data, update) {
915
- let res = await this.adms.getTopActivities(data);
934
+ data.filterbe = this.be;
935
+ let res = await this.adms.getTopActivities(this.be, data);
916
936
  //Se sono in modalità di update non devo toccare la searchView attuale se non per il searchinprogress che viene messo dall'es table
917
937
  if (!update) {
918
938
  this.searchView = res;
919
939
  this.localStorage.setItem("HotSearchTopAct", this.searchView).subscribe();
920
940
  }
921
941
  // DirectorInfos anche se per qualche motivo crasha di brutto è comunque non obbligatorio, evito di non caricare la pagina solo perché lui scoppia
922
- let dirinfos = await this.adms.getInfos();
942
+ let dirinfos = await this.adms.getInfos(this.be);
923
943
  this.searchView.searchinprogress = false;
924
944
  this.reviewBindings(update, res, dirinfos);
925
945
  }
926
946
  loadNodeDetails(nodeId) {
927
947
  this.NodeDetails = null;
928
948
  requestAnimationFrame(async () => {
929
- this.NodeDetails = await this.adms.getNodeStats(nodeId);
949
+ this.NodeDetails = await this.adms.getNodeStats(this.be, nodeId);
930
950
  });
931
951
  }
932
952
  reviewBindings(update, searchViewOverride, dirInfos) {
@@ -1001,7 +1021,7 @@ class AdmTopActivitiesComponent {
1001
1021
  loadSessionDetails(sessionId, serialNo) {
1002
1022
  this.SessionDetails = null;
1003
1023
  requestAnimationFrame(async () => {
1004
- this.SessionDetails = await this.adms.getSessionStats(sessionId?.toString(), serialNo?.toString());
1024
+ this.SessionDetails = await this.adms.getSessionStats(this.be, sessionId?.toString(), serialNo?.toString());
1005
1025
  this.threadSelectionChanged(null);
1006
1026
  });
1007
1027
  }
@@ -1072,6 +1092,7 @@ class AdmEnqComponent {
1072
1092
  this.adms = adms;
1073
1093
  this.mod = mod;
1074
1094
  this.locksView = new LocksView();
1095
+ this.be = route.snapshot.params["be"] || "";
1075
1096
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1076
1097
  }
1077
1098
  ngOnInit() {
@@ -1109,7 +1130,7 @@ class AdmEnqComponent {
1109
1130
  this.POSTGetProcesses(this.locksView);
1110
1131
  }
1111
1132
  async POSTGetProcesses(data) {
1112
- this.locksView = await this.adms.getServerLocks(data);
1133
+ this.locksView = await this.adms.getServerLocks(this.be, data);
1113
1134
  this.locksView.searchinprogress = false;
1114
1135
  this.localStorage.setItem("HotEnqueue", this.locksView).subscribe();
1115
1136
  }
@@ -1117,7 +1138,7 @@ class AdmEnqComponent {
1117
1138
  var view = JSON.parse(JSON.stringify(this.locksView));
1118
1139
  view.page = 1;
1119
1140
  view.itemsperpageoverride = 9999999;
1120
- let tmp = await this.adms.getServerLocks(view);
1141
+ let tmp = await this.adms.getServerLocks(this.be, view);
1121
1142
  callback(tmp.items, GenericItem);
1122
1143
  }
1123
1144
  }
@@ -1173,6 +1194,7 @@ class AdmMetricsComponent {
1173
1194
  this.selectedInstance = "";
1174
1195
  this.instanceRequired = false;
1175
1196
  this.metricsToShow = [];
1197
+ this.be = route.snapshot.params["be"] || "";
1176
1198
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1177
1199
  }
1178
1200
  ngOnInit() {
@@ -1191,7 +1213,7 @@ class AdmMetricsComponent {
1191
1213
  this.Instances = [];
1192
1214
  this.selectedInstance = "";
1193
1215
  this.searchView.filtermetrics = [];
1194
- this.Metrics = await this.adms.getMetricsList(this.searchView.filterfrom || "", this.searchView.filterto || "");
1216
+ this.Metrics = await this.adms.getMetricsList(this.be, this.searchView.filterfrom || "", this.searchView.filterto || "");
1195
1217
  }
1196
1218
  async doInit(ignoreStorage) {
1197
1219
  let item = await this.localStorage.getItem("HotSearchMetrics").toPromise();
@@ -1232,7 +1254,7 @@ class AdmMetricsComponent {
1232
1254
  }
1233
1255
  async POSTGetItems(data, update) {
1234
1256
  data.filterrealtime = update ? data.filterrealtime : !(!!data.filterfrom || !!data.filterto);
1235
- let res = await this.adms.getMetrics(data);
1257
+ let res = await this.adms.getMetrics(this.be, data);
1236
1258
  //Se sono in modalità di update non devo toccare la searchView attuale se non per il searchinprogress che viene messo dall'es table
1237
1259
  if (!update) {
1238
1260
  this.selectedInstance = "";
@@ -1322,6 +1344,7 @@ class AdmLogsComponent {
1322
1344
  this.adms = adms;
1323
1345
  this.filterfrom = "";
1324
1346
  this.filterto = "";
1347
+ this.be = route.snapshot.params["be"] || "";
1325
1348
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1326
1349
  }
1327
1350
  async ngOnInit() {
@@ -1329,7 +1352,7 @@ class AdmLogsComponent {
1329
1352
  }
1330
1353
  async sendSearch() {
1331
1354
  this.searchinprogress = true;
1332
- this.Log = await this.adms.getServerLogs(this.filterfrom, this.filterto);
1355
+ this.Log = await this.adms.getServerLogs(this.be, this.filterfrom, this.filterto);
1333
1356
  this.searchinprogress = false;
1334
1357
  }
1335
1358
  }
@@ -1376,10 +1399,11 @@ class AdmDynamicViewsComponent {
1376
1399
  this.currentName = "";
1377
1400
  // Staccato dalla view perché deve essere distrutta e ricreata di continuo
1378
1401
  this.filterName = "";
1402
+ this.be = route.snapshot.params["be"] || "";
1379
1403
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1380
1404
  }
1381
1405
  async ngOnInit() {
1382
- this.Names = await this.adms.getDynamicViews();
1406
+ this.Names = await this.adms.getDynamicViews(this.be);
1383
1407
  this.storageSub = this.route.queryParams.subscribe(params => { this.Init(params["ignoreStorage"]); });
1384
1408
  }
1385
1409
  ngOnDestroy() {
@@ -1421,7 +1445,7 @@ class AdmDynamicViewsComponent {
1421
1445
  var view = JSON.parse(JSON.stringify(this.searchView));
1422
1446
  view.page = 1;
1423
1447
  view.itemsperpageoverride = 9999999;
1424
- let tmp = await this.adms.getDynamicViewData(view);
1448
+ let tmp = await this.adms.getDynamicViewData(this.be, view);
1425
1449
  callback(tmp.items, GenericItem);
1426
1450
  }
1427
1451
  async POSTGetItems() {
@@ -1439,7 +1463,7 @@ class AdmDynamicViewsComponent {
1439
1463
  this.searchView.page = 1;
1440
1464
  this.searchView.filtername = this.currentName;
1441
1465
  }
1442
- this.searchView = await this.adms.getDynamicViewData(this.searchView);
1466
+ this.searchView = await this.adms.getDynamicViewData(this.be, this.searchView);
1443
1467
  this.searchView.searchinprogress = false;
1444
1468
  this.localStorage.setItem("HotDinamitato", this.searchView).subscribe();
1445
1469
  }
@@ -1484,6 +1508,8 @@ class MtdQueryComponent {
1484
1508
  this.adms = adms;
1485
1509
  this.mod = mod;
1486
1510
  this.searchView = new QueryView();
1511
+ this.searching = false;
1512
+ this.be = route.snapshot.params["be"] || "";
1487
1513
  this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1488
1514
  }
1489
1515
  ngOnInit() {
@@ -1516,6 +1542,7 @@ class MtdQueryComponent {
1516
1542
  }
1517
1543
  }
1518
1544
  sendSearch(resetPage = true) {
1545
+ this.searching = true;
1519
1546
  if (resetPage)
1520
1547
  this.searchView.page = 1;
1521
1548
  if (!this.searchView.filterquery)
@@ -1523,23 +1550,24 @@ class MtdQueryComponent {
1523
1550
  this.POSTGetSearch(this.searchView);
1524
1551
  }
1525
1552
  async POSTGetSearch(data) {
1526
- this.searchView = await this.adms.getServerQuery(data);
1553
+ this.searchView = await this.adms.getServerQuery(this.be, data);
1527
1554
  this.searchView.searchinprogress = false;
1528
1555
  this.localStorage.setItem("HotEnqueue", this.searchView).subscribe();
1556
+ this.searching = false;
1529
1557
  }
1530
1558
  async prepareExport(callback) {
1531
1559
  var view = JSON.parse(JSON.stringify(this.searchView));
1532
1560
  view.page = 1;
1533
1561
  view.itemsperpageoverride = 9999999;
1534
- let tmp = await this.adms.getServerLocks(view);
1562
+ let tmp = await this.adms.getServerLocks(this.be, view);
1535
1563
  callback(tmp.items, GenericItem);
1536
1564
  }
1537
1565
  }
1538
1566
  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 });
1539
- 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 }] });
1567
+ 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 }] });
1540
1568
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MtdQueryComponent, decorators: [{
1541
1569
  type: Component,
1542
- 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>" }]
1570
+ 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>" }]
1543
1571
  }], ctorParameters: function () { 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: [{
1544
1572
  type: Inject,
1545
1573
  args: [ADM_MODULE_PATH]
@@ -1605,15 +1633,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1605
1633
  const routeConfig = [
1606
1634
  {
1607
1635
  path: "", children: [
1608
- { path: "serverworkers", component: AdmWrkComponent, data: { title: "Ricerca Processi Applicativi", internalNavigation: false } },
1609
- { path: "profiler", component: AdmProfilerComponent, data: { title: "Profiler del Server", internalNavigation: false } },
1610
- { path: "topact", component: AdmTopActivitiesComponent, data: { title: "Attività Principali", internalNavigation: false } },
1611
- { path: "metrics", component: AdmMetricsComponent, data: { title: "Metriche di Sistema", internalNavigation: false } },
1612
- { path: "serverlogs", component: AdmLogsComponent, data: { title: "Log del Server", internalNavigation: false } },
1613
- { path: "serveraudits", component: AdmAuditsComponent, data: { title: "Ricerca Audit Applicativi", internalNavigation: false } },
1614
- { path: "serverenqueues", component: AdmEnqComponent, data: { title: "Ricerca Lock Applicativi", internalNavigation: false } },
1615
- { path: "serverviews", component: AdmDynamicViewsComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } },
1616
- { path: "metadataquery", component: MtdQueryComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } }
1636
+ { path: "serverworkers/:be", component: AdmWrkComponent, data: { title: "Ricerca Processi Applicativi", internalNavigation: false } },
1637
+ { path: "profiler/:be", component: AdmProfilerComponent, data: { title: "Profiler del Server", internalNavigation: false } },
1638
+ { path: "topact/:be", component: AdmTopActivitiesComponent, data: { title: "Attività Principali", internalNavigation: false } },
1639
+ { path: "metrics/:be", component: AdmMetricsComponent, data: { title: "Metriche di Sistema", internalNavigation: false } },
1640
+ { path: "serverlogs/:be", component: AdmLogsComponent, data: { title: "Log del Server", internalNavigation: false } },
1641
+ { path: "serveraudits/:be", component: AdmAuditsComponent, data: { title: "Ricerca Audit Applicativi", internalNavigation: false } },
1642
+ { path: "serverenqueues/:be", component: AdmEnqComponent, data: { title: "Ricerca Lock Applicativi", internalNavigation: false } },
1643
+ { path: "serverviews/:be", component: AdmDynamicViewsComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } },
1644
+ { path: "metadataquery/:be", component: MtdQueryComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } }
1617
1645
  ]
1618
1646
  }
1619
1647
  ];