diff options
author | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-07-20 13:42:49 +0530 |
---|---|---|
committer | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-07-20 23:54:00 +0530 |
commit | 05af2c42b57d71d375ba2e50fd10a3fd682ea226 (patch) | |
tree | 54b1d6ec489f7a5d037a1b52b504ec3804ed8260 /ecomp-sdk/epsdk-analytics/src/main/java/org/onap | |
parent | 5b557b51c6e41315ad48727340df8d3247154330 (diff) |
Integrated UI lazy loading and Raptor update
Integrated UI lazy loading and Raptor update
Issue-ID: PORTAL-902
Change-Id: I0cf9f22a57c2be4e5b83981bdf0984768a5f44a6
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/main/java/org/onap')
2 files changed, 13 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/wizard/DefinitionJSON.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/wizard/DefinitionJSON.java index 9e9428cf..888cf1e0 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/wizard/DefinitionJSON.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/wizard/DefinitionJSON.java @@ -80,12 +80,21 @@ public class DefinitionJSON implements WizardJSON { private String dashboardLayoutHTML; private String dashboardLayoutJSON; private DashboardReports dashboardReports; + private String chartType; @Override public String getTabName() { return tabName; } + public String getChartType() { + return chartType; + } + + public void setChartType(String chartType) { + this.chartType = chartType; + } + @Override public void setTabName(String tabName) { this.tabName = tabName; diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/fusion/web/RaptorControllerAsync.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/fusion/web/RaptorControllerAsync.java index a39d371d..a62129f8 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/fusion/web/RaptorControllerAsync.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/system/fusion/web/RaptorControllerAsync.java @@ -206,11 +206,12 @@ public class RaptorControllerAsync extends RestrictedBaseController { { String sql_whole = rr.getReportDataSQL(userId, downloadLimit, request); request.setAttribute(AppConstants.RI_REPORT_SQL_WHOLE, sql_whole); - } + } + try { OutputStreamWriter out = new OutputStreamWriter(response.getOutputStream()); if(rr != null) - //rr.setSinglePageDownload(isPageDownload); + rr.setSinglePageDownload(isPageDownload); if ("report.download.pdf.session".equals(actionKey)) { new PdfReportHandler().createPdfFileContent(request, response, 3); } else if ("report.download.csv.session".equals(actionKey)) { @@ -1556,7 +1557,7 @@ public class RaptorControllerAsync extends RestrictedBaseController { if (tabId.equals("Def")) { wizardJSON.setTabId("Def"); wizardJSON.setTabName("Definition"); - + wizardJSON.setChartType(rdef.getChartType()); wizardJSON.setReportId((rdef != null) ? rdef.getReportID() + "" : ""); wizardJSON.setReportName((rdef != null) ? rdef.getReportName() : ""); wizardJSON.setReportDescr((rdef != null) ? rdef.getReportDescr() : ""); |