From a2f5a35c06a526b05e4efd9fe275d6639bf22cd3 Mon Sep 17 00:00:00 2001 From: st782s Date: Mon, 14 Aug 2017 11:41:04 -0400 Subject: DDL updates and cleanup - remove unused javascript libraries - remove contentious icons and images - Remove constraints to support Role Centralization Issue: PORTAL-21, Portal-17 Change-Id: I347accb04343d1c866c075ee716c46fea9e0d036 Signed-off-by: st782s --- .../fusion/raptor/custom_header_include.jsp | 135 -- .../WEB-INF/fusion/raptor/custom_js_include.jsp | 31 - .../fusion/raptor/date_end_field_run_sql.jsp | 38 - .../fusion/raptor/date_start_field_run_sql.jsp | 39 - .../fusion/raptor/default_field_run_sql.jsp | 39 - .../webapp/WEB-INF/fusion/raptor/disclaimer.jsp | 38 - .../webapp/WEB-INF/fusion/raptor/error_include.jsp | 58 - .../webapp/WEB-INF/fusion/raptor/error_page.jsp | 229 -- .../main/webapp/WEB-INF/fusion/raptor/footer.jsp | 25 - .../fusion/raptor/popup_drill_down_report.jsp | 623 ----- .../fusion/raptor/popup_import_semaphore.jsp | 80 - .../WEB-INF/fusion/raptor/popup_semaphore.jsp | 419 ---- .../webapp/WEB-INF/fusion/raptor/popup_sql.jsp | 55 - .../WEB-INF/fusion/raptor/popup_table_cols.jsp | 171 -- .../WEB-INF/fusion/raptor/popup_testrun_sql.jsp | 103 - .../WEB-INF/fusion/raptor/report_download_csv.jsp | 89 - .../WEB-INF/fusion/raptor/report_download_pdf.jsp | 40 - .../WEB-INF/fusion/raptor/report_download_xls.jsp | 64 - .../webapp/WEB-INF/fusion/raptor/report_ebz.jsp | 179 -- .../webapp/WEB-INF/fusion/raptor/report_import.jsp | 84 - .../webapp/WEB-INF/fusion/raptor/report_sample.jsp | 40 - .../webapp/WEB-INF/fusion/raptor/report_search.jsp | 2432 -------------------- .../webapp/WEB-INF/fusion/raptor/report_wizard.jsp | 322 --- .../WEB-INF/fusion/raptor/test_field_run_sql.jsp | 39 - .../webapp/WEB-INF/fusion/raptor/test_run_sql.jsp | 38 - .../WEB-INF/fusion/raptor/tree/folderNav.jsp | 464 ---- .../webapp/WEB-INF/fusion/raptor/tree/testTree.jsp | 229 -- .../fusion/raptor/wizard_adhoc_schedule.jsp | 733 ------ .../fusion/raptor/wizard_columns_add_multi.jsp | 96 - .../WEB-INF/fusion/raptor/wizard_columns_edit.jsp | 1127 --------- .../WEB-INF/fusion/raptor/wizard_columns_list.jsp | 157 -- .../fusion/raptor/wizard_columns_order_all.jsp | 88 - .../fusion/raptor/wizard_data_forecasting.jsp | 184 -- .../WEB-INF/fusion/raptor/wizard_definition.jsp | 1122 --------- .../WEB-INF/fusion/raptor/wizard_filters_edit.jsp | 320 --- .../WEB-INF/fusion/raptor/wizard_filters_list.jsp | 115 - .../fusion/raptor/wizard_form_fields_edit.jsp | 771 ------- .../fusion/raptor/wizard_form_fields_list.jsp | 107 - .../WEB-INF/fusion/raptor/wizard_javascript.jsp | 167 -- .../webapp/WEB-INF/fusion/raptor/wizard_log.jsp | 109 - .../webapp/WEB-INF/fusion/raptor/wizard_map.jsp | 424 ---- .../webapp/WEB-INF/fusion/raptor/wizard_run.jsp | 74 - .../WEB-INF/fusion/raptor/wizard_schedule.jsp | 376 --- .../raptor/wizard_schedule_formfield_include.jsp | 754 ------ .../fusion/raptor/wizard_schedule_multiple.jsp | 157 -- .../WEB-INF/fusion/raptor/wizard_schedule_only.jsp | 172 -- .../raptor/wizard_schedule_only_from_search.jsp | 173 -- .../WEB-INF/fusion/raptor/wizard_sorting_edit.jsp | 86 - .../WEB-INF/fusion/raptor/wizard_sorting_list.jsp | 116 - .../fusion/raptor/wizard_sorting_order_all.jsp | 112 - .../WEB-INF/fusion/raptor/wizard_sql_def.jsp | 226 -- .../WEB-INF/fusion/raptor/wizard_tables_edit.jsp | 369 --- .../WEB-INF/fusion/raptor/wizard_tables_list.jsp | 85 - .../WEB-INF/fusion/raptor/wizard_user_access.jsp | 184 -- .../external/samples/html/busy_hour_traffic.html | 188 -- .../samples/html/traffic_distribution.html | 205 -- .../scripts/DS2-view-models/ds2-admin/role.html | 2 +- .../static/fusion/raptor/js/projected_overlay.js | 129 -- .../webapp/static/fusion/raptor/js/tree/ajax.js | 194 -- .../static/fusion/raptor/js/tree/context-menu.js | 444 ---- .../fusion/raptor/js/tree/drag-drop-folder-tree.js | 1059 --------- .../webapp/static/fusion/sample/css/flexslider.css | 275 --- .../fusion/sample/css/fonts/flexslider-icon.eot | Bin 2082 -> 0 bytes .../fusion/sample/css/fonts/flexslider-icon.svg | 19 - .../fusion/sample/css/fonts/flexslider-icon.ttf | Bin 1892 -> 0 bytes .../fusion/sample/css/fonts/flexslider-icon.woff | Bin 1268 -> 0 bytes .../static/fusion/sample/images/Calendar-16x16.png | Bin 552 -> 0 bytes .../static/fusion/sample/images/arrow-next.png | Bin 1561 -> 0 bytes .../static/fusion/sample/images/arrow-prev.png | Bin 1557 -> 0 bytes .../static/fusion/sample/images/copyicon.png | Bin 235 -> 0 bytes .../static/fusion/sample/images/deleteicon.gif | Bin 579 -> 0 bytes .../static/fusion/sample/images/example-frame.png | Bin 33699 -> 0 bytes .../webapp/static/fusion/sample/images/loading.gif | Bin 6820 -> 0 bytes .../src/main/webapp/static/fusion/sample/js/eye.js | 34 - .../fusion/sample/js/jquery.flexslider-min.js | 5 - .../static/fusion/sample/js/slides.min.jquery.js | 20 - .../webapp/static/fusion/sample/js/spacegallery.js | 235 -- .../main/webapp/static/fusion/sample/js/utils.js | 252 -- .../static/fusion/sample/org_chart/images/bkgd.png | Bin 133 -> 0 bytes .../fusion/sample/org_chart/images/raspberry.jpg | Bin 5755 -> 0 bytes 80 files changed, 1 insertion(+), 17567 deletions(-) delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_header_include.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_js_include.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_end_field_run_sql.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_start_field_run_sql.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/default_field_run_sql.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/disclaimer.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_include.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_page.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/footer.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_drill_down_report.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_import_semaphore.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_semaphore.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_sql.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_table_cols.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_testrun_sql.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_csv.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_pdf.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_xls.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_ebz.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_import.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_sample.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_search.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_wizard.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_field_run_sql.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_run_sql.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/folderNav.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/testTree.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_adhoc_schedule.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_add_multi.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_edit.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_list.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_order_all.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_data_forecasting.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_edit.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_list.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_edit.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_list.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_javascript.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_log.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_map.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_run.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_formfield_include.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_multiple.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only_from_search.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_edit.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_list.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_order_all.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sql_def.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_edit.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_list.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_user_access.jsp delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/busy_hour_traffic.html delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/traffic_distribution.html delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/projected_overlay.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/ajax.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/context-menu.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/drag-drop-folder-tree.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/flexslider.css delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.eot delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.svg delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.ttf delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.woff delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/Calendar-16x16.png delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-next.png delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-prev.png delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/copyicon.png delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/deleteicon.gif delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/example-frame.png delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/loading.gif delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/eye.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/jquery.flexslider-min.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/slides.min.jquery.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/spacegallery.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/utils.js delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/bkgd.png delete mode 100644 ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/raspberry.jpg (limited to 'ecomp-sdk/epsdk-app-overlay/src/main') diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_header_include.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_header_include.jsp deleted file mode 100644 index 0bd373b7..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_header_include.jsp +++ /dev/null @@ -1,135 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<%@ page import="java.net.*" %> - - - - - - -<%@ include file="/WEB-INF/fusion/jsp/include.jsp" %> - -<% - String url = request.getParameter("returnUrl"); - - if (url != null) { - request.setAttribute("returnUrl", URLDecoder.decode(url, "UTF-8")); - } - -%> - - -
" method="POST" target="_parent"> - -
- - - - - - - - - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_js_include.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_js_include.jsp deleted file mode 100644 index 5abbb5ad..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/custom_js_include.jsp +++ /dev/null @@ -1,31 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%-- - - ---%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_end_field_run_sql.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_end_field_run_sql.jsp deleted file mode 100644 index fd2f9c36..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_end_field_run_sql.jsp +++ /dev/null @@ -1,38 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %> - - - -
- - - -
- diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_start_field_run_sql.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_start_field_run_sql.jsp deleted file mode 100644 index 69827262..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/date_start_field_run_sql.jsp +++ /dev/null @@ -1,39 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %> - - - -
- - - -
- diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/default_field_run_sql.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/default_field_run_sql.jsp deleted file mode 100644 index 95c99f37..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/default_field_run_sql.jsp +++ /dev/null @@ -1,39 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %> - - - -
- - - -
- diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/disclaimer.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/disclaimer.jsp deleted file mode 100644 index d5d25249..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/disclaimer.jsp +++ /dev/null @@ -1,38 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<% if(org.openecomp.portalsdk.analytics.system.Globals.getShowDisclaimer()) { %> - - - - <%if(!org.openecomp.portalsdk.analytics.system.Globals.hideRaptorFooter()) { %> - - - - - <% } %> - - - - - -
 
   
   
 
- -<% } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_include.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_include.jsp deleted file mode 100644 index 8158e604..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_include.jsp +++ /dev/null @@ -1,58 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<% ArrayList alErrorList = (ArrayList) request.getAttribute(AppConstants.RI_ERROR_LIST); - if((alErrorList!=null)&&(alErrorList.size()>0)) { %> -
- - - - -<% for(int i=0; i=0) - sErrorMsg = sErrorMsg.substring(sErrorMsg.indexOf("|")+1); - if((i%2)==0) { %> - -<% } %> - -<% if((i%2)==1) { %> - -<% } - } // for -%> -<% if((alErrorList.size()%2)==1) { %> - - - -<% } %> -
- Validation Errors Found
- Following errors need to be corrected to continue: -
-
  • <%= sErrorMsg %> -
  • -   -
    -<% } // if -%> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_page.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_page.jsp deleted file mode 100644 index 8ee73be0..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/error_page.jsp +++ /dev/null @@ -1,229 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.io.*" %> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.error.UserAccessException"%> -<%@ page import="org.openecomp.portalsdk.analytics.error.RaptorException"%> -<%@ page import="org.openecomp.portalsdk.analytics.error.UserDefinedException"%> -<%@ page isErrorPage="true" %> - - -<% java.lang.Exception ex = (Exception) request.getAttribute(AppConstants.RI_EXCEPTION); %> -<% boolean showEditLink = false; - if(AppUtils.getRequestNvlValue(request, "r_action").equals("report.run")) { - ReportRuntime rr = (ReportRuntime) request.getSession().getAttribute(AppConstants.SI_REPORT_RUNTIME); - if(rr!=null) - try { - rr.checkUserWriteAccess(request); - showEditLink = true; - } catch(Exception e) {} - } // if -%> - - - - - - - - - - - Application Error - - - -<%-- jsp:include page="custom_header_include.jsp" flush="true" /--%> - -
    - - - "> - - -
    - - - - -<% if(ex!=null) { %> - <% if(ex instanceof org.openecomp.portalsdk.analytics.error.RaptorSchedularException) { %> - <% if(AppUtils.isAdminUser(request)) { %> - - - - <% } %> - - - - <% } %> - <% if(ex!=null) ex.printStackTrace(); %> - <% if(AppUtils.isAdminUser(request)) { - if ((ex instanceof org.openecomp.portalsdk.analytics.error.ReportSQLException)|| - (request.getAttribute("c_error_sql")!=null && !((String) request.getAttribute("c_error_sql")).trim().equals(""))) { - String sql = ""; - if(ex instanceof org.openecomp.portalsdk.analytics.error.ReportSQLException) - sql = ((org.openecomp.portalsdk.analytics.error.ReportSQLException) ex).getReportSQL(); - else - sql = (String) request.getAttribute("c_error_sql"); %> - <% if (sql!=null && sql.length() > 0) { %> - - - - - - - <% request.setAttribute("c_error_sql", sql); - %> - <% } %> - - - - <% if(request.getAttribute("c_error_url")!=null && !((String) request.getAttribute("c_error_url")).trim().equals("")) { %> - - - - <% } // if %> - <% } else { // reportSQLException - if (ex instanceof RaptorException) { %> - - - - <%} %> - <% } %> - <% } else { - if (ex instanceof UserAccessException) { %> - - - - <% } else if (ex instanceof UserDefinedException) { %> - - - - <% } - } %> - - - -<% } else { %> -<% if(exception instanceof org.openecomp.portalsdk.analytics.error.RaptorSchedularException) { %> - <% if(AppUtils.isAdminUser(request)) { %> - - - - <% } %> - - - <% if(exception!=null) exception.printStackTrace(); %> - -<% } %> -<% if(AppUtils.isAdminUser(request)) { - if ((exception instanceof org.openecomp.portalsdk.analytics.error.ReportSQLException)|| - (request.getAttribute("c_error_sql")!=null && !((String) request.getAttribute("c_error_sql")).trim().equals(""))) { - String sql = ""; - if(exception instanceof org.openecomp.portalsdk.analytics.error.ReportSQLException) - sql = ((org.openecomp.portalsdk.analytics.error.ReportSQLException) ex).getReportSQL(); - else - sql = (String) request.getAttribute("c_error_sql"); %> - <% if (sql!=null && sql.length() > 0) { %> - - - - - - -<% request.setAttribute("c_error_sql", sql); - %> - <% } %> - - - -<% if(request.getAttribute("c_error_url")!=null && !((String) request.getAttribute("c_error_url")).trim().equals("")) { %> - - - -<% } %> -<% } %> -<% } %> - - - -<% if(AppUtils.isAdminUser(request)) { %> - -<% } %> -<% if(exception!=null) exception.printStackTrace(); %> - -<% } // else -%> -
    -<% if(showEditLink) { %> - -<% } %> - Error/User-Alert Message: -
    - Exception Class: <%= (ex!=null && ex instanceof org.openecomp.portalsdk.analytics.error.RaptorSchedularException)?ex.getClass().toString():"" %> -
    Message: <%= (ex!=null && ex instanceof org.openecomp.portalsdk.analytics.error.RaptorSchedularException)?ex.getMessage():"" %> -
    - SQL Execution Error: -
    - <%= sql %> -
    - Error Message:
    - <%= AppUtils.getRequestNvlValue(request, "error_extra_msg") %><%= ex.getMessage() %> -
    - Please ">click here to edit report definition. -
    - Error Message:
    - <%= AppUtils.getRequestNvlValue(request, "error_extra_msg") %><%= ex.getMessage() %> -
    - Error Message:
    - <%= AppUtils.getRequestNvlValue(request, "error_extra_msg") %><%= ex.getMessage() %> -
    - Error Message:
    - <%= AppUtils.getRequestNvlValue(request, "error_extra_msg") %><%= ex.getMessage() %> -
    - ** The system administrator has been notified for this error. -
    - Exception Class: <%= (exception!=null && exception instanceof org.openecomp.portalsdk.analytics.error.RaptorSchedularException)?exception.getClass().toString():"" %> -
    Message: <%= (exception!=null && exception instanceof org.openecomp.portalsdk.analytics.error.RaptorSchedularException)?exception.getMessage():"" %> -
    - SQL Execution Error: -
    - <%= sql %> -
    - Error Message:
    - <%= AppUtils.getRequestNvlValue(request, "error_extra_msg") %><%= ex.getMessage() %> -
    - Please ">click here to edit report definition. -
    - ** The system administrator has been notified for this error. -
    - -
    - - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/footer.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/footer.jsp deleted file mode 100644 index c4fbe9e8..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/footer.jsp +++ /dev/null @@ -1,25 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> - - - - - -<%----%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_drill_down_report.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_drill_down_report.jsp deleted file mode 100644 index 6838f3ac..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_drill_down_report.jsp +++ /dev/null @@ -1,623 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> - -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<% ReportDefinition rdef = (ReportDefinition) request.getSession().getAttribute(AppConstants.SI_REPORT_DEFINITION); - List reportCols = rdef.getAllColumns(); - List rFormFields = null; - if(rdef.getFormFieldList()!=null&&rdef.getFormFieldList().getFormField().size()>0) - rFormFields = rdef.getFormFieldList().getFormField(); - - ReportFormFields ddReportFormFields = (ReportFormFields) request.getAttribute(AppConstants.RI_FORM_FIELDS); - - String drillDownSuppress = AppUtils.getRequestNvlValue(request, "drillDownSuppress"); - String drillDownParams = AppUtils.getRequestNvlValue(request, "drillDownParams"); - String drillDownRequest = AppUtils.getRequestNvlValue(request, "drillDownRequest"); - - Hashtable paramDefinitions = new Hashtable(); - StringTokenizer st = new StringTokenizer(drillDownParams, "&"); - //Added for passing request parameters in Drill Down - String[] reqParameters = Globals.getRequestParams().split(","); - int icnt=0; - // - while(st.hasMoreTokens()) { - String param = st.nextToken(); - DrillDownParamDef paramDef = new DrillDownParamDef(param); - if(paramDef.getFieldName().length()>0) - paramDefinitions.put(paramDef.getFieldName(), paramDef); - } // while -%> - - - - Drill-down Parameters Configuration - - - - - - - -
    - - - - - -<% if(ddReportFormFields!=null) - for(ddReportFormFields.resetNext(); ddReportFormFields.hasNext(); ) { - FormField ff = ddReportFormFields.getNext(); - if(!ff.getFieldType().equals(FormField.FFT_BLANK)) { - - DrillDownParamDef paramDef = (DrillDownParamDef) paramDefinitions.get(ff.getFieldName()); - if(paramDef==null) - paramDef = new DrillDownParamDef(""); %> - - <% if (ff!=null && (ff.getValidationType().equals(FormField.VT_TIMESTAMP_HR) || ff.getValidationType().equals(FormField.VT_TIMESTAMP_MIN) || ff.getValidationType().equals(FormField.VT_TIMESTAMP_SEC)) ) { - %> - - - - - - - - - - - - - - - -<% if(rFormFields!=null) { %> - - - - - - - - -<% } // if - -%> - - <% - paramDef = (DrillDownParamDef) paramDefinitions.get(ff.getFieldName()+"_Hr"); - if(paramDef==null) - paramDef = new DrillDownParamDef(""); - %> - - - - - - - - - - - -<% - if (ff.getValidationType().equals(FormField.VT_TIMESTAMP_MIN) || ff.getValidationType().equals(FormField.VT_TIMESTAMP_SEC)) { -%> - <% - paramDef = (DrillDownParamDef) paramDefinitions.get(ff.getFieldName()+"_Min"); - if(paramDef==null) - paramDef = new DrillDownParamDef(""); - %> - - - - - - - - - - - -<% - } - if(ff.getValidationType().equals(FormField.VT_TIMESTAMP_SEC)) { -%> - <% - paramDef = (DrillDownParamDef) paramDefinitions.get(ff.getFieldName()+"_Sec"); - if(paramDef==null) - paramDef = new DrillDownParamDef(""); - %> - - - - - - - - - - - -<% - - } - - } else { -%> - - - - - - - - - - - - - - - -<% if(rFormFields!=null) { %> - - - - - - - - -<% } // if - } // else - } // if BLANK - } // for -%> - - - - - - - - - - - - - - - - - <% if(!Globals.getPassRequestParamInDrilldown() && (!(reqParameters.length==1 && reqParameters[0].length()<=0))) { - %> - - - - - <% - icnt=0; - - for (int i = 0; i < reqParameters.length; i++) { - icnt++; - - %> - > - - - - - <% - } //for - %> - - <% - } // if requestParam - %> - - - - - - - -
    - DRILL-DOWN PARAMETERS CONFIGURATION -
    -  <%= ff.getFieldDisplayName() %> -
    -       - >No value - - Accept default -
    -       - >Fixed value - - " onChange="document.dataform.r_<%= ff.getFieldName() %>[1].click();"> -
    -       - >Value of column - - -
    -       - >Value of form field - - -
    -       - >Value set - - Pass the value of the selected column if not empty,
    - otherwise pass the value of the selected form field
    -
    -  <%= ff.getFieldDisplayName() %> (Hour) -
    -       - >No value - - Accept default -
    -       - >Value of column - - - - -
    -  <%= ff.getFieldDisplayName() %> (Minutes) -
    -       - >No value - - Accept default -
    -       - >Value of column - - - - -
    -  <%= ff.getFieldDisplayName() %> (Seconds) -
    -       - >No value - - Accept default -
    -       - >Value of column - - - - -
    -  <%= ff.getFieldDisplayName() %> -
    -       - >No value - - Accept default -
    -       - >Fixed value - - " onChange="document.dataform.r_<%= ff.getFieldName() %>[1].click();"> -
    -       - >Value of column - - -
    -       - >Value of form field - - -
    -       - >Value set - - Pass the value of the selected column if not empty,
    - otherwise pass the value of the selected form field
    -
     
    -  Parameter values not to be passed to the drill-down report
    -       - Suppress values - - -
    separate by | if multiple values
    -
     
    -  Request Parameter values to be passed to the drill-down report
    <%= reqParameters[i]%> - > -
    - Show Drilled Down Report In Popup Window: -
    -
    -

    - - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_import_semaphore.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_import_semaphore.jsp deleted file mode 100644 index d73a7fe2..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_import_semaphore.jsp +++ /dev/null @@ -1,80 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> - -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<% ArrayList importedList = (ArrayList) request.getAttribute(AppConstants.RI_DATA_SET); %> - - - - Advanced Display Formatting - - - - - - -
    - - - - - - - - - - - -
     Advanced Display Formatting Import
    -<% if(importedList!=null&&importedList.size()>0) { %> - <%= importedList.size() %> Advanced Display Formattings successfully imported. -<% } else { %> - The selected report does not have Advanced Display Formattings
    - defined. No Advanced Display Formattings were imported. -<% } %> -
    -
    - -
    - - - - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_semaphore.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_semaphore.jsp deleted file mode 100644 index 39eafb24..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_semaphore.jsp +++ /dev/null @@ -1,419 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> - -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<% ReportDefinition rdef = (ReportDefinition) request.getSession().getAttribute(AppConstants.SI_REPORT_DEFINITION); - - String semaphoreId = AppUtils.getRequestNvlValue(request, "semaphoreId"); - String semaphoreType = AppUtils.getRequestNvlValue(request, "semaphoreType"); - SemaphoreType semaphore = rdef.getSemaphoreById(semaphoreId); - String semaphoreName = null; - List listColumns = rdef.getAllColumns(); - if(semaphore!=null) - semaphoreName = semaphore.getSemaphoreName(); - else - if(rdef.getSemaphoreList()!=null) - semaphoreName = "Display Formatting "+(rdef.getSemaphoreList().getSemaphore().size()+1); - else - semaphoreName = "Display Formatting 1"; - - String submitBtn = AppUtils.getRequestNvlValue(request, "submit_btn"); %> - - - - Advanced Display Formatting - - -<% if(submitBtn.startsWith("Save")) { %> - -<% } %> - -<% if(submitBtn.equals("Save")) { %> - - - Please wait... -<% } else { %> - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<% for(int i = 0; i<3+((semaphore==null)?2:semaphore.getFormatList().getFormat().size()); i++) { - FormatType ft = null; - if(semaphore!=null&&i - > - <% if(i==0) { %> - - <% } else { %> - - - - <% } %> - - - - - - - - - - -<% } // for -%> - - - -
     Advanced Display Formatting Definition
    Display Name: - -
    Apply Formatting To: - <% String sValue = AppConstants.ST_CELL; - if(semaphore!=null) - sValue = nvl(semaphore.getSemaphoreType(), AppConstants.ST_CELL); %> -
     
    Column Value IsBold?Italic?Under-
    line?
    Background ColorFont ColorFont FaceFont Size     Preview     
    - Any Other - "> - - - - - "> - <% sValue = "="; - if(ft!=null) - sValue = nvl(ft.getExpression(), "="); %> - - - "> - - <% boolean bValue = false; - if(ft!=null) - bValue = ft.isBold(); %> - "> - onClick="setBold(<%= i %>)"> - - <% bValue = false; - if(ft!=null) - bValue = ft.isItalic(); %> - "> - onClick="setItalic(<%= i %>)"> - - <% bValue = false; - if(ft!=null) - bValue = ft.isUnderline(); %> - "> - onClick="setUnderline(<%= i %>)"> - - <% sValue = ""; - if(ft!=null) - sValue = nvl(ft.getBgColor()); %> - - - <% sValue = ""; - if(ft!=null) - sValue = nvl(ft.getFontColor()); %> - - - <% sValue = ""; - if(ft!=null) - sValue = nvl(ft.getFontFace()); %> - - - <% sValue = "11"; - if(ft!=null) - sValue = nvl(ft.getFontSize(), "11"); %> - - - Sample -
    -
    - - - -
    - -
    - -<% } // if(submitBtn.equals("Save")) { ... } else { -%> - - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_sql.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_sql.jsp deleted file mode 100644 index c685bb13..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_sql.jsp +++ /dev/null @@ -1,55 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> - -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - - - - <%= nvl((String) request.getAttribute(AppConstants.RI_PAGE_TITLE)) %> - - - - - - - - - - - - - -
    - <%= nvl((String) request.getAttribute(AppConstants.RI_PAGE_SUBTITLE), nvl((String) request.getAttribute(AppConstants.RI_PAGE_TITLE))) %> -
    > - <%= nvl((String) request.getAttribute(AppConstants.RI_FORMATTED_SQL)) %> -
    -
    - -
    -
    - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_table_cols.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_table_cols.jsp deleted file mode 100644 index 9dec6a53..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_table_cols.jsp +++ /dev/null @@ -1,171 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> - -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<% String tableName = AppUtils.getRequestValue(request, AppConstants.RI_TABLE_NAME); - String remoteDbPrefix = (String) session.getAttribute("remoteDB"); - Vector tableSources = null; - Vector dbColumns = null; - if(tableName==null) { - tableSources = DataCache.getReportTableSources(remoteDbPrefix); - if(tableSources.size()>0) - tableName = ((TableSource) DataCache.getReportTableSources(remoteDbPrefix).get(0)).getTableName(); - } - if(tableName!=null) - dbColumns = DataCache.getReportTableDbColumns(tableName.toUpperCase(),remoteDbPrefix); - - - boolean isSingleValueChoice = AppUtils.getRequestFlag(request, "single_value"); - boolean includeTableNameInResult = AppUtils.getRequestFlag(request, "return_table_name"); - boolean includeColTypeInResult = AppUtils.getRequestFlag(request, "return_col_type"); %> - - - - Table Columns - - - - - - - - -<% if(! isSingleValueChoice) { %> - -<% } // if -%> - - -
    - - -<% if(isSingleValueChoice) { %> - -<% } %> -<% if(includeTableNameInResult) { %> - -<% } %> -<% if(includeColTypeInResult) { %> - -<% } %> - - - - - - - <% int rNum = 0; - if(dbColumns!=null) - for(rNum=0; rNum - > - - <% if(isSingleValueChoice) { %> - - <% } else { %> - - - <% } // else - %> - - <% } // for - if(rNum==0) { %> - - - - <% } else { // if - %> - - - - <% - } - %> - - - - -
      - <% if(! isSingleValueChoice) { %> -   - <% } %> - - - DB Table Columns -
    <%= (rNum+1) %><%= sDisplay %> - - <%= sDisplay %>
    No columns found for table [<%= tableName %>]
    <%= "CLEAR VALUE" %>
      - <% if(! isSingleValueChoice) { %> -   - <% } %> -  
    - - - -
    - - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_testrun_sql.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_testrun_sql.jsp deleted file mode 100644 index a5dbd502..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/popup_testrun_sql.jsp +++ /dev/null @@ -1,103 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.io.*" %> -<%@ page import="java.util.*" %> - -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<% Exception ex = (Exception) request.getAttribute(AppConstants.RI_EXCEPTION); - DataSet ds = (DataSet) request.getAttribute(AppConstants.RI_DATA_SET); %> - - - -SQL Statement Test Run - - - - - - - - -<% if(ex!=null) { %> - - - -<% } else if(ds!=null) { %> - - - <% for(int c=0; c - - <% } %> - - <% for(int r=0; r - > - - <% for(int c=0; c - - <% } %> - - <% } // for r - if(ds.getRowCount()>Globals.getDefaultPageSize()) { %> - > - - - - <% } else if(ds.getRowCount()==0) { %> - - - - <% } // else if - } // else if -%> - - - -
    -
    -
    - <%= nvl(ex.getMessage(), " ") %> -

    - -
     <%= ds.getColumnName(c) %>
    <%= (r+1) %><%= nvl(ds.getString(r, c), " ") %>
    <%= (Globals.getDefaultPageSize()+1) %>...
    No data found
    -
    -
    - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_csv.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_csv.jsp deleted file mode 100644 index 81158047..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_csv.jsp +++ /dev/null @@ -1,89 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page trimDirectiveWhitespaces="true" %> -<%@ page import="java.util.*" %><%@ page import="java.text.*" %><%@ page import="java.io.*" %><%@ page import="org.openecomp.portalsdk.analytics.model.*" %><%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %><%@ page import="org.openecomp.portalsdk.analytics.view.*" %><%@ page import="org.openecomp.portalsdk.analytics.system.*" %><%@ page import="org.openecomp.portalsdk.analytics.util.*" %><% - ReportRuntime rr = null; - ReportData rd = null; - String parent = ""; - int parentFlag = 0; - if(!nvl(request.getParameter("parent"), "").equals("N")) parent = nvl(request.getParameter("parent"), ""); - if(parent.startsWith("parent_")) parentFlag = 1; - if(parentFlag == 1) { - rr = (ReportRuntime) request.getSession().getAttribute(parent+"_rr"); - rd = (ReportData) request.getSession().getAttribute(parent+"_rd"); - } - if(rr==null) rr = (ReportRuntime) request.getSession().getAttribute(AppConstants.SI_REPORT_RUNTIME); - if(rd==null) rd = (ReportData) request.getSession().getAttribute(AppConstants.RI_REPORT_DATA); - String formattedReportName = new HtmlStripper().stripSpecialCharacters(rr.getReportName()); - String formattedDate = new SimpleDateFormat("MMddyyyyHHmm").format(new Date()); - String fName = formattedReportName+formattedDate+AppUtils.getUserID(request); - boolean raw = AppUtils.getRequestFlag(request, "raw"); - if(true && !raw) - response.setContentType("application/octet-stream"); - else - response.setContentType("application/csv"); - String fileName = fName+".csv"; - String sql_whole = (String) request.getAttribute(AppConstants.RI_REPORT_SQL_WHOLE); - if(true && !raw) - response.setHeader("Content-disposition","attachment;filename="+fName+".zip"); - else - response.setHeader("Content-disposition","attachment;filename="+fName+".csv"); - try {(new ReportHandler()).createCSVFileContent(out, rd, rr, sql_whole, request,fName); - //out.flush(); - //out.close(); - if(true) { - // response.reset(); - ServletOutputStream outS = response.getOutputStream(); - java.io.File file = null; - if(true && !raw) { - response.setContentType("application/octet-stream"); - response.setHeader("Content-disposition","attachment;filename="+fName+".zip"); - file = new java.io.File(AppUtils.getTempFolderPath()+""+fName+".zip"); - } else { - response.setContentType("application/csv"); - response.setHeader("Content-disposition","attachment;filename="+fName+".csv"); - file = new java.io.File(AppUtils.getTempFolderPath()+""+fName+".csv"); - } - FileInputStream fileIn = new FileInputStream(file); - int c; - while((c=fileIn.read()) != -1){ - outS.write(c); - } - outS.flush(); - outS.close(); - fileIn.close(); - - - /*byte[] outputByte = new byte[4096]; - //copy binary contect to output stream - while(fileIn.read(outputByte, 0, 4096) != -1) { - outS.write(outputByte, 0, 4096); - } - fileIn.close(); - outS.flush(); - outS.close();*/ - } - } catch(Exception e) { - e.printStackTrace(); - Log.write("Fatal error [report_download_csv.jsp]: "+e.getMessage()); - } -%> -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_pdf.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_pdf.jsp deleted file mode 100644 index e5ae9dde..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_pdf.jsp +++ /dev/null @@ -1,40 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page trimDirectiveWhitespaces="true" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.pdf.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.view.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> -<% - ReportRuntime rr = (ReportRuntime) request.getSession().getAttribute(AppConstants.SI_REPORT_RUNTIME); - ReportData rd = (ReportData) request.getSession().getAttribute(AppConstants.RI_REPORT_DATA); - try { - new PdfReportHandler().createPdfFileContent(request,response, 3); - } catch(Exception e) { - Log.write("Fatal error [report_download_pdf.jsp]: "+e.getMessage()); - e.printStackTrace(); - } - out.clear(); - out = pageContext.pushBody(); -%> - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_xls.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_xls.jsp deleted file mode 100644 index a82470d8..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_download_xls.jsp +++ /dev/null @@ -1,64 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.view.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> -<% -ReportRuntime rr = null; -ReportData rd = null; -String parent = ""; -int parentFlag = 0; -if(!nvl(request.getParameter("parent"), "").equals("N")) parent = nvl(request.getParameter("parent"), ""); -if(parent.startsWith("parent_")) parentFlag = 1; -if(parentFlag == 1) { - rr = (ReportRuntime) request.getSession().getAttribute(parent+"_rr"); - rd = (ReportData) request.getSession().getAttribute(parent+"_rd"); -} -if(rr==null) rr = (ReportRuntime) request.getSession().getAttribute(AppConstants.SI_REPORT_RUNTIME); -if(rd==null) rd = (ReportData) request.getSession().getAttribute(AppConstants.RI_REPORT_DATA); - - if(rr != null && rr.getReportType().equals(AppConstants.RT_DASHBOARD)) { - //rr = (ReportRuntime) request.getSession().getAttribute("FirstDashReport"); - } else if (rr == null) - rr = (ReportRuntime) request.getSession().getAttribute("FirstDashReport"); - //rd = (ReportData) request.getSession().getAttribute(AppConstants.RI_REPORT_DATA); - - //response.setContentType("application/vnd.ms-excel"); - //response.setHeader("Content-disposition","attachment;filename=download_all_"+AppUtils.getUserID(request)+".xls"); - String user_id = AppUtils.getUserID(request); - try { -/* if (rr.getReportType().equals(AppConstants.RT_CROSSTAB)) { - int downloadLimit = (rr.getMaxRowsInExcelDownload()>0)?rr.getMaxRowsInExcelDownload():Globals.getDownloadLimit(); - rd = rr.loadReportData(-1, AppUtils.getUserID(request), downloadLimit,request); - } -*/ - new ReportHandler().createExcelFileContent(out, rd, rr, request, response, user_id, 3); //3 whole - } catch(Exception e) { - e.printStackTrace(); - Log.write("Fatal error [report_download_xls.jsp]: "+e.getMessage()); - } - out.clear(); - out = pageContext.pushBody(); -%> -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_ebz.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_ebz.jsp deleted file mode 100644 index 8d42b65b..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_ebz.jsp +++ /dev/null @@ -1,179 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    Loading...
    -
    -
    -
    - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_import.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_import.jsp deleted file mode 100644 index bb62def0..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_import.jsp +++ /dev/null @@ -1,84 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - - - - Import - - - - - - -

    - - -
    -
    - - - - - - - - - - - - - -
    - <%= Globals.getBaseTitle() %> > IMPORT REPORT XML -
    - - - -
    -
    - -
    - - - -
    - -<%-- --%> -
    - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_sample.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_sample.jsp deleted file mode 100644 index cfbfad14..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_sample.jsp +++ /dev/null @@ -1,40 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -

    Customizable Analytics Dashboard

    - - - - - - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_search.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_search.jsp deleted file mode 100644 index 480bdbcb..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_search.jsp +++ /dev/null @@ -1,2432 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> - - - - - - - -
    -
    -
    - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_wizard.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_wizard.jsp deleted file mode 100644 index 8448b249..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/report_wizard.jsp +++ /dev/null @@ -1,322 +0,0 @@ -<%-- - ================================================================================ - 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: report_wizard.jsp - Use : Master JSP which navigates to specific JSP when different tab is selected. Default it navigates to the wizard_definition.jsp - - Change Log - ========== - - 22-Jun-2009 : Version 8.4 (Sundar); - -
      -
    • Save button is suppressed from showing when wizard is in the last page (Run page).
    • -
    • width of the content_iframe is changed back to default one when navigated from >100% report's run page.
    • -
    ---%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.controller.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<%@ page errorPage="error_page.jsp" %> - - - - -<% ReportDefinition rdef = (ReportDefinition) request.getSession().getAttribute(AppConstants.SI_REPORT_DEFINITION); - - String reportID = rdef.getReportID(); - WizardSequence ws = rdef.getWizardSequence(); - - String curStep = ws.getCurrentStep(); - String curSubStep = ws.getCurrentSubStep(); - - String dbInfo = null; - dbInfo = rdef.getDBInfo(); - int sessionflag = 0; - if(dbInfo == null || dbInfo.length() == 0) { - dbInfo = (String) session.getAttribute("remoteDB"); - sessionflag = 1; - } - session.setAttribute("remoteDB", dbInfo); - if((dbInfo == null) && (request.getParameter("dataSource")!=null)) - session.setAttribute("remoteDB", request.getParameter("dataSource")); - - String title = (reportID.equals("-1")?"Create Report":"Edit Report"); - String navTitle = Globals.getBaseTitle()+" > " + title; - - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); -%> - -<% - request.setAttribute(AppConstants.SI_REPORT_DEFINITION,rdef); -%> - - - - - - - - - - - -
    - - - - -
    - -
    -
    -
    - -
    - - - - - - - - - - -
    - - -<% for(ws.resetNext(); ws.hasNext(); ) { - String sTab = ws.getNext(); %> - - - -<% } // for -%> - - -
    " width="9" height="24"> align="center" valign="middle"> - <% if(sTab.equals(curStep)) { %> -  <%= clearSpaces(sTab) %>  - <% } else if(reportID.equals("-1")) { %> -  <%= clearSpaces(sTab) %>  - <% } else { %> -  <%= clearSpaces(sTab) %>  - <% } %> - " width="9" height="24"> 
    -
    - - - - -
    <%= navTitle %>
    -
    <% if(curStep.equals(AppConstants.WS_DEFINITION)) { %> - <% if(sessionflag == 1) dbInfo = ""; %> - -<% } else if(curStep.equals(AppConstants.WS_SQL)) { %> - -<% } else if(curStep.equals(AppConstants.WS_TABLES)&&curSubStep.equals("")) { %> - -<% } else if(curStep.equals(AppConstants.WS_TABLES)&&(curSubStep.equals(AppConstants.WSS_ADD)||curSubStep.equals(AppConstants.WSS_EDIT))) { %> - -<% } else if(curStep.equals(AppConstants.WS_COLUMNS)&&curSubStep.equals("")) { %> - -<% } else if(curStep.equals(AppConstants.WS_COLUMNS)&&curSubStep.equals(AppConstants.WSS_ADD_MULTI)) { %> - -<% } else if(curStep.equals(AppConstants.WS_COLUMNS)&&curSubStep.equals(AppConstants.WSS_ORDER_ALL)) { %> - -<% } else if(curStep.equals(AppConstants.WS_COLUMNS)&&(curSubStep.equals(AppConstants.WSS_ADD)||curSubStep.equals(AppConstants.WSS_EDIT) ||curSubStep.equals(AppConstants.WA_MODIFY))) { %> - -<% } else if(curStep.equals(AppConstants.WS_FORM_FIELDS)&&curSubStep.equals("")||curSubStep.equals(AppConstants.WSS_ADD_BLANK)) { %> - -<% } else if(curStep.equals(AppConstants.WS_FORM_FIELDS)&&(curSubStep.equals(AppConstants.WSS_ADD)||curSubStep.equals(AppConstants.WSS_EDIT))) { %> - -<% } else if(curStep.equals(AppConstants.WS_FILTERS)&&curSubStep.equals("")) { %> - -<% } else if(curStep.equals(AppConstants.WS_FILTERS)&&(curSubStep.equals(AppConstants.WSS_ADD)||curSubStep.equals(AppConstants.WSS_EDIT))) { %> - -<% } else if(curStep.equals(AppConstants.WS_SORTING)&&curSubStep.equals("")) { %> - -<% } else if(curStep.equals(AppConstants.WS_SORTING)&&curSubStep.equals(AppConstants.WSS_ORDER_ALL)) { %> - -<% } else if(curStep.equals(AppConstants.WS_SORTING)&&(curSubStep.equals(AppConstants.WSS_ADD)||curSubStep.equals(AppConstants.WSS_EDIT))) { %> - -<% } else if(curStep.equals(AppConstants.WS_JAVASCRIPT)) { %> - -<% } else if(curStep.equals(AppConstants.WS_CHART)) { %> - -<% } else if(curStep.equals(AppConstants.WS_USER_ACCESS)) { %> - -<% } else if(curStep.equals(AppConstants.WS_SCHEDULE)) { %> - -<% } else if(curStep.equals(AppConstants.WS_REPORT_LOG)) { %> - -<% } else if(curStep.equals(AppConstants.WS_MAP)) { %> - -<% } else if(curStep.equals(AppConstants.WS_DATA_FORECASTING)) { %> - -<% } else { %> - -<% } %> - -
    - - - - - -
    -   - - <% if(! ws.isInitialStep()) { %> - - <% } %> - - <% if(! ws.isFinalStep()) { %> - - - <% } %> -
    -
    - -
    - - - - - -
    -
    -
    -<%----%> - -<%! private String HTMLEncode(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i') - sb.replace(i, i+1, ">"); - else if(sb.charAt(i)=='"') - sb.replace(i, i+1, """); - - return sb.toString(); - } // HTMLEncode - - private String clearSpaces(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_field_run_sql.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_field_run_sql.jsp deleted file mode 100644 index 2fdcee46..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_field_run_sql.jsp +++ /dev/null @@ -1,39 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %> - - - -
    - - - -
    - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_run_sql.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_run_sql.jsp deleted file mode 100644 index 1c30437b..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/test_run_sql.jsp +++ /dev/null @@ -1,38 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %> - - - -
    - - - -
    - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/folderNav.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/folderNav.jsp deleted file mode 100644 index 38951994..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/folderNav.jsp +++ /dev/null @@ -1,464 +0,0 @@ -<%@page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> -<%@page import="org.openecomp.portalsdk.analytics.model.runtime.ReportRuntime"%> -<%@page import="org.openecomp.portalsdk.analytics.util.AppConstants"%> -<%@page import="org.openecomp.portalsdk.analytics.system.Globals"%> - -<% - boolean isFolderAllowed = false; - ReportRuntime rr = (ReportRuntime) request.getSession().getAttribute(AppConstants.SI_REPORT_RUNTIME); - boolean adminUser = AppUtils.isAdminUser(request); - if (Globals.isFolderTreeAllowed()) { - if(adminUser) { - isFolderAllowed = true; - } else if (!Globals.isFolderTreeAllowedOnlyForAdminUsers()) { - isFolderAllowed = true; - } else isFolderAllowed = false; - } - - - -%> - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - <% if(isFolderAllowed) { %> - - <% } %> - - - - <% if(isFolderAllowed) { %> -
    - Show Folder Tree -
    - <% } %> - - - -
    - - - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/testTree.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/testTree.jsp deleted file mode 100644 index 1521790d..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/tree/testTree.jsp +++ /dev/null @@ -1,229 +0,0 @@ -<%@page import="org.openecomp.portalsdk.analytics.system.AppUtils" %> - - - - - - - - Folder tree with Drag and Drop capabilities - - - - - - - - - - - - - -
    - - - - - - - - - -
    - -
    -
    - - - - -
    - Hide Folder Tree -     - - Create Folder | - Delete Fodler | - Run Report | - Edit Report -
    -
    -
    -
    - - - - - - - -
    -
    - - - - -
    - <%=request.getAttribute("folderList")%> -
    -
    -
    - - - -
    - Collapse all | - Expand all -
    - - -
    - -
    -
    -
    -
    - -
    -
    -
    - - - -
    - - - - -
    - - - \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_adhoc_schedule.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_adhoc_schedule.jsp deleted file mode 100644 index 4de78c9a..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_adhoc_schedule.jsp +++ /dev/null @@ -1,733 +0,0 @@ -<%-- - ================================================================================ - 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_adhoc_schedule.jsp - Use : This JSP is used for accepting user parameters for scheduling the report. - - Change Log - ========== - - 28-Aug-2009 : Version 8.4 (Sundar); initFormFields function is removed as it is handled in back end. - 23-Jun-2009 : Version 8.4 (Sundar); - -
      -
    • Bug related to creating startDate variable (in Javascript) for the Validation purpose is fixed.
    • -
    - - ---%> - -<%@ 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.system.Globals" %> -<%@ page import="org.openecomp.portalsdk.analytics.controller.WizardSequence" %> -<%@ page import="java.util.Vector" %> -<%@ page import="java.util.List" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="java.util.Iterator" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataSourceType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.DBColumnInfo" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableSource" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.SemaphoreType" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportSchedule" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.Utils" %> - -<% - ReportSchedule reportSchedule = (ReportSchedule) request.getSession().getAttribute(AppConstants.SI_REPORT_SCHEDULE); - ReportDefinition rdefRecurrance = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - session.setAttribute("login_id", AppUtils.getUserBackdoorLoginId(request)); - if(reportSchedule==null) reportSchedule = (ReportSchedule) request.getAttribute(AppConstants.SI_REPORT_SCHEDULE); - String remoteDbPrefix = (String) session.getAttribute("remoteDB"); - boolean isSQLAllowed = Globals.getAllowSQLBasedReports(); -%> -<%@page import="java.util.Calendar"%> -<%@page import="java.text.DateFormat"%> -<%@page import="java.text.SimpleDateFormat"%> -<%@page import="java.util.TimeZone"%> -<%@page import="java.util.Date"%> -<%@page import="org.openecomp.portalsdk.analytics.model.ReportLoader"%> - - -<%-- TODO : need a calendar popup functionality --%> - - - - - - - - -
    - <% - Calendar startCalendarDate = Calendar.getInstance(); - startCalendarDate.add(Calendar.DAY_OF_MONTH, - 540); - Calendar endCalendarDate = Calendar.getInstance(); - endCalendarDate.add(Calendar.DAY_OF_MONTH, 540); - SimpleDateFormat dtf = new SimpleDateFormat("MM/dd/yyyy"); - SimpleDateFormat oracleDateFormat = new SimpleDateFormat("MM/dd/yyyy kk:mm:ss"); - Date sysdate = oracleDateFormat.parse(ReportLoader.getSystemDateTime()); - SimpleDateFormat dtimestamp = new SimpleDateFormat(Globals.getScheduleDatePattern()); - Calendar systemCalendar = Calendar.getInstance(); - systemCalendar.setTime(sysdate); - Date sysNext15date = oracleDateFormat.parse(ReportLoader.getNext15MinutesOfSystemDateTime()); - //dtimestamp = new SimpleDateFormat(Globals.getScheduleDatePattern()); - Calendar systemNext15Calendar = Calendar.getInstance(); - systemNext15Calendar.setTime(sysNext15date); - Date sysNext30date = oracleDateFormat.parse(ReportLoader.getNext30MinutesOfSystemDateTime()); - //dtimestamp = new SimpleDateFormat(Globals.getScheduleDatePattern()); - Calendar systemNext30Calendar = Calendar.getInstance(); - systemNext30Calendar.setTime(sysNext30date); - - System.out.println(" systemNext15Calendar " + systemNext15Calendar); - System.out.println(" systemNext30Calendar " + systemNext30Calendar); - - //dtimestamp.setTimeZone(TimeZone.getTimeZone(Globals.getTimeZone())); - -%> - - - - - - - - - - - - <%if(nvl(Globals.getScheduleHelpMessage()).length()>0) { %> - - - - <% } %> - - - - - - - - - - - - - - - - - - - - - - - - - - <% if(AppUtils.isAdminUser(request) || isSQLAllowed ) { %> - - - - - - - - - <% } %> - - - - - - - - - - - - - - - -<% List emailToUsers = reportSchedule.getEmailToUsers(); - for(int i=0; i - - - - -<% } // for - List emailToRoles = reportSchedule.getEmailToRoles(); - for(int i=0; i - - - - -<% } // for - - Vector remainingUsers = Utils.getUsersNotInList(emailToUsers,request); - Vector remainingRoles = Utils.getRolesNotInList(emailToRoles,request); - if((emailToUsers.size()+emailToRoles.size()==0)||(remainingUsers.size()>0)||(remainingRoles.size()>0)) { %> - - - -<% } // if -%> -
    - <%if(nvl(Globals.getScheduleHelpMessage()).trim().length()>0) { %> - - <% } %> - Please enter Time in <%= Globals.getTimeZone()%>. The Current System Time is <%=dtimestamp.format(sysdate)%> <%=Globals.getTimeZone()%> -
    -
    -

    Report Desc: - <%= Globals.getScheduleHelpMessage() %>

    -
    -
    Schedule Emails: - toolTipText="This is used for the enabling or disabling the scheduling feature for this report."/>Yes -   - toolTipText="This is used for the enabling or disabling the scheduling feature for this report."/>No - -
    Email Attachment: - - <%if(!rdefRecurrance.getReportType().equals(AppConstants.RT_HIVE)) {%> - toolTipText="Provides the capability to attach reports as PDF format to the email."/>PDF Attachment -    - toolTipText="Provides the capability to attach reports as Excel format to the email."/>Excel Attachment -    - <% } %> - toolTipText="Provides the capability to attach reports as Excel format to the email."/>Excelx Attachment -    - toolTipText="Provides the capability to attach reports as CSV format to the email."/>CSV Attachment - <%if(!rdefRecurrance.getReportType().equals(AppConstants.RT_HIVE)) {%> - <% if(nvl(Globals.getShellScriptDir()).length()>1) { %> - toolTipText="Provides the capability to send only links to the generated report in the email."/>Link to Generated report - <% } %> - <% } %> - - -
    Recurrence: - -
    First Schedule Date: - - - -       - - - - <%= Globals.getTimeZone()%> - - -
    Last Schedule Date: - - - -       - - - - <%= Globals.getTimeZone()%> - - -
    Use Condition: - > Send Emails Only When Condition Is Met -
    Condition SQL: - - -   -
    Max rows in attachment: - - -
    - Form Fields -

    <%= (i==0)?"Email To: ":" " %> - <%= userValue.getName() %> -       - -
    <%= (emailToUsers.size()==0&&i==0)?"Email To: ":" " %>Everyone With Role:  - <%= roleValue.getName() %> -       - -
    - - - - <% if ( nvl(Globals.getEncryptedSMTPServer(),"").length() > 0 ) { %> - - <% } %> - <% if (Globals.generateSchedReportsInFileSystem()) { %> - - <% } %> - -
    <%= (emailToUsers.size()+emailToRoles.size()==0)?"Email To: ":" " %> -<% if(remainingUsers.size()>0) { %> - -<% } else { %> - No user emails available -<% } %> -       -<% if(remainingRoles.size()>0) { %> - -<% } else { %> - No roles available -<% } %> - - Encrypt Attachment - toolTipText="Choose the encryption mode."/>Yes -    - toolTipText="Choose the encryption mode."/>No - Send as Attachment - toolTipText="Send As Attachment"/>Yes -    - toolTipText="Store it in file system."/>No -
    -
    - - -
    - - - - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_add_multi.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_add_multi.jsp deleted file mode 100644 index ab67b802..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_add_multi.jsp +++ /dev/null @@ -1,96 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.xmlobj.DataSourceType" %> -<%@ page import="java.util.Vector" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.DBColumnInfo" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page errorPage="error_page.jsp" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); -%> - - - - - - - - - -<% int icnt = 0; - String remoteDbPrefix = (String) session.getAttribute("remoteDB"); - for(Iterator iter=rdef.getDataSourceList().getDataSource().iterator(); iter.hasNext(); ) { - DataSourceType dst = (DataSourceType) iter.next(); - - Vector dbColumns = DataCache.getReportTableDbColumns(dst.getTableName().toUpperCase(),remoteDbPrefix); - if(dbColumns!=null) - for(int i=0; i - > - - - - -<% } // for i - } // for -%> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %> - <%= curSubStep %>
      No  Column - Add To Report? -
    - -
    <%= icnt %>[<%= dst.getDisplayName() %>].<%= dbCol.getLabel() %> - - - - - - -
    - - - - -
    - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_edit.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_edit.jsp deleted file mode 100644 index cc6b68b0..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_edit.jsp +++ /dev/null @@ -1,1127 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@page import="java.util.Map"%> -<%@page import="java.util.HashMap"%> -<%@page import="org.openecomp.portalsdk.analytics.model.ReportLoader"%> -<%@ 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.Vector" %> -<%@ page import="java.util.List" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="java.util.Iterator" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataSourceType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.DBColumnInfo" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableSource" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.SemaphoreType" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - String dbInfo = null; - dbInfo = rdef.getDBInfo(); - boolean isEdit = curSubStep.equals(AppConstants.WSS_EDIT) || curSubStep.equals(AppConstants.WA_MODIFY); - DataColumnType currColumn = null; - if(isEdit) - currColumn = rdef.getColumnById(AppUtils.getRequestNvlValue(request, AppConstants.RI_DETAIL_ID)); - Vector reportTableSources = DataCache.getReportTableSources((String) session.getAttribute("remoteDB")); - - List reportCols = rdef.getAllColumns(); - - HashMap actionImgMap = ReportLoader.loadActionImgLookUp(); - - String[] numberFormats = { "9999999990", "9,999,999,990", "9999999990.99", "9,999,999,990.99", "$9,999,999,990.99", "$9,999,999,990.999" }; - String[] dateFormats = { "MM/DD/YYYY", "MM/YYYY", "DD-MON-YYYY", "Month DD, YYYY", "Month, YYYY", "MM/DD/YYYY HH24:MI:SS", "YYYY" }; - String[] charFormats = { "N/A" }; - - String dispName = ""; - String dbColType = ""; - String colType = ""; - if(isEdit) { - dbColType = currColumn.getDbColType(); - colType = currColumn.getColType(); - } - - String dependsOnFormField = currColumn.getDependsOnFormField(); - %> - - - - - - - -<% if(isSQLBased) { %> - - - - - - - -<% } // if(! isSQLBased) -%> -<% if(isCrossTab) { %> - - - - -<% } %> -<% if(! isSQLBased) { %> - - - - -<% } // if(! isSQLBased) -%> - -<% if(isSQLBased) { %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<% } %> - - - - -<% if(! isSQLBased) { %> - - - - -<% } // if(! isSQLBased) -%> - -<% if (false) { %> - - - - - <% } %> - <% System.out.println("WidthInPxls " + currColumn.getDisplayWidthInPxls()); %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <% if(! isCrossTab) { %> - - - - - <% if(! isSQLBased) { %> - - - - - <% } %> - <% } %> - - <% if(! isSQLBased) { %> -<% -boolean isOtherExpr = isEdit&&currColumn.isCalculated()&& - (! nvl(currColumn.getColName()).startsWith("SUM( "))&& - (! nvl(currColumn.getColName()).startsWith("MAX( "))&& - (! nvl(currColumn.getColName()).startsWith("MIN( "))&& - (! nvl(currColumn.getColName()).startsWith("COUNT(*)"))&& - (! nvl(currColumn.getColName()).startsWith("COUNT(ALL "))&& - (! nvl(currColumn.getColName()).startsWith("COUNT(DISTINCT "))&& - (! nvl(currColumn.getColName()).startsWith("AVG(ALL "))&& - (! nvl(currColumn.getColName()).startsWith("AVG(DISTINCT "))&& - (! nvl(currColumn.getColName()).startsWith("STDDEV(ALL "))&& - (! nvl(currColumn.getColName()).startsWith("STDDEV(DISTINCT "))&& - (! nvl(currColumn.getColName()).startsWith("VARIANCE(ALL "))&& - (! nvl(currColumn.getColName()).startsWith("VARIANCE(DISTINCT ")); -%> - - - - - - - - -<% } // if(! isSQLBased) -%> -<%-- if(! isCrossTab) { --%> - - - - - - <% String curSemId = ""; - if(isEdit) - curSemId = nvl(currColumn.getSemaphoreId()); %> - - - - -<%-- } --%> - -<% boolean canHaveTotal = false; - if(isSQLBased) { - //canHaveTotal = (! isCrossTab); - canHaveTotal = (!isCrossTab)||(isEdit&&nvl(currColumn.getCrossTabValue()).equals(AppConstants.CV_VALUE)); - } else { - if(isCrossTab) - canHaveTotal = (isEdit&&nvl(currColumn.getCrossTabValue()).equals(AppConstants.CV_VALUE)); - else - canHaveTotal = colType.equals(AppConstants.CT_NUMBER); - } - - String colTotalRow = ""; - String colTotal = isEdit?nvl(currColumn.getDisplayTotal()):""; - if(isCrossTab&&colTotal.indexOf('|')>=0) { - colTotalRow = colTotal.substring(colTotal.indexOf('|')+1); - colTotal = colTotal.substring(0, colTotal.indexOf('|')); - } %> - - - - -<% if(isCrossTab) { %> - - - - -<% } // if(isCrossTab) -%> -<% if(isSQLBased) { %> - - - - -<% } %> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %> - <%= curSubStep %>
    Column ID: - <%= currColumn.getColId() %> -
    Depends on formfield: - ">
    Column Usage in Cross-Tab: -
    Table Column: - <% if(isEdit) { %> - <%= nvl(rdef.getColumnLabel(currColumn), currColumn.getDbColName()) /*currColumn.getColName()*/ %> - <% } else { %> - - <% } %> - - -
    Datatype: - - -
    Group By Pos: - - -
    Custom Text for Sub-Total: - - "/> - - -
    Hide Repeated Values : - > - -
    Multi group Column Level: - - -
    Multi group Column Range : - Colspan : - - - "/> - - -
    - - - - - - <% if(!isCrossTab) { %> - - - - - <%} %> - -
    Dataformat: - - -
    Enhanced Pagination: - /> - -
    -
    - - - - - - - - - - - - - - -
    URL: - "/> - -
    Anchor: - - -
    -
    Display Name: -
    Display Format: - -
    Display Width: - <% if (currColumn.getDisplayWidth()<=0) { currColumn.setDisplayWidth(10); } %> -
    Display Width (In Pxls): - 0)? - (!(AppUtils.getRequestNvlValue(request, "widthInPxls").equals(currColumn.getDisplayWidthInPxls()))? - AppUtils.getRequestNvlValue(request, "widthInPxls"):currColumn.getDisplayWidthInPxls()): - currColumn.getDisplayWidthInPxls() %>"> - -
    No Wrap ? -
    Indent Parameter to display value - - -
    Display Alignment: -
    Display (Header) Alignment: -
    Sortable? -
    Visible? -
    Group By? -
    Expression: -
    Expression Other: - onFocus="if(document.forma.exprFormula.options[document.forma.exprFormula.selectedIndex].value!='_exprText_') blur();"> - Define custom values mapping  - Form Fields -
    Drill-down Link: - "> - "> - "> - "> - "> - - Set new parameters configuration -    - Import advanced formatting from selected report -
    Advanced Display Formatting: - - - Define advanced formatting -
    Total for <%= isCrossTab?"each":"the" %> column: -
    Total for each row -
      - > - Do not attempt to parse values as date
    -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } - private String getRequestParam(String s) { - if(nvl(s).equals("")) return s; - else { - String requestParam=""; - int pos = 0; - int iCnt = 0; - while(s.indexOf("#",pos)!=-1) { - iCnt++; - if(iCnt>1) requestParam += "|"; - pos = s.indexOf("#",pos)+1; - requestParam += s.substring(s.indexOf("#")+1,s.indexOf("]",pos)); - } - return requestParam; - } - - } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_list.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_list.jsp deleted file mode 100644 index 454cf7d5..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_list.jsp +++ /dev/null @@ -1,157 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); -%> - - - - - - - -<% if(isSQLBased) { %> - - <% if(isCrossTab) { %> - - <% } %> - -<% } else { %> - <% if(isCrossTab) { %> - - <% } else { %> - - - <% } %> - - -<% } %> - -<% int iCount = 0; - boolean visibleColExist = false; - boolean rowColExist = false; - boolean colColExist = false; - boolean valColExist = false; - List reportCols = rdef.getAllColumns(); - for(Iterator iter=reportCols.iterator(); iter.hasNext(); iCount++) { - DataColumnType dct = (DataColumnType) iter.next(); - if(dct.isVisible()) - visibleColExist = true; - if(nvl(dct.getCrossTabValue()).equals(AppConstants.CV_ROW)) - rowColExist = true; - if(nvl(dct.getCrossTabValue()).equals(AppConstants.CV_COLUMN)) - colColExist = true; - if(nvl(dct.getCrossTabValue()).equals(AppConstants.CV_VALUE)) - valColExist = true; %> - > - - -<% if(isSQLBased) { %> - - <% if(isCrossTab) { %> - - <% } %> - -<% } else { %> - <% if(isCrossTab) { %> - - <% } else { %> - - - <% } %> - - - -<% } %> - -<% } %> -<% if(iCount==0) { %> - - - -<% } %> -
    valign="Middle">Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
      No  ColumnIDCross-Tab Usage>EditCross-Tab UsageGroup ByVisibleRe-order - <% if(isCrossTab) { %> - - <% } else { %> - - - - - - -
    - <% } %> -
    <%= iCount+1 %><%= dct.getDisplayName() %><%= dct.getColId() %><%= nvl(rdef.getCrossTabDisplayValue(dct), " ") %>><%= nvl(rdef.getCrossTabDisplayValue(dct), " ") %><%= dct.isGroupBreak()?"Yes":" " %><%= dct.isVisible()?"Yes":"No" %> - <% if(iCount==0) { %> - - <% } else { %> - - <% } %> - <% if(iCount==reportCols.size()-1) { %> - - <% } else { %> - - <% } %> -
    align="center" height="30">No columns defined
    -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_order_all.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_order_all.jsp deleted file mode 100644 index fc1870c6..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_columns_order_all.jsp +++ /dev/null @@ -1,88 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); -%> - - - - - - - - - - -<% int icnt = 0; - for(Iterator iter=rdef.getAllColumns().iterator(); iter.hasNext(); icnt++) { - DataColumnType dct = (DataColumnType) iter.next(); %> - > - - - - -<% } // for -%> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %> - <%= curSubStep %>
      No  ColumnRe-order To
    Position
    <%= icnt+1 %><%= dct.getDisplayName() %> - - -
    - - -
    - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_data_forecasting.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_data_forecasting.jsp deleted file mode 100644 index 33cabe7e..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_data_forecasting.jsp +++ /dev/null @@ -1,184 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.ArrayList" %> -<%@ page import="java.util.HashMap" %> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.ReportWrapper" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.FormField" %> -<%@ page import="java.text.SimpleDateFormat"%> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - //boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - String dependsOnHelp = "Custom SQL can be defined"; - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED_DATAMIN); - - String classifiers = nvl(rdef.getClassifier()); - System.out.println(classifiers); - List reportCols = rdef.getAllColumns(); - - String dateAttrColId = null; - DataColumnType dct = null; - - HashMap unusedNumColsMap = new HashMap(); - int numColsCount = 0; - Iterator iter = null; - - for(iter=reportCols.iterator(); iter.hasNext(); ) { - dct = (DataColumnType) iter.next(); - - if(nvl(dct.getDataMiningCol()).equals(AppConstants.DM_DATE_ATTR)) - dateAttrColId = dct.getColId(); - - if(isSQLBased||nvl(dct.getColType()).equals(AppConstants.CT_NUMBER)) { - numColsCount++; - if(nvl(dct.getDataMiningCol()).length()==0) - unusedNumColsMap.put(dct.getColId(), dct); - } // if - } - - String[] fmt = { "Default", "MM/DD/YYYY", "MM/YYYY", "DD-MON-YYYY", "Month DD, YYYY", "Month, YYYY" }; -%> - - - - - - - - - - - - - - - - - - - - - - - - - - - <% for(iter=reportCols.iterator(); iter.hasNext(); ) { - dct = (DataColumnType) iter.next(); - if(!nvl(dct.getDataMiningCol()).equals(AppConstants.DM_DATE_ATTR) ) { - - %> - - - <% } else if(isSQLBased||nvl(dct.getColType()).equals(AppConstants.CT_NUMBER)) { %> - - <% } %> - - - - - <% } %> - <% } %> - - - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
    Classifiers: - -
    Date Attribute: -
    Date Format: - -
    Forecasting Column:
    - - <% if (! unusedNumColsMap.containsKey(dct.getColId()) ) { %> - <% if (!dct.getDataMiningCol().equals(AppConstants.DM_DATE_ATTR)) %> - <%=dct.getColName() %> <%=dct.getColName() %>
    - Forecasting Period: - - -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } - private boolean isNumber(String value) { // As per Raptor def, like - - // -$3,270.56 - value = value.trim(); - if(value.length()>2) return false; - for (int i = 0; i < value.length(); i++) { - char c = value.charAt(i); - if (!(Character.isDigit(c) || c == '.' || c == '-' || c == '+' || c == ',' - || c == '$' || c == '%')) - return false; - } // for - - return true; - } // isNumber -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp deleted file mode 100644 index ec61e3fd..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_definition.jsp +++ /dev/null @@ -1,1122 +0,0 @@ -<%-- - ================================================================================ - 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); - -
      -
    • Schedule functionality is available for Dashboard.
    • -
    ---%> -<%@ 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; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_edit.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_edit.jsp deleted file mode 100644 index 7589f73f..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_edit.jsp +++ /dev/null @@ -1,320 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.ColFilterType" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.FormField" %> -<%@ page errorPage="error_page.jsp" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); - - boolean isEdit = curSubStep.equals(AppConstants.WSS_EDIT); - - String filterId = AppUtils.getRequestNvlValue(request, AppConstants.RI_DETAIL_ID); - String colId = isEdit?filterId.substring(0, filterId.indexOf('|')):null; - int filterPos = -1; - if(isEdit) - try { - filterPos = Integer.parseInt(filterId.substring(colId.length()+1)); - } catch(NumberFormatException e) {} - - DataColumnType currColumn = isEdit?rdef.getColumnById(colId):null; - ColFilterType currFilter = isEdit?rdef.getFilterById(colId, filterPos):null; - - String arg = null; %> - - - - - - - - -<% if((isEdit?filterPos:rdef.getAllFilters().size())==0) { %> - -<% } else { %> - - - - -<% } %> - - - - - - - - - - - - - - - - - - - - - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %> - <%= curSubStep %>
    Join Condition: - <% arg = (request.getParameter("filterJoin")!=null)?request.getParameter("filterJoin"):(isEdit?currFilter.getJoinCondition():""); %> -
    Opening Brackets: - <% arg = (request.getParameter("openBrackets")!=null)?request.getParameter("openBrackets"):(isEdit?nvl(currFilter.getOpenBrackets()):""); %> -
    Filter By Column: - <% if(isEdit) { %> - <%= currColumn.getDisplayName() %> - - - <% } else { %> - - <% } %> -
    Expression: - <% arg = (request.getParameter("filterExpr")!=null)?request.getParameter("filterExpr"):(isEdit?currFilter.getExpression():""); %> -
    Argument Type: - <% arg = (request.getParameter("argType")!=null)?request.getParameter("argType"):(isEdit?nvl(currFilter.getArgType()):""); %> -
    Argument Value: - <% String argValue = nvl(request.getParameter("argValue"), isEdit?(nvl(currFilter.getArgType()).equals(AppConstants.AT_COLUMN)?"["+rdef.getColumnById(currFilter.getArgValue()).getDisplayName()+"]":nvl(currFilter.getArgValue())):""); - String formFieldType = ""; - if(arg.equals(AppConstants.AT_FORM)&&rdef.getFormFieldList()!=null) - for(Iterator iter=rdef.getFormFieldList().getFormField().iterator(); iter.hasNext(); iCnt++) { - FormFieldType fft = (FormFieldType) iter.next(); - if(argValue.equals("["+fft.getFieldName()+"]")) { - formFieldType = fft.getFieldType(); - break; - } // if - } // for - %> - - - Select from list -
    Closing Brackets: - <% arg = (request.getParameter("closeBrackets")!=null)?request.getParameter("closeBrackets"):(isEdit?nvl(currFilter.getCloseBrackets()):""); %> -
    -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_list.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_list.jsp deleted file mode 100644 index 71898b35..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_filters_list.jsp +++ /dev/null @@ -1,115 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.ColFilterType" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); -%> - - - - - - - - - - - - - -<% int iCount = 0; - int iPos = 0; - int nOpenBrackets = 0; - int nCloseBrackets = 0; - String colId = ""; - List reportFilters = rdef.getAllFilters(); - for(Iterator iter=reportFilters.iterator(); iter.hasNext(); iCount++, iPos++) { - ColFilterType cft = (ColFilterType) iter.next(); - - nOpenBrackets += nvl(cft.getOpenBrackets()).length(); - nCloseBrackets += nvl(cft.getCloseBrackets()).length(); - - if(! colId.equals(cft.getColId())) - iPos = 0; - colId = cft.getColId(); %> - > - - - - - - - - - -<% } // for - if(iCount==0) { %> - - - -<% } %> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
      No            ColumnFilter    
    <%= iCount+1 %><%= iCount>0?cft.getJoinCondition():" " %><%= nvl(cft.getOpenBrackets(), " ") %><%= rdef.getColumnById(colId).getDisplayName() %><%= HTMLEncode(rdef.getFilterLabel(cft)) %><%= nvl(cft.getCloseBrackets(), " ") %>';">'; }">
    No filters defined
    -
    - - - -<%! - private String HTMLEncode(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i') - sb.replace(i, i+1, ">"); - else if(sb.charAt(i)=='"') - sb.replace(i, i+1, """); - - return sb.toString(); - } // HTMLEncode - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_edit.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_edit.jsp deleted file mode 100644 index 84c14510..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_edit.jsp +++ /dev/null @@ -1,771 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.ReportWrapper" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.FormField" %> -<%@ page import="java.text.SimpleDateFormat"%> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - String dependsOnHelp = "Custom SQL can be defined"; -%> - -<% String[] dateFormats = { "MM/DD/YYYY", "MM/YYYY", "DD-MON-YYYY", "Month DD, YYYY", "Month, YYYY" }; - String[] charFormats = { "N/A" }; - - boolean isEdit = curSubStep.equals(AppConstants.WSS_EDIT); - FormFieldType currField = null; - if(isEdit) - currField = rdef.getFormFieldById(AppUtils.getRequestNvlValue(request, AppConstants.RI_DETAIL_ID)); - - String currColId = (currField!=null)?nvl(currField.getColId()):""; - String remoteDbPrefix = (String) session.getAttribute("remoteDB"); - - String colTableName = null; - String colColumnName = null; - String colDisplayFormat = null; - String colDisplayName = null; - if(isSQLBased) - if(currColId.length()>0) { - colTableName = ReportWrapper.getSQLBasedFFTColTableName(currColId); - colColumnName = ReportWrapper.getSQLBasedFFTColColumnName(currColId); - colDisplayFormat = ReportWrapper.getSQLBasedFFTColDisplayFormat(currColId); - - if(currColId.indexOf("|")>=0) - currColId = currColId.substring(0, currColId.indexOf('|')); - colDisplayName = colColumnName; - //colDisplayName = currColId.substring(currColId.indexOf('.')+1); - } %> - - - - - - - - - - - - - - - - - -<% if(isSQLBased) { - String colType = AppConstants.CT_CHAR; - if(colTableName!=null&&colColumnName!=null) - try { - colType = nvl(DataCache.getReportTableDbColumnType(colTableName, colColumnName,((String) session.getAttribute("remoteDB"))), AppConstants.CT_CHAR); - } catch(Exception e) {} - - String[] fmt; - if(colType.equals(AppConstants.CT_DATE)) - fmt = dateFormats; - else - fmt = charFormats; %> - - - - -<% } // if -%> - - - - - - <% if(Globals.getAllowSQLBasedReports() || AppUtils.isAdminUser(request)) { %> - - - - - <% } %> - - - - - - - - - - - - - <%if(! isSQLBased) { %> - - - - <% } else { %> - <% if(Globals.getAllowSQLBasedReports() || AppUtils.isAdminUser(request)) { %> - - - - - - - - - - - - - - <% if(Globals.getAllowSQLBasedReports() || AppUtils.isAdminUser(request)) { %> - - <% } %> - <% } // if admin user %> - - - - - - - <% if(Globals.getAllowSQLBasedReports() || AppUtils.isAdminUser(request)) { %> - - <% } %> - <% } //else %> - - - - - <%}else{%>style="display:none"<%}%>> - - - - - - - - - - - -<% if(Globals.getAllowSQLBasedReports()||AppUtils.isAdminUser(request)) { %> - - - - - - - - -<% } else { %> - "> -<% } %> -<% List predefinedValues = (currField!=null&&currField.getPredefinedValueList()!=null)?currField.getPredefinedValueList().getPredefinedValue():null; %> - - - - -<% if(predefinedValues!=null&&predefinedValues.size()>1) - for(int i=1; i - - - - -<% } // for -%> - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %> - <%= curSubStep %>
    Field Name: - ">
    Based On Column: -<% if(isSQLBased) { %> - - Select database column -<% } else { %> - -<% } // else if(isSQLBased) - if(colDisplayName!=null) { %> - -<% } // if -%> - -
    Display Format: - - -
    Visible? -
    - Is used in Group By Clause? - - > -
    Field Type: - <% String curValue = nvl((currField!=null)?currField.getFieldType():"", FormField.FFT_TEXT_W_POPUP); %> - -
    Visible Size: - -
    Default Value: - "> - Select from list -
    - Is Default Value should be SQL - - 0?" checked":"" %> onClick="toggleDiv(this.checked)"> -
    Default Value: - -
    - "> -
    -
    Verify Field Value As: - <% curValue = nvl((currField!=null)?currField.getValidationType():"", FormField.VT_NONE); %> - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Valid Date Range: - From - - To -        - Instructions  -
    - "> - - - - "> - - -
    -   -  
    - <% String stDate = ""; - String endDate = ""; - if (currField!= null - && currField.getRangeStartDate() != null && currField.getRangeStartDate().equals("") == false - && currField.getRangeEndDate() != null && currField.getRangeEndDate().equals("") == false){ - SimpleDateFormat dtf = new SimpleDateFormat("MM/dd/yyyy"); - stDate = dtf.format(currField.getRangeStartDate().toGregorianCalendar().getTime()); - endDate = dtf.format(currField.getRangeEndDate().toGregorianCalendar().getTime()); - } - %> - - - - - - - -
    -
      - <% curValue = nvl((currField!=null)?currField.getMandatory():"", "N"); %> - > - User must provide value for this field -
    Field Help Text: - -
    SQL Generating Custom List of Values:
    (overrides default list)
    - - - - -
    - "> - -    
     Instructions 
    -
    - <% curValue = nvl((currField!=null)?currField.getDependsOn():"", "N"); %> - > - -
    Provide Predefined List of Values: - <% if(predefinedValues==null||predefinedValues.size()==0) { %> - Do not use Predefined list - Generate list from database - <% } else { - String value = (String) predefinedValues.get(0); %> - <%= value %> -       - - <% } %> -
      - <%= value %> -       - -
      - - - document.forma.<%= AppConstants.RI_WIZARD_ACTION %>.value='<%= AppConstants.WA_ADD_USER %>';"> -
    -
    - - - -<%-- TODO : need a calendar popup functionality --%> - - - - - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } - private boolean isNumber(String value) { // As per Raptor def, like - - // -$3,270.56 - value = value.trim(); - if(value.length()>2) return false; - for (int i = 0; i < value.length(); i++) { - char c = value.charAt(i); - if (!(Character.isDigit(c) || c == '.' || c == '-' || c == '+' || c == ',' - || c == '$' || c == '%')) - return false; - } // for - - return true; - } // isNumber -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_list.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_list.jsp deleted file mode 100644 index 8470dbbc..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_form_fields_list.jsp +++ /dev/null @@ -1,107 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.Iterator" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@page import="org.openecomp.portalsdk.analytics.model.runtime.FormField"%> -<%@page import="org.openecomp.portalsdk.analytics.system.Globals"%> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - -%> - - - - - - - - - - - -<% int iCount = 0; - if(rdef.getFormFieldList()!=null) - for(Iterator iter=rdef.getFormFieldList().getFormField().iterator(); iter.hasNext(); iCount++) { - FormFieldType fft = (FormFieldType) iter.next(); %> - > - - - - - - - -<% } // for - if(iCount==0) { %> - - - -<% } %> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
      No  Field NameRe-order - - -
    <%= iCount+1 %><%= fft.getFieldName() %> [<%= fft.getFieldId()%>] -<% if(iCount==0) { %> - -<% } else { %> - -<% } %> -<% if(iCount==rdef.getFormFieldList().getFormField().size()-1) { %> - -<% } else { %> - -<% } %> - - <%if(!fft.getFieldType().equals(FormField.FFT_BLANK)) { %> - - <% } else { %>   - <% } %> -
    No form fields defined
    -<% if(Globals.customizeFormFieldInfo()) { %> -<% if(rdef.getFormFieldList()!=null) { %> - - - - -
    Defining the Information Bar
    - -
    - -
    -<% } %> -<% } %> -
    - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } %> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_javascript.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_javascript.jsp deleted file mode 100644 index d225cb56..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_javascript.jsp +++ /dev/null @@ -1,167 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportDefinition" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants"%> -<%@ page import="org.openecomp.portalsdk.analytics.controller.WizardSequence"%> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType"%> -<%@ page import="java.util.Iterator"%> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.JavascriptItemType"%> -<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils"%> - -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - FormFieldType fft = null; - boolean isFormfieldPresent = (rdef.getFormFieldList()!=null && rdef.getFormFieldList().getFormField().size()<=0); -%> - - - - - - <% if(isFormfieldPresent) { %> - - - - <% } %> - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - <%= ws.getCurrentStep() %> Wizard <%= isFormfieldPresent?" ":""%>
    -
    -

    Form Field Information:
    - - <% - - for(Iterator iter1=rdef.getFormFieldList().getFormField().iterator(); iter1.hasNext();) { - fft = (FormFieldType) iter1.next(); - %> - - <%= "" %> - <% } - %> -
    " + fft.getFieldName() +": document.formd." + fft.getFieldId()+"
    -

    -
    -
    - -
    - - - - - - - <% - int iCount = 0; - String javascriptFieldId = ""; - String id = ""; - String callText = ""; - - int count = 0; - if(rdef.getJavascriptList()!=null ) { - for(Iterator iter=rdef.getJavascriptList().getJavascriptItem().iterator(); iter.hasNext(); ) { - count++; - JavascriptItemType javascriptItem = (JavascriptItemType) iter.next(); - id = javascriptItem.getId(); - javascriptFieldId = javascriptItem.getFieldId(); - callText = javascriptItem.getCallText(); - %> - > - - - - - - <% } %> - <% } - - id = "-1"; - %> - - - - - - -
      No  Form FieldCalling Javascript -   -
    <%= ++iCount %> - - - - - - -
    <%= ++iCount %> - - - - - - -
    - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_log.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_log.jsp deleted file mode 100644 index 2b170385..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_log.jsp +++ /dev/null @@ -1,109 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.ReportWrapper" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.FormField" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.Log" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportLogEntry" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - -%> - -<% String errorMsg = null; - Vector reportLogEntries = null; - try { - reportLogEntries = ReportLoader.loadReportLogEntries(reportID); - } catch(Exception e) { - Log.write("ERROR [wizard_log.jsp] Unable to load report log entries. Exception: "+e.getMessage()); - errorMsg = "ERROR: Unable to load report log entries from the database "; - } %> - - - - - - - - - - - - - -<% int iCount = 0; - if(reportLogEntries!=null) - for(Iterator iter=reportLogEntries.iterator(); iter.hasNext(); iCount++) { - ReportLogEntry logEntry = (ReportLogEntry) iter.next(); %> - > - - - - - - - - -<% } // for - if(errorMsg!=null) { %> - - - -<% } else if(iCount==0) { %> - - - -<% } else { %> - - - -<% } // if -%> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
      No  Date/TimeUser NameActionExecution TimeRun
    <%= iCount+1 %><%= logEntry.getLogTime() %><%= logEntry.getUserName() %><%= logEntry.getAction() %><%= logEntry.getTimeTaken() %><%= logEntry.getRunIcon() %>
    <%= errorMsg %>
    No log entries found
    - -
    -
    - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_map.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_map.jsp deleted file mode 100644 index 50fe1da6..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_map.jsp +++ /dev/null @@ -1,424 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.xmlobj.ReportMap"%> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - ReportMap repMap = rdef.getReportMap(); - String addressColumn = ""; - String latColumn = ""; - String longColumn = ""; - String legendColumn = ""; - String colorColumn = ""; - String dataColumn = ""; - String isMapAllowed = ""; - String addAddress = "N"; - String useDefaultSize = ""; - String width = ""; - String height = ""; - - int reportMapSize = 0; - if (repMap != null){ - if (repMap.getAddressColumn() != null) - addressColumn = repMap.getAddressColumn(); - - if (repMap.getDataColumn() != null) - dataColumn = repMap.getDataColumn(); - if (repMap.getIsMapAllowedYN() != null) - isMapAllowed = repMap.getIsMapAllowedYN(); - if (repMap.getAddAddressInDataYN() != null) - addAddress = repMap.getAddAddressInDataYN(); - if (repMap.getLatColumn() != null) - latColumn = repMap.getLatColumn(); - if (repMap.getLongColumn() != null) - longColumn = repMap.getLongColumn(); - if (repMap.getColorColumn() != null) - colorColumn = repMap.getColorColumn(); - if (repMap.getLegendColumn() != null) - legendColumn = repMap.getLegendColumn(); - if (repMap.getUseDefaultSize() != null) - useDefaultSize = repMap.getUseDefaultSize(); - if (repMap.getHeight() != null) - height = repMap.getHeight(); - if (repMap.getWidth() != null) - width = repMap.getWidth(); - - reportMapSize = repMap.getMarkers().size(); - } - -%> -<%@page import="org.openecomp.portalsdk.analytics.xmlobj.Marker"%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<% for (int i = 1; repMap != null && i < repMap.getMarkers().size(); i ++){ - Marker marker = (Marker) repMap.getMarkers().get(i); -%> - - - - - - - - - - <%}%> - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
    Map Enabled ? - checked <%} %>/> -
    Default Size ? - checked <%} %>/> - Height - - - - Width - -  
    Lat Column - - - - Long Column - - - - Color Column - - - - Legend Column - - - -
      - -
    Data Header - - Display Column - - - - - Remove -  
    -
    - - - - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_run.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_run.jsp deleted file mode 100644 index 688e7ff7..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_run.jsp +++ /dev/null @@ -1,74 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); -%> - - - - - - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
    - - - - - - - - - - -
    - - SQL Click here to view the generated SQL  - -
    - - Report definition successfully completed.
    -
    - - - Run -
    -
     
    -
    -
    - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule.jsp deleted file mode 100644 index df5df348..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule.jsp +++ /dev/null @@ -1,376 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.system.Globals" %> -<%@ page import="org.openecomp.portalsdk.analytics.controller.WizardSequence" %> -<%@ page import="java.util.Vector" %> -<%@ page import="java.util.List" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="java.util.Iterator" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataSourceType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.DBColumnInfo" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableSource" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.SemaphoreType" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportSchedule" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.Utils" %> - -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - ReportSchedule reportSchedule = rdef.getReportSchedule(); - String remoteDbPrefix = (String) session.getAttribute("remoteDB"); - boolean isSQLAllowed = Globals.getAllowSQLBasedReports(); - -%> -<%@page import="java.util.Calendar"%> -<%@page import="java.text.DateFormat"%> -<%@page import="java.text.SimpleDateFormat"%> -<%@page import="java.util.TimeZone"%> -<%@page import="java.util.Date"%> -<%@page import="org.openecomp.portalsdk.analytics.model.ReportLoader"%> - - -<%-- TODO : need a calendar popup functionality --%> - - - - <% - Calendar startCalendarDate = Calendar.getInstance(); - startCalendarDate.add(Calendar.DAY_OF_MONTH, - 540); - Calendar endCalendarDate = Calendar.getInstance(); - endCalendarDate.add(Calendar.DAY_OF_MONTH, 540); - SimpleDateFormat dtf = new SimpleDateFormat("MM/dd/yyyy"); - SimpleDateFormat oracleDateFormat = new SimpleDateFormat("MM/dd/yyyy kk:mm:ss"); - Date sysdate = oracleDateFormat.parse(ReportLoader.getSystemDateTime()); - SimpleDateFormat dtimestamp = new SimpleDateFormat(Globals.getScheduleDatePattern()); - //dtimestamp.setTimeZone(TimeZone.getTimeZone(Globals.getTimeZone())); - - - - - %> - - - - <% if(request.getAttribute("schedule_only")!=null) { %> - - - - <% } %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <% if(AppUtils.isAdminUser(request) || isSQLAllowed ) { %> - - - - - - - - - <% } %> - - - - - - - - - -<% List emailToUsers = reportSchedule.getEmailToUsers(); - for(int i=0; i - - - - -<% } // for - List emailToRoles = reportSchedule.getEmailToRoles(); - for(int i=0; i - - - - -<% } // for - - Vector remainingUsers = Utils.getUsersNotInList(emailToUsers,request); - Vector remainingRoles = Utils.getRolesNotInList(emailToRoles,request); - if((emailToUsers.size()+emailToRoles.size()==0)||(remainingUsers.size()>0)||(remainingRoles.size()>0)) { %> - - - - -<% } // if -%> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
    Please enter Time in <%= Globals.getTimeZone()%>. The Current System Time is <%=dtimestamp.format(sysdate)%> <%=Globals.getTimeZone()%>
    -
    -

    Quick Help: -

    -
    -
    Schedule Emails: - />Yes -   - />No -
    Email Attachment: - - />PDF Attachment -    - />Excel Attachment - - -
    Recurrence: -
    Start Date: - - - -       - - - - -
    End Date: - - - -
    Use Condition: - > Send Emails Only When Condition Is Met -
    Condition SQL:SELECT 1 FROM DUAL WHERE EXISTS (
    - - ) -      - -   -
    Max rows in attachment: - -
    <%= (i==0)?"Email To: ":" " %> - <%= userValue.getName() %> -       - -
    <%= (emailToUsers.size()==0&&i==0)?"Email To: ":" " %>Everyone With Role:  - <%= roleValue.getName() %> -       - -
    <%= (emailToUsers.size()+emailToRoles.size()==0)?"Email To: ":" " %> -<% if(remainingUsers.size()>0) { %> - -<% } else { %> - No user emails available -<% } %> -       -<% if(remainingRoles.size()>0) { %> - -<% } else { %> - No roles available -<% } %> -
    -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_formfield_include.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_formfield_include.jsp deleted file mode 100644 index 206e23de..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_formfield_include.jsp +++ /dev/null @@ -1,754 +0,0 @@ -<%-- - ================================================================================ - 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_schedule_formfield_include.jsp - Use : Shows formfield of the report in the schedule page. - - Change Log - ========== - - 28-Aug-2009 : Version 8.5.1 (Sundar); Checkbox and Radio button are also handled. - 18-Aug-2009 : Version 8.5.1 (Sundar); - - a) ajax.js is loaded in startup for AJAX functionality. - b) showArgPopupNew is modified as per report_form.jsp - c) Ajax function is added very similiar to report_form.jsp - d) "auto" bug is resolved. - -14-Jul-2009 : Version 8.4 (Sundar); - -
      -
    • Shows the form field of the first Dashboard report in schedule page if the report is dashboard.
    • -
    ---%> -<%@ page import="java.io.*" %> -<%@ page import="java.util.*" %> -<%@ page import="java.text.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportDefinition" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.ReportHandler" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.JavascriptItemType"%> -<%@ page import="java.util.regex.*"%> -<%@ page import="javax.servlet.http.*"%> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportSchedule" %> - - -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - ReportHandler rh = new ReportHandler(); - ReportRuntime rr = rh.loadReportRuntime(request, rdef.getReportID()); - request.getSession().setAttribute(AppConstants.SI_REPORT_RUNTIME, rr); - boolean isDashboard = rr.isDashboardType(); - ReportFormFields rff = rr.getReportFormFields(); - ReportFormFields rff1 = (ReportFormFields) rff.clone(); - ReportFormFields rff2 = (ReportFormFields) rff.clone(); - ReportFormFields rff5 = (ReportFormFields) rff.clone(); - boolean isFirstTime = nvl(request.getParameter("refresh")).toUpperCase().startsWith("Y"); - ReportSchedule reportSchedule = (ReportSchedule) request.getSession().getAttribute(AppConstants.SI_REPORT_SCHEDULE); - - int dashboardFlag = 0; - ReportRuntime rr1 = null; - java.text.SimpleDateFormat sdf = null; - -%> - - - -<%--=(rr.getJavascriptElement()!=null && rr.getJavascriptElement().length()>0)?rr.getJavascriptElement().replaceAll("formd","forma"):""--%> - - <% - if(rr.getReportType().equals(AppConstants.RT_DASHBOARD)) { - dashboardFlag = 1; - String strHTML = rr.getDashboardLayoutHTML(); //getdashboardLayoutHTML(); - String rep_id = parseAndGetFirstReportID(strHTML); - ReportHandler rh1 = new ReportHandler(); - rr1 = null; - int requestFlag = 1; - try { - rr1 = rh1.loadReportRuntime(request, rep_id, true, requestFlag); - } catch(Exception e) { - } - rff = rr1.getReportFormFields(); - } - %> - <%if((dashboardFlag == 0 && rr.needFormInput()) || (dashboardFlag == 1 && rr1.needFormInput())) { %> - - - - Please input values into the Form Fields for email attachment. Note those fields user must provide value can not leave as blank. - - - <% - int colidx = 0; - java.util.HashMap paramsMap = Globals.getRequestParamtersMap(request, false); - java.util.HashMap getScheduleMap = getFormFieldsHashMap (request, reportSchedule.getFormFields()); - java.util.HashMap paramsScheduleMap = Globals.getRequestParametersMap(request, getScheduleMap); - for (int i = 0; i < rff.size(); i ++){ - FormField ff = (FormField) rff.get(i); - ff.setDbInfo(rr.getDbInfo()); - ff.setUserId(AppUtils.getUserID(request)); - if(ff.getFieldType().equals(FormField.FFT_HIDDEN)) { - %> - <% - if(nvl(reportSchedule.getFormFields()).length() <= 0) - out.println(ff.getHtml(rr.getParamValue(ff.getFieldName()), paramsMap, rr, true)); - else - out.println(ff.getHtml(getParameterString(request, ff.getFieldName(), getScheduleMap), paramsScheduleMap, rr, true).replaceAll("formd","forma")); - - - %> - <% } - if(!ff.getFieldType().equals(FormField.FFT_HIDDEN) && ff.isVisible()) { - - %> - <%if (colidx == 0){%><%}%> - - - - <%colidx++;%> - <%if (colidx == rr.getNumFormColsAsInt()){%><%colidx=0;}%> - <% } - } //for %> -
    - - <%if (!ff.getFieldType().equals(FormField.FFT_BLANK)){%> - <%= ff.getDisplayNameHtml() %>: - <%}%> - - - <%-- ff.getHtml(rr.getParamValue(ff.getFieldName()), paramsMap,rr, true).replaceAll("formd","forma") --%> - <% - if(nvl(reportSchedule.getFormFields()).length() <= 0) - out.println(ff.getHtml(rr.getParamValue(ff.getFieldName()), paramsMap, rr, true).replaceAll("formd","forma")); - else - out.println(ff.getHtml(getParameterString(request, ff.getFieldName(), getScheduleMap), paramsScheduleMap, rr, true).replaceAll("formd","forma")); - %> -
    - - -<% } //if(rr.needFormInput()) %> - - - - -<% /* if(request.getAttribute(AppConstants.RI_REPORT_DATA) == null){ */ %> - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } - private String getCallableJavascriptForSubmit(ReportRuntime rr) { - JavascriptItemType javascriptItemType = null; - StringBuffer callJavascriptText = new StringBuffer(""); - if(rr.getJavascriptList()!=null) { - for (Iterator iter = rr.getJavascriptList().getJavascriptItem().iterator(); iter.hasNext();) { - javascriptItemType = (JavascriptItemType)iter.next(); - if(javascriptItemType.getFieldId().equals("os1")) { - callJavascriptText.append(" "+javascriptItemType.getCallText()); - break; - } - } - } - return callJavascriptText.toString(); - } - - private HashMap getFormFieldsHashMap (HttpServletRequest request, String formFieldsString) { - String splitName[] = null; - ArrayList keyValue = new ArrayList(); - HashMap keyValueMap = new HashMap(); - String newValue = ""; - //System.out.println("Request Str "+ formFieldsString); - StringTokenizer st = null; - StringTokenizer st2 = null; - String key1 = ""; - String value = ""; - - if(formFieldsString.length() > 0) { - st = new StringTokenizer(formFieldsString, "&"); - while (st.hasMoreTokens()) { - keyValue.add(st.nextToken()); - } - if(keyValue.size() > 0) { - - for (int num = 0; num < keyValue.size(); num++) { - st2 = new StringTokenizer((String) keyValue.get(num), "="); - while(st2.hasMoreTokens()) { - key1 = ""; value = ""; - key1 = st2.nextToken(); - key1 = Utils.replaceInString(key1, "_auto", ""); - try { - value = st2.nextToken(); - }catch (NoSuchElementException ex) { value = "";} - if(!keyValueMap.containsKey(key1)) - keyValueMap.put(key1,value); - else { - String value1 = (String) keyValueMap.get(key1); - value = value+"|"+value1; - keyValueMap.put(key1,value); - } - } - } - - } - } - return keyValueMap; - } - - private String getParameterString (HttpServletRequest request, String key, HashMap keyValueMap) { - String newValue = ""; - if(keyValueMap.containsKey(key)) { - //System.out.println("VALUE IN MAP IS " +key+ " "+ (String) keyValueMap.get(key)); - newValue = XSSFilter.filterRequestOnlyScript((String) keyValueMap.get(key)); - if(nvl(newValue).length()<=0) { - newValue = XSSFilter.filterRequestOnlyScript((String) keyValueMap.get(key+"_auto")); - } - } - return newValue; - } - private String parseAndGetFirstReportID(String strHTML) { - String sourcestring = strHTML; - //System.out.println("String HTML1 " + strHTML); - Pattern re = Pattern.compile("\\[(.*?)\\]"); //\\[(.*?)\\] - Matcher m = re.matcher(sourcestring); - int mIdx = 0; - while (m.find()){ - for( int groupIdx = 0; groupIdx < m.groupCount(); groupIdx++ ){ - String str = m.group(groupIdx); - //System.out.println("REP ID1 " + str.substring(str.indexOf("#")+1, str.length()-1)) ; - return str.substring(str.indexOf("#")+1, str.length()-1); - } - mIdx++; - - }return ""; - } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_multiple.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_multiple.jsp deleted file mode 100644 index 70c9812a..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_multiple.jsp +++ /dev/null @@ -1,157 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.controller.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<%@ page errorPage="error_page.jsp" %> -<%! -class ValueComparator implements Comparator { - public int compare(Object o1, Object o2) { - Map.Entry e1 = (Map.Entry) o1; - Map.Entry e2 = (Map.Entry) o2; - Comparable c1 = (Comparable)e1.getValue(); - Comparable c2 = (Comparable)e2.getValue(); - return c1.compareTo(c2); - } -} -%> -<% -HashMap hashMap = ReportLoader.loadReportsToSchedule(request); -ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); -if(rdef ==null) rdef = (ReportDefinition) request.getSession().getAttribute(AppConstants.SI_REPORT_DEFINITION); -Set mapSet = hashMap.entrySet(); -List entrylist = new ArrayList(mapSet); -Collections.sort(entrylist, new ValueComparator()); -Map.Entry me; -session.removeAttribute(AppConstants.SI_REPORT_SCHEDULE); -session.removeAttribute(AppConstants.SI_REPORT_DEFINITION); -ReportSchedule reportSchedule = (ReportSchedule) session.getAttribute(AppConstants.SI_REPORT_SCHEDULE); -%> - - - - - - -


    -<% if (rdef == null || request.getSession().getAttribute(AppConstants.SI_REPORT_SCHEDULE) == null) {%> - -
    - - - - - - - - -
    - - - - - - <% if(request.getAttribute("message")!=null) { %> - - - - <% } %> -
    <%= "Scheduling Report" %>
    <%= (String) request.getAttribute("message") %>
    -
    Reports: - <% if (rdef !=null && request.getSession().getAttribute(AppConstants.SI_REPORT_SCHEDULE) != null ) {%> - <%= rdef.getReportName()%> - <% } else { %> - - <% } %> - -
    -
    -<% } %> -<% if(reportSchedule!=null) { %> - -<% } %> - - - - - -<%----%> - -<%! private String HTMLEncode(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i') - sb.replace(i, i+1, ">"); - else if(sb.charAt(i)=='"') - sb.replace(i, i+1, """); - - return sb.toString(); - } // HTMLEncode - - private String clearSpaces(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only.jsp deleted file mode 100644 index ad3c612e..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only.jsp +++ /dev/null @@ -1,172 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.controller.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<%@ page errorPage="error_page.jsp" %> - - - -<% ReportDefinition rdef = (ReportDefinition) request.getSession().getAttribute(AppConstants.SI_REPORT_DEFINITION); - - String reportID = rdef.getReportID(); - - - - String dbInfo = null; - dbInfo = rdef.getDBInfo(); - int sessionflag = 0; - if(dbInfo == null || dbInfo.length() == 0) { - dbInfo = (String) session.getAttribute("remoteDB"); - sessionflag = 1; - } - session.setAttribute("remoteDB", dbInfo); - if((dbInfo == null) && (request.getParameter("dataSource")!=null)) - session.setAttribute("remoteDB", request.getParameter("dataSource")); - - StringBuffer title = new StringBuffer(""); - title.append(Globals.getBaseTitle()+" > "+(reportID.equals("-1")?"Create Report":"Schedule Report")); - title.append(" > "+rdef.getReportName()); - - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); -%> - -<% - request.setAttribute(AppConstants.SI_REPORT_DEFINITION,rdef); -%> - - - - - - - - - - - - -
    - -
    -
    -
    -
    - - - - - - - - - - - -
    - - - - - <% if(request.getAttribute("message")!=null) { %> - - - - <% } %> -
    <%= title.toString() %>
    <%= (String) request.getAttribute("message") %>
    -
    - -
    - - - - - -
    -   - - - <%----%> - -
    -
    -
    - - -
    -
    -<%----%> - -<%! private String HTMLEncode(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i') - sb.replace(i, i+1, ">"); - else if(sb.charAt(i)=='"') - sb.replace(i, i+1, """); - - return sb.toString(); - } // HTMLEncode - - private String clearSpaces(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only_from_search.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only_from_search.jsp deleted file mode 100644 index af951cc2..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_schedule_only_from_search.jsp +++ /dev/null @@ -1,173 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ page import="java.util.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.controller.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.system.*" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.*" %> - -<%@ page errorPage="error_page.jsp" %> - - - -<% ReportDefinition rdef = (ReportDefinition) request.getSession().getAttribute(AppConstants.SI_REPORT_DEFINITION); - - String reportID = rdef.getReportID(); - - - - String dbInfo = null; - dbInfo = rdef.getDBInfo(); - int sessionflag = 0; - if(dbInfo == null || dbInfo.length() == 0) { - dbInfo = (String) session.getAttribute("remoteDB"); - sessionflag = 1; - } - session.setAttribute("remoteDB", dbInfo); - if((dbInfo == null) && (request.getParameter("dataSource")!=null)) - session.setAttribute("remoteDB", request.getParameter("dataSource")); - - StringBuffer title = new StringBuffer(""); - title.append(Globals.getBaseTitle()+" > "+(reportID.equals("-1")?"Create Report":"Schedule Report")); - title.append(" > "+rdef.getReportName()); - - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); -%> - -<% - request.setAttribute(AppConstants.SI_REPORT_DEFINITION,rdef); -%> - - - - - - - - - - - - -
    - -
    -
    -
    -
    - - - - - - - - - - - -
    - - <% if(request.getAttribute("message")!=null) { %> - - - - <% } %> - - - - -
    <%= (String) request.getAttribute("message") %>
    <%= title.toString() %>
    -
    - -
    - - - - - -
    -   - - - <%----%> - -
    -
    -
    - - -
    -
    -<%----%> - -<%! private String HTMLEncode(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i') - sb.replace(i, i+1, ">"); - else if(sb.charAt(i)=='"') - sb.replace(i, i+1, """); - - return sb.toString(); - } // HTMLEncode - - private String clearSpaces(String value) { - StringBuffer sb = new StringBuffer(value); - - for(int i=0; i - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_edit.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_edit.jsp deleted file mode 100644 index 18c450ba..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_edit.jsp +++ /dev/null @@ -1,86 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - boolean isEdit = curSubStep.equals(AppConstants.WSS_EDIT); - DataColumnType currColumn = null; - if(isEdit) - currColumn = rdef.getColumnById(AppUtils.getRequestNvlValue(request, AppConstants.RI_DETAIL_ID)); %> - - - - - - - - - - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %><%= curSubStep.equals(AppConstants.WSS_EDIT)?"Edit Sorting":(curSubStep.equals(AppConstants.WSS_ADD)?"Add Sorting":"") %>
    - Sort By Column: - - <% if(isEdit) { %> - <%= currColumn.getDisplayName() %> - <% } else { %> - - <% } // else - %> -
    Sort Type: - -
    -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_list.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_list.jsp deleted file mode 100644 index 63bf9cd3..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_list.jsp +++ /dev/null @@ -1,116 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.ReportWrapper" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.FormField" %> -<%@ page import="java.util.Collections" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.OrderSeqComparator" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.OrderBySeqComparator" %> - -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - List reportCols = rdef.getAllColumns(); - Collections.sort(reportCols, new OrderSeqComparator()); - int numSortCols = rdef.getNumSortColumns(); %> - - - - - - - - - - - -<% int iCount = 0; - Collections.sort(reportCols,new OrderBySeqComparator()); - for(Iterator iter=reportCols.iterator(); iter.hasNext(); ) { - DataColumnType dct = (DataColumnType) iter.next(); - if(dct.getOrderBySeq()>0) { %> - > - - - - - - - -<% - iCount++; - } // if - } // for - Collections.sort(reportCols, new OrderSeqComparator()); -%> -<% if(numSortCols==0) { %> - - - -<% } %> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
    Sort OrderSort By ColumnSort TypeRe-order - <% if(numSortCols - - -
    - <% } %> - - <% if(numSortCols -
    - <% } %> -
    <%= iCount+1 %><%= dct.getDisplayName() %><%= dct.getOrderByAscDesc().equals(AppConstants.SO_ASC)?"Ascending":"Descending" %> -<% if(iCount==0) { %> - -<% } else { %> - -<% } %> -<% if(iCount==numSortCols-1) { %> - -<% } else { %> - -<% } %> -
    No sorting defined
    -
    - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_order_all.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_order_all.jsp deleted file mode 100644 index 9e04f2b8..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sorting_order_all.jsp +++ /dev/null @@ -1,112 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.ReportWrapper" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.FormField" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.OrderBySeqComparator" %> -<%@ page import="java.util.Collections" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - -%> - - - - - - - - - - -<% int icnt = 0; - for(Iterator iter=rdef.getAllColumns().iterator(); iter.hasNext(); icnt++) { - DataColumnType dct = (DataColumnType) iter.next(); %> - > - - - - - -<% } // for -%> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %> - <%= curSubStep %>
      No  ColumnSort OrderSort Type
    <%= icnt+1 %><%= dct.getDisplayName() %> - - "> - - -
    - - -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sql_def.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sql_def.jsp deleted file mode 100644 index d8152c05..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_sql_def.jsp +++ /dev/null @@ -1,226 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.ReportWrapper" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.runtime.FormField" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.OrderBySeqComparator" %> -<%@ page import="java.util.Collections" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableSource" %> -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - String reportID = rdef.getReportID(); - boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB); - boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED); - -%> - - - - - - - - - - - - - - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
    -  Report SQL:
    - <% boolean sqlValidated = (nvl(AppUtils.getRequestValue(request, "sqlValidated"), nvl(rdef.getReportSQL())).length()>0); - if(request.getAttribute(AppConstants.RI_ERROR_LIST)!=null) - sqlValidated = false; - - String sql = nvl(rdef.getReportSQL(), "SELECT "); - if(! sqlValidated) - sql = nvl(AppUtils.getRequestValue(request, "reportSQL"), sql); %> - "> -   -
    -  Keyword Assistance
    - -       SELECT  DISTINCT 
    -       FROM 
    -       WHERE 
    -       GROUP BY 
    -       HAVING 
    -       ORDER BY  ASC  DESC 
    -
    -       UNION  ALL  INTERSECT  MINUS 
    -
    -       AND  OR  NOT  EXISTS 
    -       IS  NULL  IN  BETWEEN 
    -
    -       COUNT(  SUM(  AVG(  MAX(  MIN( 
    -
    -       NVL(  DECODE(  SYSDATE 
    -       TO_CHAR(  TO_NUMBER(  TO_DATE( 
    -       TRUNC(  ROUND(  ABS( 
    -       SUBSTR(  REPLACE(  LOWER(  UPPER( 
    -       LTRIM(  RTRIM(  LPAD(  RPAD( 
    -
    -
    - - -   - -   - -   - -
    You need to click the "Validate SQL" button in order to store the SQL before going forward
    -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_edit.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_edit.jsp deleted file mode 100644 index 88ecda31..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_edit.jsp +++ /dev/null @@ -1,369 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.Vector" %> -<%@ page import="java.util.List" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="java.util.Iterator" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataSourceType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.DBColumnInfo" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableSource" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.SemaphoreType" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableJoin" %> -<%@ page import="org.openecomp.portalsdk.analytics.error.UserDefinedException"%> - -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); - boolean isEdit = curSubStep.equals(AppConstants.WSS_EDIT); - DataSourceType currTable = null; - if(isEdit) - currTable = rdef.getTableById(AppUtils.getRequestNvlValue(request, AppConstants.RI_DETAIL_ID)); - Vector reportTableSources = (isEdit)?DataCache.getReportTableSources((String) session.getAttribute("remoteDB")):DataCache.getReportTableSources(AppUtils.getUserRoles(request),((String) session.getAttribute("remoteDB")), AppUtils.getUserID(request), request); - if(reportTableSources.size()<=0) { - request.setAttribute(AppConstants.RI_EXCEPTION, new Exception("Please add table name to the raptor table for generating report")); - throw new UserDefinedException("Please add table name to the raptor table for generating report"); - } - Vector reportTableJoins = (isEdit)?DataCache.getReportTableJoins():DataCache.getReportTableJoins(AppUtils.getUserRoles(request)); %> - -<% if(! isEdit) { %> - -<% } %> - - - - - - - - - - - - - - - -<% if(rdef.getDataSourceList().getDataSource().size()>(isEdit?1:0)) { - String outerJoinType = (isEdit?rdef.getOuterJoinType(currTable):""); %> - - - - - - - - - - <% if(isEdit) { %> - - <%} %> - - - - - -<% } %> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %> - <%= curSubStep %>
    Table Name - <% if(isEdit) { - String tName = null; - for(int i=0; i - <%= nvl(tName, currTable.getTableName()) %> - - <% } else { %> - - <% } %> - -
    Display Name -
    Join To Table - <% if(isEdit) { %> - <% if(currTable.getRefTableId()==null){%> - --- Table Not Joined --- - <%} else { %> - <%=rdef.getTableById(currTable.getRefTableId()).getDisplayName() %> -
    on : <%=currTable.getRefDefinition() %> - <%} %> - - - <% } else { %> - - <% } %> -
    All availabe Join Options - -
    Join Type - -
    -
    - - - -<%! - private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_list.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_list.jsp deleted file mode 100644 index 47fd435f..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_tables_list.jsp +++ /dev/null @@ -1,85 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.Vector" %> -<%@ page import="java.util.List" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="java.util.Iterator" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataSourceType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.DBColumnInfo" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableSource" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.SemaphoreType" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableJoin" %> - -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); -%> - - - - - - - - - -<% int iCount = 0; - for(Iterator iter=rdef.getDataSourceList().getDataSource().iterator(); iter.hasNext(); iCount++) { - DataSourceType dst = (DataSourceType) iter.next(); %> - > - - - - - -<% } %> -<% if(iCount==0) { %> - - - -<% } %> -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
      No  Table
    <%= iCount+1 %><%= nvl(dst.getDisplayName()).length()>0?dst.getDisplayName():dst.getTableName()%>
    No tables defined
    -
    - - - -<%! private String nvl(String s) { return (s==null)?"":s; } - private String nvl(String s, String sDefault) { return nvl(s).equals("")?sDefault:s; } -%> - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_user_access.jsp b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_user_access.jsp deleted file mode 100644 index b5c68045..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/WEB-INF/fusion/raptor/wizard_user_access.jsp +++ /dev/null @@ -1,184 +0,0 @@ -<%-- - ================================================================================ - 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. - ================================================================================ - --%> -<%@ 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.Vector" %> -<%@ page import="java.util.List" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.DataCache" %> -<%@ page import="java.util.Iterator" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataSourceType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.DBColumnInfo" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableSource" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.SemaphoreType" %> -<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.FormFieldType" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.TableJoin" %> -<%@ page import="org.openecomp.portalsdk.analytics.model.definition.SecurityEntry" %> -<%@ page import="org.openecomp.portalsdk.analytics.util.Utils" %> - -<% - ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION); - WizardSequence ws = rdef.getWizardSequence(); - String curSubStep = ws.getCurrentSubStep(); -%> - - - - - - - - - - - - - - - - - - - - - - -
    Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %>
    Created By: <%= AppUtils.getUserName(rdef.getCreateID()) %>Created Date: <%= rdef.getCreateDate() %>
    Last Updated By: <%= AppUtils.getUserName(rdef.getUpdateID()) %>Last Updated: <%= rdef.getUpdateDate() %>
    Report Owner: - - Public? (All users can run the report) - -
    -
    - - - - - - - - - - - - -<% int iCount = 0; - Vector reportUsers = rdef.getReportUsers(request); - for(Iterator iter=reportUsers.iterator(); iter.hasNext(); iCount++) { - SecurityEntry rUser = (SecurityEntry) iter.next(); %> - "> - - - - - - -<% } // for -// if(iCount==0) { %> - -<% //} - Vector remainingUsers = Utils.getUsersNotInList(reportUsers,request); - if(remainingUsers.size()>0) { %> - - -<% } // if -%> - -
    Report Users
      No  User NameRun AccessEdit AccessRemove
    <%= iCount+1 %><%= rUser.getName() %>" alt="<%= rUser.isReadOnly()?"Grant":"Revoke" %> edit access" width="16" height="16" border="0" onClick="document.forma.<%= AppConstants.RI_WIZARD_ACTION %>.value='<%= rUser.isReadOnly()?AppConstants.WA_GRANT_USER:AppConstants.WA_REVOKE_USER %>'; document.forma.<%= AppConstants.RI_DETAIL_ID %>.value='<%= rUser.getId() %>';">
    Grant Access To  - -
    -
    - - - - - - - - - - - - -<% iCount = 0; - Vector reportRoles = rdef.getReportRoles(request); - for(Iterator iter=reportRoles.iterator(); iter.hasNext(); iCount++) { - SecurityEntry rRole = (SecurityEntry) iter.next(); %> - "> - - - - - - -<% } // for -// if(iCount==0) { %> - -<% //} - Vector remainingRoles = Utils.getRolesNotInList(reportRoles,request); - if(remainingRoles.size()>0) { %> - - -<% } // if -%> - -
    Report Roles
      No  Role NameRun AccessEdit AccessRemove
    <%= iCount+1 %><%= rRole.getName() %>" alt="<%= rRole.isReadOnly()?"Grant":"Revoke" %> edit access" width="16" height="16" border="0" onClick="document.forma.<%= AppConstants.RI_WIZARD_ACTION %>.value='<%= rRole.isReadOnly()?AppConstants.WA_GRANT_ROLE:AppConstants.WA_REVOKE_ROLE %>'; document.forma.<%= AppConstants.RI_DETAIL_ID %>.value='<%= rRole.getId() %>';">
    Grant Access To  - -
    -
    - - - diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/busy_hour_traffic.html b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/busy_hour_traffic.html deleted file mode 100644 index 54ff7849..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/busy_hour_traffic.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - -Busy hour traffic analysis by day of week - - - - - - - - - - - - - - - - - - - -
    -
    -
      -
    • {{TrafficTab.title}}
    • -
    -
    -
    -
    - - - - - -
    -
    - - \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/traffic_distribution.html b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/traffic_distribution.html deleted file mode 100644 index 0b196bae..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/external/samples/html/traffic_distribution.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - -Traffic distribution by day of week - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
      -
    • {{Daytab.title}}
    • -
    -
    -
    -
    - - - - - - - -
    -
    - - \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-admin/role.html b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-admin/role.html index e2aa188a..6268cf6f 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-admin/role.html +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-admin/role.html @@ -9,7 +9,7 @@
    diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/projected_overlay.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/projected_overlay.js deleted file mode 100644 index 00ce65a1..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/projected_overlay.js +++ /dev/null @@ -1,129 +0,0 @@ -// Create an overlay on the map from a projected image... -// Author. John D. Coryat 01/2008 -// USNaviguide LLC - http://www.usnaviguide.com -// Thanks go to Mile Williams EInsert: http://econym.googlepages.com/einsert.js, Google's GOverlay Example and Bratliff's suggestion... -// Opacity code from TPhoto: http://gmaps.tommangan.us/addtphoto.html -// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. -// -// Parameters: -// imageUrl: URL of the image -// bounds: Bounds object of image destination -// addZoom: Added Zoom factor as a parameter to the imageUrl (include complete parameter, including separater like '?zoom=' -// - -function ProjectedOverlay(imageUrl, bounds, addZoom) -{ - this.url_ = imageUrl ; - this.bounds_ = bounds ; - this.addZ_ = addZoom ; // Add the zoom to the image as a parameter - - // Is this IE, if so we need to use AlphaImageLoader - - this.ie = false ; - var agent = navigator.userAgent.toLowerCase(); - if ((agent.indexOf("msie") > -1) && (agent.indexOf("opera") < 1)) - { - this.ie = true ; - } -} - -ProjectedOverlay.prototype = new GOverlay(); - -ProjectedOverlay.prototype.initialize = function(map) -{ - var div = document.createElement("div") ; - div.style.position = "absolute" ; - div.setAttribute('id',this.id) ; - map.getPane(G_MAP_MAP_PANE).appendChild(div) ; - this.map_ = map ; - this.div_ = div ; - if( this.percentOpacity ) - { - this.setOpacity(this.percentOpacity) ; - } -} - -// Remove the main DIV from the map pane - -ProjectedOverlay.prototype.remove = function() -{ - this.div_.parentNode.removeChild(this.div_); - delete(this.map) ; - delete(this.div) ; -} - -// Copy our data to a new ProjectedOverlay... - -ProjectedOverlay.prototype.copy = function() -{ - return new ProjectedOverlay(this.url_, this.bounds_, this.addZ_); -} - -// Redraw based on the current projection and zoom level... - -ProjectedOverlay.prototype.redraw = function(force) -{ - // We only need to redraw if the coordinate system has changed - if (!force) - { - return ; - } - - var c1 = this.map_.fromLatLngToDivPixel(this.bounds_.getSouthWest()); - var c2 = this.map_.fromLatLngToDivPixel(this.bounds_.getNorthEast()); - - // Now position our DIV based on the DIV coordinates of our bounds - - this.div_.style.width = Math.abs(c2.x - c1.x) + "px"; - this.div_.style.height = Math.abs(c2.y - c1.y) + "px"; - this.div_.style.left = Math.min(c2.x, c1.x) + "px"; - this.div_.style.top = Math.min(c2.y, c1.y) + "px"; - - var url = this.url_ ; - var extn = url.substring(url.length - 4, 4) ; - - if ( this.addZ_ ) - { - url += this.addZ_ + this.map_.getZoom() ; - } - - if (this.ie && extn.toLowerCase() == '.png') - { - var loader = "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + url + "', sizingMethod='scale');" ; - this.div_.innerHTML = '
    ' ; - } else - { - this.div_.innerHTML = '' ; - } -} - -ProjectedOverlay.prototype.setOpacity=function(opacity) -{ - if (opacity < 0) - { - opacity = 0 ; - } - if(opacity > 100) - { - opacity = 100 ; - } - var c = opacity/100 ; - var d = document.getElementById( this.id ) ; - - if (typeof(d.style.filter) =='string') - { - d.style.filter = 'alpha(opacity:' + opacity + ')' ; - } - if (typeof(d.style.KHTMLOpacity) == 'string' ) - { - d.style.KHTMLOpacity = c ; - } - if (typeof(d.style.MozOpacity) == 'string') - { - d.style.MozOpacity = c ; - } - if (typeof(d.style.opacity) == 'string') - { - d.style.opacity = c ; - } -} diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/ajax.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/ajax.js deleted file mode 100644 index a727447d..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/ajax.js +++ /dev/null @@ -1,194 +0,0 @@ -/* Simple AJAX Code-Kit (SACK) v1.6.1 */ -/* ©2005 Gregory Wild-Smith */ -/* www.twilightuniverse.com */ -/* Software licenced under a modified X11 licence, - see documentation or authors website for more details */ - -function sack(file) { - this.xmlhttp = null; - this.resetData = function() { - this.method = "POST"; - this.queryStringSeparator = "?"; - this.argumentSeparator = "&"; - this.URLString = ""; - this.encodeURIString = true; - this.execute = false; - this.element = null; - this.elementObj = null; - this.requestFile = file; - this.vars = new Object(); - this.responseStatus = new Array(2); - }; - - this.resetFunctions = function() { - this.onLoading = function() { }; - this.onLoaded = function() { }; - this.onInteractive = function() { }; - this.onCompletion = function() { }; - this.onError = function() { }; - this.onFail = function() { }; - }; - - this.reset = function() { - this.resetFunctions(); - this.resetData(); - }; - - this.createAJAX = function() { - try { - this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e1) { - try { - this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); - } catch (e2) { - this.xmlhttp = null; - } - } - - if (! this.xmlhttp) { - if (typeof XMLHttpRequest != "undefined") { - this.xmlhttp = new XMLHttpRequest(); - } else { - this.failed = true; - } - } - }; - - this.setVar = function(name, value){ - this.vars[name] = Array(value, false); - }; - - this.encVar = function(name, value, returnvars) { - if (true == returnvars) { - return Array(encodeURIComponent(name), encodeURIComponent(value)); - } else { - this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true); - } - } - - this.processURLString = function(string, encode) { - encoded = encodeURIComponent(this.argumentSeparator); - regexp = new RegExp(this.argumentSeparator + "|" + encoded); - varArray = string.split(regexp); - for (i = 0; i < varArray.length; i++){ - urlVars = varArray[i].split("="); - if (true == encode){ - this.encVar(urlVars[0], urlVars[1]); - } else { - this.setVar(urlVars[0], urlVars[1]); - } - } - } - - this.createURLString = function(urlstring) { - if (this.encodeURIString && this.URLString.length) { - this.processURLString(this.URLString, true); - } - if (urlstring) { - if (this.URLString.length) { - this.URLString += this.argumentSeparator + urlstring; - } else { - this.URLString = urlstring; - } - } - - // prevents caching of URLString - this.setVar("rndval", new Date().getTime()); - - urlstringtemp = new Array(); - for (key in this.vars) { - if (false == this.vars[key][1] && true == this.encodeURIString) { - encoded = this.encVar(key, this.vars[key][0], true); - delete this.vars[key]; - this.vars[encoded[0]] = Array(encoded[1], true); - key = encoded[0]; - } - - urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0]; - } - if (urlstring){ - this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator); - } else { - this.URLString += urlstringtemp.join(this.argumentSeparator); - } - } - - this.runResponse = function() { - eval(this.response); - } - - this.runAJAX = function(urlstring) { - if (this.failed) { - this.onFail(); - } else { - this.createURLString(urlstring); - - if (this.element) { - this.elementObj = document.getElementById(this.element); - } - - if (this.xmlhttp) { - var self = this; - if (this.method == "GET") { - totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString; - this.xmlhttp.open(this.method, totalurlstring, true); - } else { - this.xmlhttp.open(this.method, this.requestFile, true); - try { - this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") - } catch (e) { } - } - //document.myForm.action=urlstring; - //document.myForm.submit(); - this.xmlhttp.onreadystatechange = function() { - switch (self.xmlhttp.readyState) { - case 1: - self.onLoading(); - break; - case 2: - self.onLoaded(); - break; - case 3: - self.onInteractive(); - break; - case 4: - self.response = self.xmlhttp.responseText; - self.responseXML = self.xmlhttp.responseXML; - self.responseStatus[0] = self.xmlhttp.status; - self.responseStatus[1] = self.xmlhttp.statusText; - - if (self.execute) { - self.runResponse(); - } - - if (self.elementObj) { - elemNodeName = self.elementObj.nodeName; - elemNodeName.toLowerCase(); - if (elemNodeName == "input" - || elemNodeName == "select" - || elemNodeName == "option" - || elemNodeName == "textarea") { - self.elementObj.value = self.response; - } else { - self.elementObj.innerHTML = self.response; - } - } - if (self.responseStatus[0] == "200") { - self.onCompletion(); - } else { - self.onError(); - } - - self.URLString = ""; - break; - } - }; - this.xmlhttp.send(this.URLString); - - } - } - }; - - this.reset() ; - this.createAJAX(); -} diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/context-menu.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/context-menu.js deleted file mode 100644 index 70fb7096..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/context-menu.js +++ /dev/null @@ -1,444 +0,0 @@ -/************************************************************************************************************ -Context menu -Copyright (C) 2006 DTHMLGoodies.com, Alf Magne Kalleland - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Dhtmlgoodies.com., hereby disclaims all copyright interest in this script -written by Alf Magne Kalleland. - -Alf Magne Kalleland, 2006 -Owner of DHTMLgoodies.com - - -************************************************************************************************************/ - -DHTMLGoodies_menuModel = function() -{ - var menuItems; - this.menuItems = new Array(); - - -} - -/************************************************************************************************************ -* DHTML menu model class -* -* Created: October, 30th, 2006 -* @class Purpose of class: Saves menu item data -* -* -* Demos of this class: demo-menu-strip.html -* -* Update log: -* -************************************************************************************************************/ - - -/** -* @constructor -* @class Purpose of class: Organize menu items for different menu widgets. demos of menus: (Demo) -* @version 1.0 -* @author Alf Magne Kalleland(www.dhtmlgoodies.com) -*/ - - -DHTMLGoodies_menuModel.prototype = { - // {{{ addItem() - /** - * Add separator (special type of menu item) - * - * @param int id of menu item - * @param string itemText = text of menu item - * @param string itemIcon = file name of menu icon(in front of menu text. Path will be imagePath for the DHTMLSuite + file name) - * @param string url = Url of menu item - * @param int parent id of menu item - * @param String jsFunction Name of javascript function to execute. It will replace the url param. The function with this name will be called and the element triggering the action will be - * sent as argument. Name of the element which triggered the menu action may also be sent as a second argument. That depends on the widget. The context menu is an example where - * the element triggering the context menu is sent as second argument to this function. - * - * @public - */ - addItem : function(id,itemText,itemIcon,url,parentId,jsFunction) - { - this.menuItems[id] = new Array(); - this.menuItems[id]['id'] = id; - this.menuItems[id]['itemText'] = itemText; - this.menuItems[id]['itemIcon'] = itemIcon; - this.menuItems[id]['url'] = url; - this.menuItems[id]['parentId'] = parentId; - this.menuItems[id]['separator'] = false; - this.menuItems[id]['jsFunction'] = jsFunction; - - } - , - // {{{ addSeparator() - /** - * Add separator (special type of menu item) - * - * @param int id of menu item - * @param int parent id of menu item - * @public - */ - addSeparator : function(id,parentId) - { - this.menuItems[id] = new Array(); - this.menuItems[id]['parentId'] = parentId; - this.menuItems[id]['separator'] = true; - } - , - // {{{ init() - /** - * Initilizes the menu model. This method should be called when all items has been added to the model. - * - * - * @public - */ - init : function() - { - this.__getDepths(); - - } - // }}} - , - // {{{ __getDepths() - /** - * Create variable for the depth of each menu item. - * - * - * @private - */ - getItems : function() - { - return this.menuItems; - } - - , - // {{{ __getDepths() - /** - * Create variable for the depth of each menu item. - * - * - * @private - */ - __getDepths : function() - { - for(var no in this.menuItems){ - this.menuItems[no]['depth'] = 1; - if(this.menuItems[no]['parentId']){ - this.menuItems[no]['depth'] = this.menuItems[this.menuItems[no]['parentId']]['depth']+1; - } - } - } - , - // {{{ __hasSubs() - /** - * Does a menu item have sub elements ? - * - * - * @private - */ - // }}} - __hasSubs : function(id) - { - for(var no in this.menuItems){ // Looping through menu items - if(this.menuItems[no]['parentId']==id)return true; - } - return false; - } - - -} - - - -var referenceToDHTMLSuiteContextMenu; - - -DHTMLGoodies_contextMenu = function() -{ - var menuModels; - var menuItems; - var menuObject; // Reference to context menu div - var layoutCSS; - var menuUls; // Array of
      elements - var width; // Width of context menu - var srcElement; // Reference to the element which triggered the context menu, i.e. the element which caused the context menu to be displayed. - var indexCurrentlyDisplayedMenuModel; // Index of currently displayed menu model. - var imagePath; - - this.menuModels = new Array(); - this.menuObject = false; - this.menuUls = new Array(); - this.width = 100; - this.srcElement = false; - this.indexCurrentlyDisplayedMenuModel = false; - this.imagePath = imgFolder+'tree/'; - -} - -DHTMLGoodies_contextMenu.prototype = -{ - - setWidth : function(newWidth) - { - this.width = newWidth; - } - // }}} - , - // {{{ setLayoutCss() - /** - * Add menu items - * - * @param String cssFileName Name of css file - * - * @public - */ - setLayoutCss : function(cssFileName) - { - this.layoutCSS = cssFileName; - } - // }}} - , - // {{{ attachToElement() - /** - * Add menu items - * - * @param Object HTML Element = Reference to html element - * @param String elementId = String id of element(optional). An alternative to HTML Element - * - * @public - */ - attachToElement : function(element,elementId,menuModel) - { - window.refToThisContextMenu = this; - if(!element && elementId)element = document.getElementById(elementId); - if(!element.id){ - element.id = 'context_menu' + Math.random(); - element.id = element.id.replace('.',''); - } - this.menuModels[element.id] = menuModel; - element.oncontextmenu = this.__displayContextMenu; - //element.onmousedown = function() { window.refToThisContextMenu.__setReference(window.refToThisContextMenu); }; - document.documentElement.onclick = this.__hideContextMenu; - - } - // }}} - , - // {{{ __setReference() - /** - * Creates a reference to current context menu object. (Note: This method should be deprecated as only one context menu object is needed) - * - * @param Object context menu object = Reference to context menu object - * - * @private - */ - __setReference : function(obj) - { - referenceToDHTMLSuiteContextMenu = obj; - } - , - // {{{ __displayContextMenu() - /** - * Displays the context menu - * - * @param Event e - * - * @private - */ - __displayContextMenu : function(e) - { - if(document.all)e = event; - var ref = referenceToDHTMLSuiteContextMenu; - ref.srcElement = ref.getSrcElement(e); - - if(!ref.indexCurrentlyDisplayedMenuModel || ref.indexCurrentlyDisplayedMenuModel!=this.id){ - if(ref.indexCurrentlyDisplayedMenuModel){ - ref.menuObject.innerHTML = ''; - }else{ - ref.__createDivs(); - } - ref.menuItems = ref.menuModels[this.id].getItems(); - ref.__createMenuItems(); - } - ref.indexCurrentlyDisplayedMenuModel=this.id; - - ref.menuObject.style.left = (e.clientX + Math.max(document.body.scrollLeft,document.documentElement.scrollLeft)) + 'px'; - ref.menuObject.style.top = (e.clientY + Math.max(document.body.scrollTop,document.documentElement.scrollTop)) + 'px'; - ref.menuObject.style.display='block'; - return false; - - } - // }}} - , - // {{{ __displayContextMenu() - /** - * Add menu items - * - * @param Event e - * - * @private - */ - __hideContextMenu : function() - { - var ref = referenceToDHTMLSuiteContextMenu; - if(ref.menuObject)ref.menuObject.style.display = 'none'; - - - } - // }}} - , - // {{{ __createDivs() - /** - * Creates general divs for the menu - * - * - * @private - */ - __createDivs : function() - { - this.menuObject = document.createElement('DIV'); - this.menuObject.className = 'DHTMLSuite_contextMenu'; - this.menuObject.style.backgroundImage = 'url(\'' + this.imagePath + 'context-menu-gradient.gif' + '\')'; - this.menuObject.style.backgroundRepeat = 'repeat-y'; - if(this.width)this.menuObject.style.width = this.width + 'px'; - document.body.appendChild(this.menuObject); - } - // }}} - , - - // {{{ __mouseOver() - /** - * Display mouse over effect when moving the mouse over a menu item - * - * - * @private - */ - __mouseOver : function() - { - this.className = 'DHTMLSuite_item_mouseover'; - if(!document.all){ - this.style.backgroundPosition = 'left center'; - } - - } - // }}} - , - // {{{ __mouseOut() - /** - * Remove mouse over effect when moving the mouse away from a menu item - * - * - * @private - */ - __mouseOut : function() - { - this.className = ''; - if(!document.all){ - this.style.backgroundPosition = '1px center'; - } - } - // }}} - , - // {{{ __createMenuItems() - /** - * Create menu items - * - * - * @private - */ - __evalUrl : function() - { - var js = this.getAttribute('jsFunction'); - if(!js)js = this.jsFunction; - if(js)eval(js); - - } - // }}} - , - // {{{ __createMenuItems() - /** - * Create menu items - * - * - * @private - */ - __createMenuItems : function() - { - window.refToContextMenu = this; // Reference to menu strip object - this.menuUls = new Array(); - for(var no in this.menuItems){ // Looping through menu items - if(!this.menuUls[0]){ // Create main ul element - this.menuUls[0] = document.createElement('UL'); - this.menuObject.appendChild(this.menuUls[0]); - } - - if(this.menuItems[no]['depth']==1){ - - if(this.menuItems[no]['separator']){ - var li = document.createElement('DIV'); - li.className = 'DHTMLSuite_contextMenu_separator'; - }else{ - var li = document.createElement('LI'); - if(this.menuItems[no]['jsFunction']){ - this.menuItems[no]['url'] = this.menuItems[no]['jsFunction'] + '(this,referenceToDHTMLSuiteContextMenu.srcElement)'; - } - if(this.menuItems[no]['itemIcon']){ - li.style.backgroundImage = 'url(\'' + this.menuItems[no]['itemIcon'] + '\')'; - if(!document.all)li.style.backgroundPosition = '1px center'; - - } - - if(this.menuItems[no]['url']){ - var url = this.menuItems[no]['url'] + ''; - var tmpUrl = url + ''; - li.setAttribute('jsFunction',url); - li.jsFunction = url; - li.onclick = this.__evalUrl; - - } - - li.innerHTML = '' + this.menuItems[no]['itemText'] + ''; - li.onmouseover = this.__mouseOver; - li.onmouseout = this.__mouseOut; - } - this.menuUls[0].appendChild(li); - } - } - } - - , - - // {{{ getSrcElement() - /** - * - * Returns a reference to the element which triggered an event. - * @param Event e = Event object - * - * - * @private - */ - getSrcElement : function(e) - { - var el; - // Dropped on which element - if (e.target) el = e.target; - else if (e.srcElement) el = e.srcElement; - if (el.nodeType == 3) // defeat Safari bug - el = el.parentNode; - return el; - } - -} \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/drag-drop-folder-tree.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/drag-drop-folder-tree.js deleted file mode 100644 index 165306f2..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/raptor/js/tree/drag-drop-folder-tree.js +++ /dev/null @@ -1,1059 +0,0 @@ - /************************************************************************************************************ -Drag and drop folder tree -Copyright (C) 2006 DTHMLGoodies.com, Alf Magne Kalleland - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Dhtmlgoodies.com., hereby disclaims all copyright interest in this script -written by Alf Magne Kalleland. - -Alf Magne Kalleland, 2006 -Owner of DHTMLgoodies.com - - -************************************************************************************************************/ - - var JSTreeObj; - var treeUlCounter = 0; - var nodeId = 1; - - /* Constructor */ - function JSDragDropTree() - { - var idOfTree; - var imageFolder; - var folderImage; - var plusImage; - var minusImage; - var maximumDepth; - var dragNode_source; - var dragNode_parent; - var dragNode_sourceNextSib; - var dragNode_noSiblings; - var ajaxObjects; - - var dragNode_destination; - var floatingContainer; - var dragDropTimer; - var dropTargetIndicator; - var insertAsSub; - var indicator_offsetX; - var indicator_offsetX_sub; - var indicator_offsetY; - - this.imageFolder = imgFolder+'tree/'; - this.folderImage = 'dhtmlgoodies_folder.gif'; - this.plusImage = 'dhtmlgoodies_plus.gif'; - this.minusImage = 'dhtmlgoodies_minus.gif'; - this.maximumDepth = 6; - var messageMaximumDepthReached; - var messageNoRightsOnFolder; - var filePathRenameItem; - var filePathDeleteItem; - var additionalRenameRequestParameters = {}; - var additionalDeleteRequestParameters = {}; - - var renameAllowed; - var deleteAllowed; - var addAllowed; - var currentlyActiveItem; - var contextMenu; - var currentItemToEdit; // Reference to item currently being edited(example: renamed) - var selectedItem; // ADDED BY FARHAN - var helpObj; - - this.contextMenu = false; - this.floatingContainer = document.createElement('UL'); - this.floatingContainer.style.position = 'absolute'; - this.floatingContainer.style.display='none'; - this.floatingContainer.id = 'floatingContainer'; - this.insertAsSub = false; - document.body.appendChild(this.floatingContainer); - this.dragDropTimer = -1; - this.dragNode_noSiblings = false; - this.currentItemToEdit = false; - - if(document.all){ - this.indicator_offsetX = 2; // Offset position of small black lines indicating where nodes would be dropped. - this.indicator_offsetX_sub = 4; - this.indicator_offsetY = 2; - }else{ - this.indicator_offsetX = 1; // Offset position of small black lines indicating where nodes would be dropped. - this.indicator_offsetX_sub = 3; - this.indicator_offsetY = 2; - } - if(navigator.userAgent.indexOf('Opera')>=0){ - this.indicator_offsetX = 2; // Offset position of small black lines indicating where nodes would be dropped. - this.indicator_offsetX_sub = 3; - this.indicator_offsetY = -7; - } - - this.messageMaximumDepthReached = ''; // Use '' if you don't want to display a message - this.messageNoRightsOnFolder = 'You do not have access to this folder'; - - this.renameAllowed = true; - this.deleteAllowed = true; - this.addAllowed = true; - this.currentlyActiveItem = false; - this.filePathRenameItem = 'folderTree_updateItem.php'; - this.filePathDeleteItem = 'tree'; - this.ajaxObjects = new Array(); - this.helpObj = false; - - this.RENAME_STATE_BEGIN = 1; - this.RENAME_STATE_CANCELED = 2; - this.RENAME_STATE_REQUEST_SENDED = 3; - this.renameState = null; - } - - - /* JSDragDropTree class */ - JSDragDropTree.prototype = { - // {{{ addEvent() - /** - * - * This function adds an event listener to an element on the page. - * - * @param Object whichObject = Reference to HTML element(Which object to assigne the event) - * @param String eventType = Which type of event, example "mousemove" or "mouseup" - * @param functionName = Name of function to execute. - * - * @public - */ - addEvent : function(whichObject,eventType,functionName) - { - if(whichObject.attachEvent){ - whichObject['e'+eventType+functionName] = functionName; - whichObject[eventType+functionName] = function(){whichObject['e'+eventType+functionName]( window.event );} - whichObject.attachEvent( 'on'+eventType, whichObject[eventType+functionName] ); - } else - whichObject.addEventListener(eventType,functionName,false); - } - // }}} - , - // {{{ removeEvent() - /** - * - * This function removes an event listener from an element on the page. - * - * @param Object whichObject = Reference to HTML element(Which object to assigne the event) - * @param String eventType = Which type of event, example "mousemove" or "mouseup" - * @param functionName = Name of function to execute. - * - * @public - */ - removeEvent : function(whichObject,eventType,functionName) - { - if(whichObject.detachEvent){ - whichObject.detachEvent('on'+eventType, whichObject[eventType+functionName]); - whichObject[eventType+functionName] = null; - } else - whichObject.removeEventListener(eventType,functionName,false); - } - , - Get_Cookie : function(name) { - var start = document.cookie.indexOf(name+"="); - var len = start+name.length+1; - if ((!start) && (name != document.cookie.substring(0,name.length))) return null; - if (start == -1) return null; - var end = document.cookie.indexOf(";",len); - if (end == -1) end = document.cookie.length; - return unescape(document.cookie.substring(len,end)); - } - , - // This function has been slightly modified - Set_Cookie : function(name,value,expires,path,domain,secure) { - expires = expires * 60*60*24*1000; - var today = new Date(); - var expires_date = new Date( today.getTime() + (expires) ); - var cookieString = name + "=" +escape(value) + - ( (expires) ? ";expires=" + expires_date.toGMTString() : "") + - ( (path) ? ";path=" + path : "") + - ( (domain) ? ";domain=" + domain : "") + - ( (secure) ? ";secure" : ""); - document.cookie = cookieString; - } - , - setFileNameRename : function(newFileName) - { - this.filePathRenameItem = newFileName; - } - , - setFileNameDelete : function(newFileName) - { - this.filePathDeleteItem = newFileName; - } - , - setAdditionalRenameRequestParameters : function(requestParameters) - { - this.additionalRenameRequestParameters = requestParameters; - } - , - setAdditionalDeleteRequestParameters : function(requestParameters) - { - this.additionalDeleteRequestParameters = requestParameters; - } - ,setRenameAllowed : function(renameAllowed) - { - this.renameAllowed = renameAllowed; - } - , - setDeleteAllowed : function(deleteAllowed) - { - this.deleteAllowed = deleteAllowed; - } - , - setAddAllowed : function(addAllowed) - { - this.addAllowed = addAllowed; - } - ,setMaximumDepth : function(maxDepth) - { - this.maximumDepth = maxDepth; - } - ,setMessageMaximumDepthReached : function(newMessage) - { - this.messageMaximumDepthReached = newMessage; - } - , - setImageFolder : function(path) - { - this.imageFolder = path; - } - , - setFolderImage : function(imagePath) - { - this.folderImage = imagePath; - } - , - setPlusImage : function(imagePath) - { - this.plusImage = imagePath; - } - , - setMinusImage : function(imagePath) - { - this.minusImage = imagePath; - } - , - setTreeId : function(idOfTree) - { - this.idOfTree = idOfTree; - } - , - expandAll : function() - { - var menuItems = document.getElementById(this.idOfTree).getElementsByTagName('LI'); - for(var no=0;no0 && subItems[0].style.display!='block'){ - JSTreeObj.showHideNode(false,menuItems[no].id); - } - } - } - , - collapseAll : function() - { - var menuItems = document.getElementById(this.idOfTree).getElementsByTagName('LI'); - for(var no=0;no0 && subItems[0].style.display=='block'){ - JSTreeObj.showHideNode(false,menuItems[no].id); - } - } - JSTreeObj.showHideNode(false,menuItems[0].id); - } - , - /* - Find top pos of a tree node - */ - getTopPos : function(obj){ - var top = obj.offsetTop/1; - while((obj = obj.offsetParent) != null){ - if(obj.tagName!='HTML')top += obj.offsetTop; - } - if(document.all)top = top/1 + 13; else top = top/1 + 4; - return top; - } - , - /* - Find left pos of a tree node - */ - getLeftPos : function(obj){ - var left = obj.offsetLeft/1 + 1; - while((obj = obj.offsetParent) != null){ - if(obj.tagName!='HTML')left += obj.offsetLeft; - } - - if(document.all)left = left/1 - 2; - return left; - } - - , - showHideNode : function(e,inputId) - { - if(inputId){ - if(!document.getElementById(inputId))return; - thisNode = document.getElementById(inputId).getElementsByTagName('IMG')[0]; - }else { - thisNode = this; - if(this.tagName=='A')thisNode = this.parentNode.getElementsByTagName('IMG')[0]; - - } - if(thisNode.style.visibility=='hidden')return; - var parentNode = thisNode.parentNode; - inputId = parentNode.id.replace(/[^0-9]/g,''); - if(thisNode.src.indexOf(JSTreeObj.plusImage)>=0){ - thisNode.src = thisNode.src.replace(JSTreeObj.plusImage,JSTreeObj.minusImage); - var ul = parentNode.getElementsByTagName('UL')[0]; - ul.style.display='block'; - if(!initExpandedNodes)initExpandedNodes = ','; - if(initExpandedNodes.indexOf(',' + inputId + ',')<0) initExpandedNodes = initExpandedNodes + inputId + ','; - }else{ - thisNode.src = thisNode.src.replace(JSTreeObj.minusImage,JSTreeObj.plusImage); - parentNode.getElementsByTagName('UL')[0].style.display='none'; - initExpandedNodes = initExpandedNodes.replace(',' + inputId,''); - } - JSTreeObj.Set_Cookie('dhtmlgoodies_expandedNodes',initExpandedNodes,500); - return false; - } - , - /*expand only the selected node*/ - showSelectedNode : function(selectedItemId) - { - var menuItems = document.getElementById(this.idOfTree).getElementsByTagName('LI'); // Get an array of all menu items - - var selectedNode ; - for(var no=0;no0 && subItems[0].style.display!='block'){ - JSTreeObj.showHideNode(false,selectedNode.id); - } - selectedNode = selectedNode.parentNode; - } - }while (selectedNode && selectedNode.id.replace(/[^0-9]/gi,'') != '0'); - return false; - } - , - isDeleteAllowed : function(selectedItemId) - { - var menuItems = document.getElementById(this.idOfTree).getElementsByTagName('LI'); // Get an array of all menu items - - var selectedNode ; - for(var no=0;no0){ - if(JSTreeObj.dragNode_sourceNextSib){ - JSTreeObj.dragNode_parent.insertBefore(JSTreeObj.dragNode_source,JSTreeObj.dragNode_sourceNextSib); - }else{ - JSTreeObj.dragNode_parent.appendChild(JSTreeObj.dragNode_source); - } - } - - JSTreeObj.dragNode_source = this.parentNode; - JSTreeObj.dragNode_parent = this.parentNode.parentNode; - JSTreeObj.dragNode_sourceNextSib = false; - - - if(JSTreeObj.dragNode_source.nextSibling)JSTreeObj.dragNode_sourceNextSib = JSTreeObj.dragNode_source.nextSibling; - JSTreeObj.dragNode_destination = false; - JSTreeObj.dragDropTimer = 0; - JSTreeObj.timerDrag(); - return false; - } - , - timerDrag : function() - { - if(this.dragDropTimer>=0 && this.dragDropTimer<10){ - this.dragDropTimer = this.dragDropTimer + 1; - setTimeout('JSTreeObj.timerDrag()',20); - return; - } - if(this.dragDropTimer==10) - { - JSTreeObj.floatingContainer.style.display='block'; - JSTreeObj.floatingContainer.appendChild(JSTreeObj.dragNode_source); - } - } - , - moveDragableNodes : function(e) - { - if(JSTreeObj.dragDropTimer<10)return; - if(document.all)e = event; - dragDrop_x = e.clientX/1 + 5 + document.body.scrollLeft; - dragDrop_y = e.clientY/1 + 5 + document.documentElement.scrollTop; - - JSTreeObj.floatingContainer.style.left = dragDrop_x + 'px'; - JSTreeObj.floatingContainer.style.top = dragDrop_y + 'px'; - - var thisObj = this; - if(thisObj.tagName=='A' || thisObj.tagName=='IMG')thisObj = thisObj.parentNode; - - JSTreeObj.dragNode_noSiblings = false; - var tmpVar = thisObj.getAttribute('noSiblings'); - if(!tmpVar)tmpVar = thisObj.noSiblings; - if(tmpVar=='true')JSTreeObj.dragNode_noSiblings=true; - - if(thisObj && thisObj.id) - { - JSTreeObj.dragNode_destination = thisObj; - var img = thisObj.getElementsByTagName('IMG')[1]; - var tmpObj= JSTreeObj.dropTargetIndicator; - tmpObj.style.display='block'; - - var eventSourceObj = this; - if(JSTreeObj.dragNode_noSiblings && eventSourceObj.tagName=='IMG')eventSourceObj = eventSourceObj.nextSibling; - - var tmpImg = tmpObj.getElementsByTagName('IMG')[0]; - if(this.tagName=='A' || JSTreeObj.dragNode_noSiblings){ - tmpImg.src = tmpImg.src.replace('ind1','ind2'); - JSTreeObj.insertAsSub = true; - tmpObj.style.left = (JSTreeObj.getLeftPos(eventSourceObj) + JSTreeObj.indicator_offsetX_sub) + 'px'; - }else{ - tmpImg.src = tmpImg.src.replace('ind2','ind1'); - JSTreeObj.insertAsSub = false; - tmpObj.style.left = (JSTreeObj.getLeftPos(eventSourceObj) + JSTreeObj.indicator_offsetX) + 'px'; - } - - tmpObj.style.top = (JSTreeObj.getTopPos(thisObj) + JSTreeObj.indicator_offsetY) - document.getElementById("scrollableTable").scrollTop + 'px' ; - - - } - var divHeight = document.getElementById("scrollableTable").style.height; - divHeight = divHeight.substring(0, divHeight.indexOf("px")); - if (dragDrop_y - JSTreeObj.getTopPos(document.getElementById("scrollableTable"))< 50) - document.getElementById("scrollableTable").scrollTop = document.getElementById("scrollableTable").scrollTop - 5; - else if (dragDrop_y - JSTreeObj.getTopPos(document.getElementById("scrollableTable")) > divHeight - 50) - document.getElementById("scrollableTable").scrollTop = document.getElementById("scrollableTable").scrollTop + 5; - - return false; - - } - , - dropDragableNodes:function() - { - if(JSTreeObj.dragDropTimer<10){ - JSTreeObj.dragDropTimer = -1; - return; - } - var showMessage = false; - var message = ''; - if(JSTreeObj.dragNode_destination){ // Check depth - var countUp = JSTreeObj.dragDropCountLevels(JSTreeObj.dragNode_destination,'up'); - var countDown = JSTreeObj.dragDropCountLevels(JSTreeObj.dragNode_source,'down'); - var countLevels = countUp/1 + countDown/1 + (JSTreeObj.insertAsSub?1:0); - - if(countLevels>JSTreeObj.maximumDepth){ - JSTreeObj.dragNode_destination = false; - showMessage = true; // Used later down in this function - message = JSTreeObj.messageMaximumDepthReachedl - } - } - if (JSTreeObj.dragNode_destination && JSTreeObj.dragNode_destination.getAttribute('noDrop') == 'true'){ - JSTreeObj.dragNode_destination = false; - showMessage = true; // Used later down in this function - message = JSTreeObj.messageNoRightsOnFolder; - } - - - if(JSTreeObj.dragNode_destination){ - - if(JSTreeObj.insertAsSub){ - var uls = JSTreeObj.dragNode_destination.getElementsByTagName('UL'); - if(uls.length>0){ - ul = uls[0]; - ul.style.display='block'; - - var lis = ul.getElementsByTagName('LI'); - - if(lis.length>0){ // Sub elements exists - drop dragable node before the first one - ul.insertBefore(JSTreeObj.dragNode_source,lis[0]); - }else { // No sub exists - use the appendChild method - This line should not be executed unless there's something wrong in the HTML, i.e empty
        - ul.appendChild(JSTreeObj.dragNode_source); - } - }else{ - var ul = document.createElement('UL'); - ul.style.display='block'; - JSTreeObj.dragNode_destination.appendChild(ul); - ul.appendChild(JSTreeObj.dragNode_source); - } - var img = JSTreeObj.dragNode_destination.getElementsByTagName('IMG')[0]; - img.style.visibility='visible'; - img.src = img.src.replace(JSTreeObj.plusImage,JSTreeObj.minusImage); - - - }else{ - if(JSTreeObj.dragNode_destination.nextSibling){ - var nextSib = JSTreeObj.dragNode_destination.nextSibling; - nextSib.parentNode.insertBefore(JSTreeObj.dragNode_source,nextSib); - }else{ - JSTreeObj.dragNode_destination.parentNode.appendChild(JSTreeObj.dragNode_source); - } - } - /* Clear parent object */ - var tmpObj = JSTreeObj.dragNode_parent; - var lis = tmpObj.getElementsByTagName('LI'); - if(lis.length==0){ - var img = tmpObj.parentNode.getElementsByTagName('IMG')[0]; - img.style.visibility='hidden'; // Hide [+],[-] icon - tmpObj.parentNode.removeChild(tmpObj); - } - - }else{ - // Putting the item back to it's original location - - if(JSTreeObj.dragNode_sourceNextSib){ - JSTreeObj.dragNode_parent.insertBefore(JSTreeObj.dragNode_source,JSTreeObj.dragNode_sourceNextSib); - }else{ - JSTreeObj.dragNode_parent.appendChild(JSTreeObj.dragNode_source); - } - - } - JSTreeObj.dropTargetIndicator.style.display='none'; - JSTreeObj.dragDropTimer = -1; - if(showMessage && message){ alert(message); return;} - //save tree structure - saveMyTree_byForm(); - } - , - createDropIndicator : function() - { - this.dropTargetIndicator = document.createElement('DIV'); - this.dropTargetIndicator.style.position = 'absolute'; - this.dropTargetIndicator.style.display='none'; - var img = document.createElement('IMG'); - img.src = this.imageFolder + 'dragDrop_ind1.gif'; - img.id = 'dragDropIndicatorImage'; - this.dropTargetIndicator.appendChild(img); - document.body.appendChild(this.dropTargetIndicator); - - } - , - dragDropCountLevels : function(obj,direction,stopAtObject){ - var countLevels = 0; - if(direction=='up'){ - while(obj.parentNode && obj.parentNode!=stopAtObject){ - obj = obj.parentNode; - if(obj.tagName=='UL')countLevels = countLevels/1 +1; - } - return countLevels; - } - - if(direction=='down'){ - var subObjects = obj.getElementsByTagName('LI'); - for(var no=0;no0){ - var li = lis[0]; - while(li){ - if(li.id){ - if(saveString.length>0)saveString = saveString + ','; - var numericID = li.id.replace(/[^0-9]/gi,''); - if(numericID.length==0)numericID='A'; - var numericParentID = li.parentNode.parentNode.id.replace(/[^0-9]/gi,''); - if(numericID!='0'){ - saveString = saveString + numericID; - saveString = saveString + '-'; - - - if(li.parentNode.id!=this.idOfTree)saveString = saveString + numericParentID; else saveString = saveString + '0'; - } - var ul = li.getElementsByTagName('UL'); - if(ul.length>0){ - saveString = this.getNodeOrders(ul[0],saveString); - } - } - li = li.nextSibling; - } - } - - if(initObj.id == this.idOfTree){ - return saveString; - - } - return saveString; - } - ,highlightItem : function(inputObj,e) - { - if(JSTreeObj.currentlyActiveItem)JSTreeObj.currentlyActiveItem.className = ''; - this.className = 'highlightedNodeItem'; - JSTreeObj.currentlyActiveItem = this; - } - ,clickItem : function(inputObj,e) - { - if(JSTreeObj.currentlyActiveItem) JSTreeObj.currentlyActiveItem.className = ''; - this.className = 'highlightedNodeItem'; - JSTreeObj.currentlyActiveItem = this; - JSTreeObj.selectedItem = this; - }, - removeHighlight : function() - { - //if(JSTreeObj.currentlyActiveItem)JSTreeObj.currentlyActiveItem.className = ''; - //JSTreeObj.currentlyActiveItem = false; - } - , - hasSubNodes : function(obj) - { - var subs = obj.getElementsByTagName('LI'); - if(subs.length>0)return true; - return false; - } - , - deleteItem : function(obj1,obj2) - { - var message = 'Click OK to delete item ' + obj2.innerHTML; - if(this.hasSubNodes(obj2.parentNode)) message = message + ' and it\'s sub nodes'; - if(confirm(message)){ - this.__deleteItem_step2(obj2.parentNode); // Sending
      • tag to the __deleteItem_step2 method - //deleteItem(); - }else{ - return false; - } - - - } - , - addItem : function(obj1,obj2) - { - var message = 'Click OK to Add item ' + obj2.innerHTML; - return this.__addItem_step2(obj2.parentNode); // Sending
      • tag to the __addItem_step2 method - } - , - createMenuReport : function(obj1,obj2) - { - JSTreeObj.selectedItem = obj2; - createReport(); - } - , - runMenuReport : function(obj1,obj2) - { - JSTreeObj.selectedItem = obj2; - runReport(); - - } - , - editMenuReport : function(obj1,obj2) - { - JSTreeObj.selectedItem = obj2; - editReport(); - } - , - deleteMenuReport : function(obj1,obj2) - { - JSTreeObj.selectedItem = obj2; - if (confirm("Do you want to delete this report?")){ - deleteReport(); - } - - } - , - __refreshDisplay : function(obj) - { - if(this.hasSubNodes(obj))return; - - var img = obj.getElementsByTagName('IMG')[0]; - img.style.visibility = 'hidden'; - } - , - __deleteItem_step2 : function(obj) - { - - var saveString = obj.id.replace(/[^0-9]/gi,''); - - var lis = obj.getElementsByTagName('LI'); - for(var no=0;no0){ - inputObj.nextSibling.innerHTML = inputObj.value; - // Send changes to the server. - if (JSTreeObj.renameState != JSTreeObj.RENAME_STATE_BEGIN) { - return; - } - JSTreeObj.renameState = JSTreeObj.RENAME_STATE_REQUEST_SENDED; - var ajaxIndex = JSTreeObj.ajaxObjects.length; - JSTreeObj.ajaxObjects[ajaxIndex] = new sack(); - JSTreeObj.ajaxObjects[ajaxIndex].method = "GET"; - JSTreeObj.ajaxObjects[ajaxIndex].setVar("renameId", inputObj.parentNode.id.replace(/[^0-9]/gi,'')); - JSTreeObj.ajaxObjects[ajaxIndex].setVar("newName", inputObj.value); - JSTreeObj.__addAdditionalRequestParameters(JSTreeObj.ajaxObjects[ajaxIndex], JSTreeObj.additionalRenameRequestParameters); - JSTreeObj.ajaxObjects[ajaxIndex].requestFile = JSTreeObj.filePathRenameItem; // Specifying which file to get - JSTreeObj.ajaxObjects[ajaxIndex].onCompletion = function() { JSTreeObj.__renameComplete(ajaxIndex); } ; // Specify function that will be executed after file has been found - JSTreeObj.ajaxObjects[ajaxIndex].runAJAX(); // Execute AJAX function - - document.all.renameId.value=inputObj.parentNode.id.replace(/[^0-9]/gi,''); - document.all.newName.value= inputObj.value; - renameMyTree_byForm(); - - } - } - , - __cancelRename : function(e,inputObj) - { - JSTreeObj.renameState = JSTreeObj.RENAME_STATE_CANCELD; - if(!inputObj && this)inputObj = this; - inputObj.value = JSTreeObj.helpObj.innerHTML; - inputObj.nextSibling.innerHTML = JSTreeObj.helpObj.innerHTML; - inputObj.style.display = 'none'; - inputObj.nextSibling.style.visibility = 'visible'; - } - , - __renameCheckKeyCode : function(e) - { - if(document.all)e = event; - if(e.keyCode==13){ // Enter pressed - JSTreeObj.__saveTextBoxChanges(false,this); - } - if(e.keyCode==27){ // ESC pressed - JSTreeObj.__cancelRename(false,this); - } - } - , - __createTextBox : function(obj) - { - var textBox = document.createElement('INPUT'); - textBox.className = 'folderTreeTextBox'; - textBox.value = obj.innerHTML; - obj.parentNode.insertBefore(textBox,obj); - textBox.id = 'textBox' + obj.parentNode.id.replace(/[^0-9]/gi,''); - textBox.onblur = this.__saveTextBoxChanges; - textBox.onkeydown = this.__renameCheckKeyCode; - textBox.style.height="16px"; - this.__renameEnableTextBox(obj); - } - , - __renameEnableTextBox : function(obj) - { - JSTreeObj.renameState = JSTreeObj.RENAME_STATE_BEGIN; - obj.style.visibility = 'hidden'; - obj.previousSibling.value = obj.innerHTML; - obj.previousSibling.style.display = 'inline'; - obj.previousSibling.select(); - } - , - renameItem : function(obj1,obj2) - { - currentItemToEdit = obj2.parentNode; // Reference to the
      • tag. - if(!obj2.previousSibling || obj2.previousSibling.tagName.toLowerCase()!='input'){ - this.__createTextBox(obj2); - }else{ - this.__renameEnableTextBox(obj2); - } - this.helpObj.innerHTML = obj2.innerHTML; - - } - , - initTree : function(selectedItemId) - { - JSTreeObj = this; - JSTreeObj.createDropIndicator(); - document.documentElement.onselectstart = JSTreeObj.cancelSelectionEvent; - document.documentElement.ondragstart = JSTreeObj.cancelEvent; - document.documentElement.onmousedown = JSTreeObj.removeHighlight; - - /* Creating help object for storage of values */ - this.helpObj = document.createElement('DIV'); - this.helpObj.style.display = 'none'; - document.body.appendChild(this.helpObj); - /* Create context menu */ - if(this.deleteAllowed || this.renameAllowed || this.addAllowed){ - try{ - /* Creating menu model for the context menu, i.e. the datasource */ - var menuModel = new DHTMLGoodies_menuModel(); - if(this.deleteAllowed)menuModel.addItem(1,'Delete Folder','','',false,'JSTreeObj.deleteItem'); - if(this.deleteAllowed)menuModel.addItem(2,'Rename Folder','','',false,'JSTreeObj.renameItem'); - if(this.addAllowed)menuModel.addItem(3,'New Folder','','',false,'JSTreeObj.addItem'); - menuModel.addItem(4,'Create Report','','',false,'JSTreeObj.createMenuReport'); - menuModel.init(); - - /*For Reports*/ - var menuReportNoRights = new DHTMLGoodies_menuModel(); - menuReportNoRights.addItem(3,'Run','','',false,'JSTreeObj.runItem'); - menuReportNoRights.init(); - - var menuReportWithRights = new DHTMLGoodies_menuModel(); - menuReportWithRights.addItem(1,'Run','','',false,'JSTreeObj.runMenuReport'); - menuReportWithRights.addItem(2,'Edit','','',false,'JSTreeObj.editMenuReport'); - menuReportWithRights.addItem(3,'Delete','','',false,'JSTreeObj.deleteMenuReport'); - menuReportWithRights.init(); - - - var menuModelRenameOnly = new DHTMLGoodies_menuModel(); - if(this.renameAllowed)menuModelRenameOnly.addItem(3,'Rename Folder','','',false,'JSTreeObj.renameItem'); - menuModelRenameOnly.init(); - - var menuModelDeleteOnly = new DHTMLGoodies_menuModel(); - if(this.deleteAllowed)menuModelDeleteOnly.addItem(4,'Delete Folder','','',false,'JSTreeObj.deleteItem'); - menuModelDeleteOnly.init(); - - var menuModelAddOnly = new DHTMLGoodies_menuModel(); - menuModelAddOnly.addItem(1,'New Folder','','',false,'JSTreeObj.addItem'); - menuModelAddOnly.init(); - - window.refToDragDropTree = this; - - this.contextMenu = new DHTMLGoodies_contextMenu(); - this.contextMenu.setWidth(120); - referenceToDHTMLSuiteContextMenu = this.contextMenu; - }catch(e){ - - } - } - - - var nodeId = 0; - var dhtmlgoodies_tree = document.getElementById(this.idOfTree); - var menuItems = dhtmlgoodies_tree.getElementsByTagName('LI'); // Get an array of all menu items - for(var no=0;no li, -.flex-control-nav, -.flex-direction-nav { - margin: 0; - padding: 0; - list-style: none; -} -.flex-pauseplay span { - text-transform: capitalize; -} -/* ==================================================================================================================== - * BASE STYLES - * ====================================================================================================================*/ -.flexslider { - margin: 0; - padding: 0; -} -.flexslider .slides > li { - display: none; - -webkit-backface-visibility: hidden; -} -.flexslider .slides img { - width: 100%; - display: block; -} -.flexslider .slides:after { - content: "\0020"; - display: block; - clear: both; - visibility: hidden; - line-height: 0; - height: 0; -} -html[xmlns] .flexslider .slides { - display: block; -} -* html .flexslider .slides { - height: 1%; -} -.no-js .flexslider .slides > li:first-child { - display: block; -} -/* ==================================================================================================================== - * DEFAULT THEME - * ====================================================================================================================*/ -.flexslider { - margin: 0 0 60px; - background: #ffffff; - border: 4px solid #ffffff; - position: relative; - zoom: 1; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); - -moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); - -o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); - box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); -} -.flexslider .slides { - zoom: 1; -} -.flexslider .slides img { - height: auto; - -moz-user-select: none; -} -.flex-viewport { - max-height: 2000px; - -webkit-transition: all 1s ease; - -moz-transition: all 1s ease; - -ms-transition: all 1s ease; - -o-transition: all 1s ease; - transition: all 1s ease; -} -.loading .flex-viewport { - max-height: 300px; -} -.carousel li { - margin-right: 5px; -} -.flex-direction-nav { - *height: 0; -} -.flex-direction-nav a { - text-decoration: none; - display: block; - width: 40px; - height: 40px; - margin: -20px 0 0; - position: absolute; - top: 50%; - z-index: 10; - overflow: hidden; - opacity: 0; - cursor: pointer; - color: rgba(0, 0, 0, 0.8); - text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); - -webkit-transition: all 0.3s ease-in-out; - -moz-transition: all 0.3s ease-in-out; - -ms-transition: all 0.3s ease-in-out; - -o-transition: all 0.3s ease-in-out; - transition: all 0.3s ease-in-out; -} -.flex-direction-nav a:before { - font-family: "flexslider-icon"; - font-size: 40px; - display: inline-block; - content: '\f001'; - color: rgba(0, 0, 0, 0.8); - text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); -} -.flex-direction-nav a.flex-next:before { - content: '\f002'; -} -.flex-direction-nav .flex-prev { - left: -50px; -} -.flex-direction-nav .flex-next { - right: -50px; - text-align: right; -} -.flexslider:hover .flex-direction-nav .flex-prev { - opacity: 0.7; - left: 10px; -} -.flexslider:hover .flex-direction-nav .flex-prev:hover { - opacity: 1; -} -.flexslider:hover .flex-direction-nav .flex-next { - opacity: 0.7; - right: 10px; -} -.flexslider:hover .flex-direction-nav .flex-next:hover { - opacity: 1; -} -.flex-direction-nav .flex-disabled { - opacity: 0!important; - filter: alpha(opacity=0); - cursor: default; - z-index: -1; -} -.flex-pauseplay a { - display: block; - width: 20px; - height: 20px; - position: absolute; - bottom: 5px; - left: 10px; - opacity: 0.8; - z-index: 10; - overflow: hidden; - cursor: pointer; - color: #000; -} -.flex-pauseplay a:before { - font-family: "flexslider-icon"; - font-size: 20px; - display: inline-block; - content: '\f004'; -} -.flex-pauseplay a:hover { - opacity: 1; -} -.flex-pauseplay a.flex-play:before { - content: '\f003'; -} -.flex-control-nav { - width: 100%; - position: absolute; - bottom: -40px; - text-align: center; -} -.flex-control-nav li { - margin: 0 6px; - display: inline-block; - zoom: 1; - *display: inline; -} -.flex-control-paging li a { - width: 11px; - height: 11px; - display: block; - background: #666; - background: rgba(0, 0, 0, 0.5); - cursor: pointer; - text-indent: -9999px; - -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); - -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); - -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); - box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); - -webkit-border-radius: 20px; - -moz-border-radius: 20px; - border-radius: 20px; -} -.flex-control-paging li a:hover { - background: #333; - background: rgba(0, 0, 0, 0.7); -} -.flex-control-paging li a.flex-active { - background: #000; - background: rgba(0, 0, 0, 0.9); - cursor: default; -} -.flex-control-thumbs { - margin: 5px 0 0; - position: static; - overflow: hidden; -} -.flex-control-thumbs li { - width: 25%; - float: left; - margin: 0; -} -.flex-control-thumbs img { - width: 100%; - height: auto; - display: block; - opacity: .7; - cursor: pointer; - -moz-user-select: none; - -webkit-transition: all 1s ease; - -moz-transition: all 1s ease; - -ms-transition: all 1s ease; - -o-transition: all 1s ease; - transition: all 1s ease; -} -.flex-control-thumbs img:hover { - opacity: 1; -} -.flex-control-thumbs .flex-active { - opacity: 1; - cursor: default; -} -/* ==================================================================================================================== - * RESPONSIVE - * ====================================================================================================================*/ -@media screen and (max-width: 860px) { - .flex-direction-nav .flex-prev { - opacity: 1; - left: 10px; - } - .flex-direction-nav .flex-next { - opacity: 1; - right: 10px; - } -} diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.eot b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.eot deleted file mode 100644 index 97c4196f..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.eot and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.svg b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.svg deleted file mode 100644 index 89fd1ab8..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - -This is a custom SVG font generated by IcoMoon. - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.ttf b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.ttf deleted file mode 100644 index 05432986..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.ttf and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.woff b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.woff deleted file mode 100644 index 10c4eeb8..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/css/fonts/flexslider-icon.woff and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/Calendar-16x16.png b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/Calendar-16x16.png deleted file mode 100644 index ac970bda..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/Calendar-16x16.png and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-next.png b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-next.png deleted file mode 100644 index 1a4f72c6..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-next.png and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-prev.png b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-prev.png deleted file mode 100644 index 8211eba1..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/arrow-prev.png and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/copyicon.png b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/copyicon.png deleted file mode 100644 index 6c1c3c15..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/copyicon.png and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/deleteicon.gif b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/deleteicon.gif deleted file mode 100644 index 4b07af82..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/deleteicon.gif and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/example-frame.png b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/example-frame.png deleted file mode 100644 index 31f2fe1c..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/example-frame.png and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/loading.gif b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/loading.gif deleted file mode 100644 index cccb0fc9..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/images/loading.gif and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/eye.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/eye.js deleted file mode 100644 index 8a281dc3..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/eye.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * - * Zoomimage - * Author: Stefan Petre www.eyecon.ro - * - */ -(function($){ - var EYE = window.EYE = function() { - var _registered = { - init: [] - }; - return { - init: function() { - $.each(_registered.init, function(nr, fn){ - fn.call(); - }); - }, - extend: function(prop) { - for (var i in prop) { - if (prop[i] != undefined) { - this[i] = prop[i]; - } - } - }, - register: function(fn, type) { - if (!_registered[type]) { - _registered[type] = []; - } - _registered[type].push(fn); - } - }; - }(); - $(EYE.init); -})(jQuery); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/jquery.flexslider-min.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/jquery.flexslider-min.js deleted file mode 100644 index 5ad6c377..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/jquery.flexslider-min.js +++ /dev/null @@ -1,5 +0,0 @@ -/* - * jQuery FlexSlider v2.6.0 - * Copyright 2012 WooThemes - * Contributing Author: Tyler Smith - */!function($){var e=!0;$.flexslider=function(t,a){var n=$(t);n.vars=$.extend({},$.flexslider.defaults,a);var i=n.vars.namespace,s=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,r=("ontouchstart"in window||s||window.DocumentTouch&&document instanceof DocumentTouch)&&n.vars.touch,o="click touchend MSPointerUp keyup",l="",c,d="vertical"===n.vars.direction,u=n.vars.reverse,v=n.vars.itemWidth>0,p="fade"===n.vars.animation,m=""!==n.vars.asNavFor,f={};$.data(t,"flexslider",n),f={init:function(){n.animating=!1,n.currentSlide=parseInt(n.vars.startAt?n.vars.startAt:0,10),isNaN(n.currentSlide)&&(n.currentSlide=0),n.animatingTo=n.currentSlide,n.atEnd=0===n.currentSlide||n.currentSlide===n.last,n.containerSelector=n.vars.selector.substr(0,n.vars.selector.search(" ")),n.slides=$(n.vars.selector,n),n.container=$(n.containerSelector,n),n.count=n.slides.length,n.syncExists=$(n.vars.sync).length>0,"slide"===n.vars.animation&&(n.vars.animation="swing"),n.prop=d?"top":"marginLeft",n.args={},n.manualPause=!1,n.stopped=!1,n.started=!1,n.startTimeout=null,n.transitions=!n.vars.video&&!p&&n.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return n.pfx=t[a].replace("Perspective","").toLowerCase(),n.prop="-"+n.pfx+"-transform",!0;return!1}(),n.ensureAnimationEnd="",""!==n.vars.controlsContainer&&(n.controlsContainer=$(n.vars.controlsContainer).length>0&&$(n.vars.controlsContainer)),""!==n.vars.manualControls&&(n.manualControls=$(n.vars.manualControls).length>0&&$(n.vars.manualControls)),""!==n.vars.customDirectionNav&&(n.customDirectionNav=2===$(n.vars.customDirectionNav).length&&$(n.vars.customDirectionNav)),n.vars.randomize&&(n.slides.sort(function(){return Math.round(Math.random())-.5}),n.container.empty().append(n.slides)),n.doMath(),n.setup("init"),n.vars.controlNav&&f.controlNav.setup(),n.vars.directionNav&&f.directionNav.setup(),n.vars.keyboard&&(1===$(n.containerSelector).length||n.vars.multipleKeyboard)&&$(document).bind("keyup",function(e){var t=e.keyCode;if(!n.animating&&(39===t||37===t)){var a=39===t?n.getTarget("next"):37===t?n.getTarget("prev"):!1;n.flexAnimate(a,n.vars.pauseOnAction)}}),n.vars.mousewheel&&n.bind("mousewheel",function(e,t,a,i){e.preventDefault();var s=0>t?n.getTarget("next"):n.getTarget("prev");n.flexAnimate(s,n.vars.pauseOnAction)}),n.vars.pausePlay&&f.pausePlay.setup(),n.vars.slideshow&&n.vars.pauseInvisible&&f.pauseInvisible.init(),n.vars.slideshow&&(n.vars.pauseOnHover&&n.hover(function(){n.manualPlay||n.manualPause||n.pause()},function(){n.manualPause||n.manualPlay||n.stopped||n.play()}),n.vars.pauseInvisible&&f.pauseInvisible.isHidden()||(n.vars.initDelay>0?n.startTimeout=setTimeout(n.play,n.vars.initDelay):n.play())),m&&f.asNav.setup(),r&&n.vars.touch&&f.touch(),(!p||p&&n.vars.smoothHeight)&&$(window).bind("resize orientationchange focus",f.resize),n.find("img").attr("draggable","false"),setTimeout(function(){n.vars.start(n)},200)},asNav:{setup:function(){n.asNav=!0,n.animatingTo=Math.floor(n.currentSlide/n.move),n.currentItem=n.currentSlide,n.slides.removeClass(i+"active-slide").eq(n.currentItem).addClass(i+"active-slide"),s?(t._slider=n,n.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var t=$(this),a=t.index();$(n.vars.asNavFor).data("flexslider").animating||t.hasClass("active")||(n.direction=n.currentItem=s&&t.hasClass(i+"active-slide")?n.flexAnimate(n.getTarget("prev"),!0):$(n.vars.asNavFor).data("flexslider").animating||t.hasClass(i+"active-slide")||(n.direction=n.currentItem'),n.pagingCount>1)for(var r=0;r":''+t+"","thumbnails"===n.vars.controlNav&&!0===n.vars.thumbCaptions){var c=s.attr("data-thumbcaption");""!==c&&void 0!==c&&(a+=''+c+"")}n.controlNavScaffold.append("
      • "+a+"
      • "),t++}n.controlsContainer?$(n.controlsContainer).append(n.controlNavScaffold):n.append(n.controlNavScaffold),f.controlNav.set(),f.controlNav.active(),n.controlNavScaffold.delegate("a, img",o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(n.direction=a>n.currentSlide?"next":"prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},setupManual:function(){n.controlNav=n.manualControls,f.controlNav.active(),n.controlNav.bind(o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(a>n.currentSlide?n.direction="next":n.direction="prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===n.vars.controlNav?"img":"a";n.controlNav=$("."+i+"control-nav li "+e,n.controlsContainer?n.controlsContainer:n)},active:function(){n.controlNav.removeClass(i+"active").eq(n.animatingTo).addClass(i+"active")},update:function(e,t){n.pagingCount>1&&"add"===e?n.controlNavScaffold.append($('
      • '+n.count+"
      • ")):1===n.pagingCount?n.controlNavScaffold.find("li").remove():n.controlNav.eq(t).closest("li").remove(),f.controlNav.set(),n.pagingCount>1&&n.pagingCount!==n.controlNav.length?n.update(t,e):f.controlNav.active()}},directionNav:{setup:function(){var e=$('");n.customDirectionNav?n.directionNav=n.customDirectionNav:n.controlsContainer?($(n.controlsContainer).append(e),n.directionNav=$("."+i+"direction-nav li a",n.controlsContainer)):(n.append(e),n.directionNav=$("."+i+"direction-nav li a",n)),f.directionNav.update(),n.directionNav.bind(o,function(e){e.preventDefault();var t;(""===l||l===e.type)&&(t=$(this).hasClass(i+"next")?n.getTarget("next"):n.getTarget("prev"),n.flexAnimate(t,n.vars.pauseOnAction)),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(){var e=i+"disabled";1===n.pagingCount?n.directionNav.addClass(e).attr("tabindex","-1"):n.vars.animationLoop?n.directionNav.removeClass(e).removeAttr("tabindex"):0===n.animatingTo?n.directionNav.removeClass(e).filter("."+i+"prev").addClass(e).attr("tabindex","-1"):n.animatingTo===n.last?n.directionNav.removeClass(e).filter("."+i+"next").addClass(e).attr("tabindex","-1"):n.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=$('
        ');n.controlsContainer?(n.controlsContainer.append(e),n.pausePlay=$("."+i+"pauseplay a",n.controlsContainer)):(n.append(e),n.pausePlay=$("."+i+"pauseplay a",n)),f.pausePlay.update(n.vars.slideshow?i+"pause":i+"play"),n.pausePlay.bind(o,function(e){e.preventDefault(),(""===l||l===e.type)&&($(this).hasClass(i+"pause")?(n.manualPause=!0,n.manualPlay=!1,n.pause()):(n.manualPause=!1,n.manualPlay=!0,n.play())),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(e){"play"===e?n.pausePlay.removeClass(i+"pause").addClass(i+"play").html(n.vars.playText):n.pausePlay.removeClass(i+"play").addClass(i+"pause").html(n.vars.pauseText)}},touch:function(){function e(e){e.stopPropagation(),n.animating?e.preventDefault():(n.pause(),t._gesture.addPointer(e.pointerId),T=0,c=d?n.h:n.w,f=Number(new Date),l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c)}function a(e){e.stopPropagation();var a=e.target._slider;if(a){var n=-e.translationX,i=-e.translationY;return T+=d?i:n,m=T,x=d?Math.abs(T)500)&&(e.preventDefault(),!p&&a.transitions&&(a.vars.animationLoop||(m=T/(0===a.currentSlide&&0>T||a.currentSlide===a.last&&T>0?Math.abs(T)/c+2:1)),a.setProps(l+m,"setTouch"))))}}function i(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!x&&null!==m){var a=u?-m:m,n=a>0?t.getTarget("next"):t.getTarget("prev");t.canAdvance(n)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?t.flexAnimate(n,t.vars.pauseOnAction):p||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}r=null,o=null,m=null,l=null,T=0}}var r,o,l,c,m,f,g,h,S,x=!1,y=0,b=0,T=0;s?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",e,!1),t._slider=n,t.addEventListener("MSGestureChange",a,!1),t.addEventListener("MSGestureEnd",i,!1)):(g=function(e){n.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(n.pause(),c=d?n.h:n.w,f=Number(new Date),y=e.touches[0].pageX,b=e.touches[0].pageY,l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c,r=d?b:y,o=d?y:b,t.addEventListener("touchmove",h,!1),t.addEventListener("touchend",S,!1))},h=function(e){y=e.touches[0].pageX,b=e.touches[0].pageY,m=d?r-b:r-y,x=d?Math.abs(m)t)&&(e.preventDefault(),!p&&n.transitions&&(n.vars.animationLoop||(m/=0===n.currentSlide&&0>m||n.currentSlide===n.last&&m>0?Math.abs(m)/c+2:1),n.setProps(l+m,"setTouch")))},S=function(e){if(t.removeEventListener("touchmove",h,!1),n.animatingTo===n.currentSlide&&!x&&null!==m){var a=u?-m:m,i=a>0?n.getTarget("next"):n.getTarget("prev");n.canAdvance(i)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?n.flexAnimate(i,n.vars.pauseOnAction):p||n.flexAnimate(n.currentSlide,n.vars.pauseOnAction,!0)}t.removeEventListener("touchend",S,!1),r=null,o=null,m=null,l=null},t.addEventListener("touchstart",g,!1))},resize:function(){!n.animating&&n.is(":visible")&&(v||n.doMath(),p?f.smoothHeight():v?(n.slides.width(n.computedW),n.update(n.pagingCount),n.setProps()):d?(n.viewport.height(n.h),n.setProps(n.h,"setTotal")):(n.vars.smoothHeight&&f.smoothHeight(),n.newSlides.width(n.computedW),n.setProps(n.computedW,"setTotal")))},smoothHeight:function(e){if(!d||p){var t=p?n:n.viewport;e?t.animate({height:n.slides.eq(n.animatingTo).height()},e):t.height(n.slides.eq(n.animatingTo).height())}},sync:function(e){var t=$(n.vars.sync).data("flexslider"),a=n.animatingTo;switch(e){case"animate":t.flexAnimate(a,n.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=$(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=f.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){f.pauseInvisible.isHidden()?n.startTimeout?clearTimeout(n.startTimeout):n.pause():n.started?n.play():n.vars.initDelay>0?setTimeout(n.play,n.vars.initDelay):n.play()})}},isHidden:function(){var e=f.pauseInvisible.getHiddenProp();return e?document[e]:!1},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;tn.currentSlide?"next":"prev"),m&&1===n.pagingCount&&(n.direction=n.currentItemn.limit&&1!==n.visible?n.limit:S):h=0===n.currentSlide&&e===n.count-1&&n.vars.animationLoop&&"next"!==n.direction?u?(n.count+n.cloneOffset)*c:0:n.currentSlide===n.last&&0===e&&n.vars.animationLoop&&"prev"!==n.direction?u?0:(n.count+1)*c:u?(n.count-1-e+n.cloneOffset)*c:(e+n.cloneOffset)*c,n.setProps(h,"",n.vars.animationSpeed),n.transitions?(n.vars.animationLoop&&n.atEnd||(n.animating=!1,n.currentSlide=n.animatingTo),n.container.unbind("webkitTransitionEnd transitionend"),n.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(n.ensureAnimationEnd),n.wrapup(c)}),clearTimeout(n.ensureAnimationEnd),n.ensureAnimationEnd=setTimeout(function(){n.wrapup(c)},n.vars.animationSpeed+100)):n.container.animate(n.args,n.vars.animationSpeed,n.vars.easing,function(){n.wrapup(c)})}n.vars.smoothHeight&&f.smoothHeight(n.vars.animationSpeed)}},n.wrapup=function(e){p||v||(0===n.currentSlide&&n.animatingTo===n.last&&n.vars.animationLoop?n.setProps(e,"jumpEnd"):n.currentSlide===n.last&&0===n.animatingTo&&n.vars.animationLoop&&n.setProps(e,"jumpStart")),n.animating=!1,n.currentSlide=n.animatingTo,n.vars.after(n)},n.animateSlides=function(){!n.animating&&e&&n.flexAnimate(n.getTarget("next"))},n.pause=function(){clearInterval(n.animatedSlides),n.animatedSlides=null,n.playing=!1,n.vars.pausePlay&&f.pausePlay.update("play"),n.syncExists&&f.sync("pause")},n.play=function(){n.playing&&clearInterval(n.animatedSlides),n.animatedSlides=n.animatedSlides||setInterval(n.animateSlides,n.vars.slideshowSpeed),n.started=n.playing=!0,n.vars.pausePlay&&f.pausePlay.update("pause"),n.syncExists&&f.sync("play")},n.stop=function(){n.pause(),n.stopped=!0},n.canAdvance=function(e,t){var a=m?n.pagingCount-1:n.last;return t?!0:m&&n.currentItem===n.count-1&&0===e&&"prev"===n.direction?!0:m&&0===n.currentItem&&e===n.pagingCount-1&&"next"!==n.direction?!1:e!==n.currentSlide||m?n.vars.animationLoop?!0:n.atEnd&&0===n.currentSlide&&e===a&&"next"!==n.direction?!1:n.atEnd&&n.currentSlide===a&&0===e&&"next"===n.direction?!1:!0:!1},n.getTarget=function(e){return n.direction=e,"next"===e?n.currentSlide===n.last?0:n.currentSlide+1:0===n.currentSlide?n.last:n.currentSlide-1},n.setProps=function(e,t,a){var i=function(){var a=e?e:(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo,i=function(){if(v)return"setTouch"===t?e:u&&n.animatingTo===n.last?0:u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:n.animatingTo===n.last?n.limit:a;switch(t){case"setTotal":return u?(n.count-1-n.currentSlide+n.cloneOffset)*e:(n.currentSlide+n.cloneOffset)*e;case"setTouch":return u?e:e;case"jumpEnd":return u?e:n.count*e;case"jumpStart":return u?n.count*e:e;default:return e}}();return-1*i+"px"}();n.transitions&&(i=d?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)",a=void 0!==a?a/1e3+"s":"0s",n.container.css("-"+n.pfx+"-transition-duration",a),n.container.css("transition-duration",a)),n.args[n.prop]=i,(n.transitions||void 0===a)&&n.container.css(n.args),n.container.css("transform",i)},n.setup=function(e){if(p)n.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&(r?n.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+n.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(n.currentSlide).css({opacity:1,zIndex:2}):0==n.vars.fadeFirstSlide?n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).css({opacity:1}):n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).animate({opacity:1},n.vars.animationSpeed,n.vars.easing)),n.vars.smoothHeight&&f.smoothHeight();else{var t,a;"init"===e&&(n.viewport=$('
        ').css({overflow:"hidden",position:"relative"}).appendTo(n).append(n.container),n.cloneCount=0,n.cloneOffset=0,u&&(a=$.makeArray(n.slides).reverse(),n.slides=$(a),n.container.empty().append(n.slides))),n.vars.animationLoop&&!v&&(n.cloneCount=2,n.cloneOffset=1,"init"!==e&&n.container.find(".clone").remove(),n.container.append(f.uniqueID(n.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(f.uniqueID(n.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),n.newSlides=$(n.vars.selector,n),t=u?n.count-1-n.currentSlide+n.cloneOffset:n.currentSlide+n.cloneOffset,d&&!v?(n.container.height(200*(n.count+n.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){n.newSlides.css({display:"block"}),n.doMath(),n.viewport.height(n.h),n.setProps(t*n.h,"init")},"init"===e?100:0)):(n.container.width(200*(n.count+n.cloneCount)+"%"),n.setProps(t*n.computedW,"init"),setTimeout(function(){n.doMath(),n.newSlides.css({width:n.computedW,marginRight:n.computedM,"float":"left",display:"block"}),n.vars.smoothHeight&&f.smoothHeight()},"init"===e?100:0))}v||n.slides.removeClass(i+"active-slide").eq(n.currentSlide).addClass(i+"active-slide"),n.vars.init(n)},n.doMath=function(){var e=n.slides.first(),t=n.vars.itemMargin,a=n.vars.minItems,i=n.vars.maxItems;n.w=void 0===n.viewport?n.width():n.viewport.width(),n.h=e.height(),n.boxPadding=e.outerWidth()-e.width(),v?(n.itemT=n.vars.itemWidth+t,n.itemM=t,n.minW=a?a*n.itemT:n.w,n.maxW=i?i*n.itemT-t:n.w,n.itemW=n.minW>n.w?(n.w-t*(a-1))/a:n.maxWn.w?n.w:n.vars.itemWidth,n.visible=Math.floor(n.w/n.itemW),n.move=n.vars.move>0&&n.vars.moven.w?n.itemW*(n.count-1)+t*(n.count-1):(n.itemW+t)*n.count-n.w-t):(n.itemW=n.w,n.itemM=t,n.pagingCount=n.count,n.last=n.count-1),n.computedW=n.itemW-n.boxPadding,n.computedM=n.itemM},n.update=function(e,t){n.doMath(),v||(en.controlNav.length?f.controlNav.update("add"):("remove"===t&&!v||n.pagingCountn.last&&(n.currentSlide-=1,n.animatingTo-=1),f.controlNav.update("remove",n.last))),n.vars.directionNav&&f.directionNav.update()},n.addSlide=function(e,t){var a=$(e);n.count+=1,n.last=n.count-1,d&&u?void 0!==t?n.slides.eq(n.count-t).after(a):n.container.prepend(a):void 0!==t?n.slides.eq(t).before(a):n.container.append(a),n.update(t,"add"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.added(n)},n.removeSlide=function(e){var t=isNaN(e)?n.slides.index($(e)):e;n.count-=1,n.last=n.count-1,isNaN(e)?$(e,n.slides).remove():d&&u?n.slides.eq(n.last).remove():n.slides.eq(e).remove(),n.doMath(),n.update(t,"remove"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.removed(n)},f.init()},$(window).blur(function(t){e=!1}).focus(function(t){e=!0}),$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},$.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var t=$(this),a=e.selector?e.selector:".slides > li",n=t.find(a);1===n.length&&e.allowOneSlide===!0||0===n.length?(n.fadeIn(400),e.start&&e.start(t)):void 0===t.data("flexslider")&&new $.flexslider(this,e)});var t=$(this).data("flexslider");switch(e){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof e&&t.flexAnimate(e,!0)}}}(jQuery); \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/slides.min.jquery.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/slides.min.jquery.js deleted file mode 100644 index 1a1fcdd8..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/slides.min.jquery.js +++ /dev/null @@ -1,20 +0,0 @@ -/* -* Slides, A Slideshow Plugin for jQuery -* Intructions: http://slidesjs.com -* By: Nathan Searles, http://nathansearles.com -* Version: 1.1.9 -* Updated: September 5th, 2011 -* -* 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. -*/ -(function(a){a.fn.slides=function(b){return b=a.extend({},a.fn.slides.option,b),this.each(function(){function w(g,h,i){if(!p&&o){p=!0,b.animationStart(n+1);switch(g){case"next":l=n,k=n+1,k=e===k?0:k,r=f*2,g=-f*2,n=k;break;case"prev":l=n,k=n-1,k=k===-1?e-1:k,r=0,g=0,n=k;break;case"pagination":k=parseInt(i,10),l=a("."+b.paginationClass+" li."+b.currentClass+" a",c).attr("href").match("[^#/]+$"),k>l?(r=f*2,g=-f*2):(r=0,g=0),n=k}h==="fade"?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){a.browser.msie&&a(this).get(0).style.removeAttribute("filter")}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('
        ');var c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=b.effect.indexOf(",")<0?b.effect:b.effect.replace(" ","").split(",")[0],j=b.effect.indexOf(",")<0?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0,o,p,q,r,s,t,u,v;if(e<2)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(e<2)return;h<0&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:f*3,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed));if(b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();a("img",c).parent().attr("class")!="slides_control"?t=d.children(":eq(0)")[0].tagName.toLowerCase():t=d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().click(function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).click(function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).click(function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend("
          "):c.append("
            "),d.children().each(function(){a("."+b.paginationClass,c).append('
          • '+(m+1)+"
          • "),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).click(function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).click(function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;i') - .appendTo(this) - .addClass(opt.loadingClass) - .bind('click', EYE.spacegallery.next); - el.spacegalleryCfg = opt; - el.spacegalleryCfg.images = el.getElementsByTagName('img').length; - el.spacegalleryCfg.loaded = 0; - el.spacegalleryCfg.asin = Math.asin(1); - el.spacegalleryCfg.asins = {}; - el.spacegalleryCfg.tops = {}; - el.spacegalleryCfg.increment = parseInt(el.spacegalleryCfg.perspective/el.spacegalleryCfg.images, 10); - var top = 0; - $('img', el) - .each(function(nr){ - var imgEl = new Image(); - var elImg = this; - el.spacegalleryCfg.asins[nr] = 1 - Math.asin((nr+1)/el.spacegalleryCfg.images)/el.spacegalleryCfg.asin; - top += el.spacegalleryCfg.increment - el.spacegalleryCfg.increment * el.spacegalleryCfg.asins[nr]; - el.spacegalleryCfg.tops[nr] = top; - elImg.spacegallery = {}; - imgEl.src = this.src; - if (imgEl.complete) { - el.spacegalleryCfg.loaded ++; - elImg.spacegallery.origWidth = imgEl.width; - elImg.spacegallery.origHeight = imgEl.height - } else { - imgEl.onload = function() { - el.spacegalleryCfg.loaded ++; - elImg.spacegallery.origWidth = imgEl.width; - elImg.spacegallery.origHeight = imgEl.height - if (el.spacegalleryCfg.loaded == el.spacegalleryCfg.images) { - - EYE.spacegallery.positionImages(el); - } - }; - } - }); - el.spacegalleryCfg.asins[el.spacegalleryCfg.images] = el.spacegalleryCfg.asins[el.spacegalleryCfg.images - 1] * 1.3; - el.spacegalleryCfg.tops[el.spacegalleryCfg.images] = el.spacegalleryCfg.tops[el.spacegalleryCfg.images - 1] * 1.3; - if (el.spacegalleryCfg.loaded == el.spacegalleryCfg.images) { - EYE.spacegallery.positionImages(el); - setInterval(function() { EYE.spacegallery.autoNext(el); }, 4000); - } - } - }); - } - } - }); - - $.fn.extend({ - - /** - * Create a space gallery - * @name spacegallery - * @description create a space gallery - * @option int border Images' border. Default: 6 - * @option int perspective Perpective height. Default: 140 - * @option float minScale Minimum scale for the image in the back. Default: 0.2 - * @option int duration Animation duration. Default: 800 - * @option string loadingClass CSS class applied to the element while looading images. Default: null - * @option function before Callback function triggered before going to the next image - * @option function after Callback function triggered after going to the next image - */ - spacegallery: EYE.spacegallery.init - }); - $.extend($.easing,{ - easeOut:function (x, t, b, c, d) { - return -c *(t/=d)*(t-2) + b; - } - }); -})(jQuery); \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/utils.js b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/utils.js deleted file mode 100644 index d9be8532..00000000 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/js/utils.js +++ /dev/null @@ -1,252 +0,0 @@ -/** - * - * Utilities - * Author: Stefan Petre www.eyecon.ro - * - */ -(function($) { -EYE.extend({ - getPosition : function(e, forceIt) - { - var x = 0; - var y = 0; - var es = e.style; - var restoreStyles = false; - if (forceIt && jQuery.curCSS(e,'display') == 'none') { - var oldVisibility = es.visibility; - var oldPosition = es.position; - restoreStyles = true; - es.visibility = 'hidden'; - es.display = 'block'; - es.position = 'absolute'; - } - var el = e; - if (el.getBoundingClientRect) { // IE - var box = el.getBoundingClientRect(); - x = box.left + Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) - 2; - y = box.top + Math.max(document.documentElement.scrollTop, document.body.scrollTop) - 2; - } else { - x = el.offsetLeft; - y = el.offsetTop; - el = el.offsetParent; - if (e != el) { - while (el) { - x += el.offsetLeft; - y += el.offsetTop; - el = el.offsetParent; - } - } - if (jQuery.browser.safari && jQuery.curCSS(e, 'position') == 'absolute' ) { - x -= document.body.offsetLeft; - y -= document.body.offsetTop; - } - el = e.parentNode; - while (el && el.tagName.toUpperCase() != 'BODY' && el.tagName.toUpperCase() != 'HTML') - { - if (jQuery.curCSS(el, 'display') != 'inline') { - x -= el.scrollLeft; - y -= el.scrollTop; - } - el = el.parentNode; - } - } - if (restoreStyles == true) { - es.display = 'none'; - es.position = oldPosition; - es.visibility = oldVisibility; - } - return {x:x, y:y}; - }, - getSize : function(e) - { - var w = parseInt(jQuery.curCSS(e,'width'), 10); - var h = parseInt(jQuery.curCSS(e,'height'), 10); - var wb = 0; - var hb = 0; - if (jQuery.curCSS(e, 'display') != 'none') { - wb = e.offsetWidth; - hb = e.offsetHeight; - } else { - var es = e.style; - var oldVisibility = es.visibility; - var oldPosition = es.position; - es.visibility = 'hidden'; - es.display = 'block'; - es.position = 'absolute'; - wb = e.offsetWidth; - hb = e.offsetHeight; - es.display = 'none'; - es.position = oldPosition; - es.visibility = oldVisibility; - } - return {w:w, h:h, wb:wb, hb:hb}; - }, - getClient : function(e) - { - var h, w; - if (e) { - w = e.clientWidth; - h = e.clientHeight; - } else { - var de = document.documentElement; - w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; - h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; - } - return {w:w,h:h}; - }, - getScroll : function (e) - { - var t=0, l=0, w=0, h=0, iw=0, ih=0; - if (e && e.nodeName.toLowerCase() != 'body') { - t = e.scrollTop; - l = e.scrollLeft; - w = e.scrollWidth; - h = e.scrollHeight; - } else { - if (document.documentElement) { - t = document.documentElement.scrollTop; - l = document.documentElement.scrollLeft; - w = document.documentElement.scrollWidth; - h = document.documentElement.scrollHeight; - } else if (document.body) { - t = document.body.scrollTop; - l = document.body.scrollLeft; - w = document.body.scrollWidth; - h = document.body.scrollHeight; - } - if (typeof pageYOffset != 'undefined') { - t = pageYOffset; - l = pageXOffset; - } - iw = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0; - ih = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0; - } - return { t: t, l: l, w: w, h: h, iw: iw, ih: ih }; - }, - getMargins : function(e, toInteger) - { - var t = jQuery.curCSS(e,'marginTop') || ''; - var r = jQuery.curCSS(e,'marginRight') || ''; - var b = jQuery.curCSS(e,'marginBottom') || ''; - var l = jQuery.curCSS(e,'marginLeft') || ''; - if (toInteger) - return { - t: parseInt(t, 10)||0, - r: parseInt(r, 10)||0, - b: parseInt(b, 10)||0, - l: parseInt(l, 10) - }; - else - return {t: t, r: r, b: b, l: l}; - }, - getPadding : function(e, toInteger) - { - var t = jQuery.curCSS(e,'paddingTop') || ''; - var r = jQuery.curCSS(e,'paddingRight') || ''; - var b = jQuery.curCSS(e,'paddingBottom') || ''; - var l = jQuery.curCSS(e,'paddingLeft') || ''; - if (toInteger) - return { - t: parseInt(t, 10)||0, - r: parseInt(r, 10)||0, - b: parseInt(b, 10)||0, - l: parseInt(l, 10) - }; - else - return {t: t, r: r, b: b, l: l}; - }, - getBorder : function(e, toInteger) - { - var t = jQuery.curCSS(e,'borderTopWidth') || ''; - var r = jQuery.curCSS(e,'borderRightWidth') || ''; - var b = jQuery.curCSS(e,'borderBottomWidth') || ''; - var l = jQuery.curCSS(e,'borderLeftWidth') || ''; - if (toInteger) - return { - t: parseInt(t, 10)||0, - r: parseInt(r, 10)||0, - b: parseInt(b, 10)||0, - l: parseInt(l, 10)||0 - }; - else - return {t: t, r: r, b: b, l: l}; - }, - traverseDOM : function(nodeEl, func) - { - func(nodeEl); - nodeEl = nodeEl.firstChild; - while(nodeEl){ - EYE.traverseDOM(nodeEl, func); - nodeEl = nodeEl.nextSibling; - } - }, - getInnerWidth : function(el, scroll) { - var offsetW = el.offsetWidth; - return scroll ? Math.max(el.scrollWidth,offsetW) - offsetW + el.clientWidth:el.clientWidth; - }, - getInnerHeight : function(el, scroll) { - var offsetH = el.offsetHeight; - return scroll ? Math.max(el.scrollHeight,offsetH) - offsetH + el.clientHeight:el.clientHeight; - }, - getExtraWidth : function(el) { - if($.boxModel) - return (parseInt($.curCSS(el, 'paddingLeft'))||0) - + (parseInt($.curCSS(el, 'paddingRight'))||0) - + (parseInt($.curCSS(el, 'borderLeftWidth'))||0) - + (parseInt($.curCSS(el, 'borderRightWidth'))||0); - return 0; - }, - getExtraHeight : function(el) { - if($.boxModel) - return (parseInt($.curCSS(el, 'paddingTop'))||0) - + (parseInt($.curCSS(el, 'paddingBottom'))||0) - + (parseInt($.curCSS(el, 'borderTopWidth'))||0) - + (parseInt($.curCSS(el, 'borderBottomWidth'))||0); - return 0; - }, - isChildOf: function(parentEl, el, container) { - if (parentEl == el) { - return true; - } - if (!el || !el.nodeType || el.nodeType != 1) { - return false; - } - if (parentEl.contains && !$.browser.safari) { - return parentEl.contains(el); - } - if ( parentEl.compareDocumentPosition ) { - return !!(parentEl.compareDocumentPosition(el) & 16); - } - var prEl = el.parentNode; - while(prEl && prEl != container) { - if (prEl == parentEl) - return true; - prEl = prEl.parentNode; - } - return false; - }, - centerEl : function(el, axis) - { - var clientScroll = EYE.getScroll(); - var size = EYE.getSize(el); - if (!axis || axis == 'vertically') - $(el).css( - { - top: clientScroll.t + ((Math.min(clientScroll.h,clientScroll.ih) - size.hb)/2) + 'px' - } - ); - if (!axis || axis == 'horizontally') - $(el).css( - { - left: clientScroll.l + ((Math.min(clientScroll.w,clientScroll.iw) - size.wb)/2) + 'px' - } - ); - } -}); -if (!$.easing.easeout) { - $.easing.easeout = function(p, n, firstNum, delta, duration) { - return -delta * ((n=n/duration-1)*n*n*n - 1) + firstNum; - }; -} - -})(jQuery); \ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/bkgd.png b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/bkgd.png deleted file mode 100644 index 3bbaf5ee..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/bkgd.png and /dev/null differ diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/raspberry.jpg b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/raspberry.jpg deleted file mode 100644 index e79a0515..00000000 Binary files a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/static/fusion/sample/org_chart/images/raspberry.jpg and /dev/null differ -- cgit 1.2.3-korg