From 91d04c64771832a0b8815ffbe1f0f9920320d94d Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 14 Feb 2017 19:41:00 -0500 Subject: Initial OpenECOMP policy/engine commit Change-Id: I7dbff37733b661643dd4d1caefa3d7dccc361b6e Signed-off-by: Pamela Dragosh --- .../WEB-INF/fusion/raptor/wizard_definition.jsp | 1122 ++++++++++++++++++++ 1 file changed, 1122 insertions(+) create mode 100644 ecomp-sdk-app/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp (limited to 'ecomp-sdk-app/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp') diff --git a/ecomp-sdk-app/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp b/ecomp-sdk-app/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp new file mode 100644 index 000000000..ec61e3fd0 --- /dev/null +++ b/ecomp-sdk-app/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp @@ -0,0 +1,1122 @@ +<%-- + ================================================================================ + eCOMP Portal SDK + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%-- + Name: wizard_definition.jsp + Use : Shows edit page of the meta information of the report. + + Change Log + ========== + + 14-Jul-2009 : Version 8.4 (Sundar); + + +--%> +<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataColumnType" %> +<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %> +<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportDefinition" %> +<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> +<%@ page import="org.openecomp.portalsdk.analytics.controller.WizardSequence" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.Iterator" %> +<%@ page import="org.openecomp.portalsdk.analytics.system.Globals" %> +<%@ page import="org.openecomp.portalsdk.analytics.util.Utils" %> +<%@ page import="java.util.Vector" %> +<%@ page import="org.openecomp.portalsdk.analytics.model.ReportLoader" %> +<%@ page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue" %> +<%@ page import="java.util.HashMap" %> +<%@ page import="java.util.Map" %> +<%@ page import="java.util.Set" %> +<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.Reports"%> +<% + ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); + WizardSequence ws = rdef.getWizardSequence(); + String curSubStep = ws.getCurrentSubStep(); + String reportID = rdef.getReportID(); + String dbInfo = null; + dbInfo = rdef.getDBInfo(); + HashMap hashMap = ReportLoader.loadReportsToAddInDashboard(request); + Set mapSet = hashMap.entrySet(); + Map.Entry me; + + HashMap pdfImgMap = ReportLoader.loadPDFImgLookUp(); +%> +<% /*boolean displayAdditionalFields = AppUtils.getRequestNvlValue(request, "showAdditionalFields").equals("Y")|| + AppUtils.getRequestNvlValue(request, "additionalFieldsShown").equals("Y")|| + rdef.isRuntimeColSortDisabled()|| + rdef.isDisplayOptionHideForm()|| + rdef.isDisplayOptionHideChart()|| + rdef.isDisplayOptionHideData()|| + rdef.isDisplayOptionHideBtns()|| + (rdef.getNumFormColsAsInt()>1)|| + (nvl(rdef.getReportTitle()).length()>0)|| + (nvl(rdef.getReportSubTitle()).length()>0)|| + (nvl(rdef.getReportHeader()).length()>0)|| + (nvl(rdef.getReportFooter()).length()>0); */%> + + +<% + boolean displayDashboard = false; + /*displayDashboard = AppUtils.getRequestNvlValue(request, "showDashboardOptions").equals("Y")|| + AppUtils.getRequestNvlValue(request, "dashboardOptionsShown").equals("Y")|| + rdef.isDashboardOptionHideBtns()|| + rdef.isDashboardOptionHideChart()|| + rdef.isDashboardOptionHideData(); + */ + //displayDashboard = AppUtils.getRequestNvlValue(request, "showDashboardOptions").equals("Y"); + boolean dashboard = rdef.isDashboardType(); + //if(AppUtils.getRequestNvlValue(request, "showDashboardOptions").length()>0) dashboard=displayDashboard; +%> + + + + + + + + + + + <% if(nvl(rdef.getReportID()).length()>0 && (! rdef.getReportID().equals("-1"))) { %> + + + + + <% } %> + + + + + 0)? + (!(AppUtils.getRequestNvlValue(request, "folder_id").equals(rdef.getFolderId()))? + AppUtils.getRequestNvlValue(request, "folder_id"):rdef.getFolderId()): + rdef.getFolderId() %>"> + + + + + + + + + + <% if((AppUtils.getRequestNvlValue(request, "reportType").length() > 0) || (rdef.getReportType().length() > 0)) { %> + + <% if (AppUtils.getRequestNvlValue(request, "reportType").equals(AppConstants.RT_DASHBOARD) || rdef.getReportType().equals(AppConstants.RT_DASHBOARD)) { %> + + + + + + + + + + + + + <% } else { %> + + + + + + + + + + + + <% if(Globals.getAllowSQLBasedReports()||AppUtils.isAdminUser(request)) { %> + + + + + <% } // if + %> + + + + + + + + +<%-- + + + --%> + + + + + + +<%-- + + + --%> + + + + + + + + + + + + <% if(rdef.getReportType().equals(AppConstants.RT_CROSSTAB)) { %> + + + + + + + + + <% } %> + + + + + + + + <% + if(pdfImgMap.size() > 0) { + %> + + <%-- dbInfo.equals(AppConstants.DB_PROD)? "selected":"" --%> + + + + <% } + } + %> + + <% + } +%> + + + + + + + <% } %> + + + + + + + + + + + + + + + + +<%-- + + + --%> + + + <% if (!(AppUtils.getRequestNvlValue(request, "reportType").equals(AppConstants.RT_DASHBOARD) || rdef.getReportType().equals(AppConstants.RT_DASHBOARD))) { %> + +<%-- + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<%-- + + + + + + + --%> + + + + + +<% } // else +%> + +<% } // if report type is empty %> + +
Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
+ Report ID: + + <%= rdef.getReportID() %> +
+ Report Name: + + 0)? + (!(AppUtils.getRequestNvlValue(request, "reportName").equals(rdef.getReportName()))? + AppUtils.getRequestNvlValue(request, "reportName"):rdef.getReportName()): + rdef.getReportName() %>"> +
+ Report Description: + + +
+ Report Type + + <% if(nvl(rdef.getReportType()).length()>0) { %> + <%= rdef.getReportType().equals(AppConstants.RT_LINEAR)?"Linear":(rdef.getReportType().equals(AppConstants.RT_CROSSTAB)?"Cross-tab":(rdef.getReportType().equals(AppConstants.RT_DASHBOARD)?"Dashboard":rdef.getReportType())) %> + + <% } else { %> + + <% } %> +
Select HTML Template:
Dashboard HTML: +
+
+ +
+   +   +
+
+ Data Source: + + <% + org.openecomp.portalsdk.analytics.util.RemDbInfo remDbInfo = new org.openecomp.portalsdk.analytics.util.RemDbInfo(); + HashMap remDbMap = remDbInfo.getDbHash(); + + %> + <% if (dbInfo != null && dbInfo.length()>0 && !dbInfo.equalsIgnoreCase("null") && !remDbMap.isEmpty()) { %> + <%= (AppUtils.nvl(remDbInfo.getDesc(dbInfo)).length()>0)?remDbInfo.getDesc(dbInfo):" No Desc " %> + <% + } + else { + %> + <%-- dbInfo.equals(AppConstants.DB_PROD)? "selected":"" --%> + + <% if(!remDbMap.isEmpty() && nvl(AppUtils.getRequestNvlValue(request, "dataSource")).length() <= 0){ %> + + + <% } %> + + <% } %> +
+ Form Help Text: + + +
+ Report Definition: + + + <% if(rdef.getReportDefType().length()>0) { %> + <%= rdef.getReportDefType().equals(AppConstants.RD_VISUAL)?"Visual":(rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED)?"SQL-based":rdef.getReportDefType()) %> + <% } else { %> + + >SQL-based + + <% } %> + +
+ Page Size: + + +
+ Display Area: + + +<%--       + <%= AppUtils.isAdminUser(request)?"":" disabled onClick='checked="+(rdef.isMenuApproved()?"true":"false")+"';" %>> + Approved? --%> +
+ Generate report in a New Window? + + > +
+ Hide Form fields after run? + + > +
+ Display Folder Tree? + + + > +
+ Max Rows in Excel/CSV Download + + +
+ Columns to be Frozen: + + +
+ Record # column width: + + 0)? + (!(AppUtils.getRequestNvlValue(request, "widthNo").equals(rdef.getWidthNoColumn()))? + AppUtils.getRequestNvlValue(request, "widthNo"):rdef.getWidthNoColumn()): + rdef.getWidthNoColumn() %>"> +
+ Data Grid Align: + + +
+ Select logo for PDF download: + + +
+ Empty message: + + 0)? + (!(AppUtils.getRequestNvlValue(request, "emptyMessage").equals(rdef.getEmptyMessage()))? + AppUtils.getRequestNvlValue(request, "emptyMessage"):rdef.getEmptyMessage()): + rdef.getEmptyMessage() %>"> +
+ Height of the Data Container + + <% if (nvl(rdef.getDataContainerHeight(), "100").equals ("auto") || nvl(rdef.getDataContainerHeight(), "100").equals ("100")) { rdef.setDataContainerHeight("100"); } %> +
+ Width of the Data Container + + <% if (nvl(rdef.getDataContainerWidth(), "100").equals ("auto") || nvl(rdef.getDataContainerWidth(), "100").equals ("100")) { rdef.setDataContainerWidth("100"); } %> +
+ Allow Schedule? + + /> +
+ Column Multi Group? + + /> +
+ Render Top - Down + + /> +
+ Sized By Content + + /> +
+ Display Options: + + > + Hide Form Fields + > + Hide Chart + > + Hide Report Data + > + Hide Download Buttons + > + Hide Map + > + Hide Excel Icons + > + Hide PDF Icons +
+   + + > + Disable column sort at runtime? +
+ Run-time Form Number Columns: + + +
+ Report Title
(if blank, the Report Name will be displayed):
+
+ +
+ Report Sub-Title: + + +
+ Page Header (HTML): + + +
+ Page Footer (HTML): + + +
+ Allowed Recurrance in Schedule: + + checked <%} %>>One Time
+ checked<%} %> >Hourly
+ checked<%} %> >Daily
+ checked<%} %> >Daily Monday - Friday
+ checked<%} %> >Weekly
+ checked<%} %> >Monthly
+
+
+ + + + + + + + + + +<%! + private String nvl(String s) { return (s==null)?"":s; } + private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } +%> -- cgit 1.2.3-korg