getAppRolesForUser() method up in UserRolesController
[portal.git] / portal-BE / src / main / resources / data.sql
1 --
2 -- ============LICENSE_START==========================================
3 -- ONAP Portal
4 -- ===================================================================
5 -- Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 -- ===================================================================
7 -- Modifications Copyright (c) 2019 Samsung
8 -- ===================================================================
9 --
10 -- Unless otherwise specified, all software contained herein is licensed
11 -- under the Apache License, Version 2.0 (the "License");
12 -- you may not use this software except in compliance with the License.
13 -- You may obtain a copy of the License at
14 --
15 --             http://www.apache.org/licenses/LICENSE-2.0
16 --
17 -- Unless required by applicable law or agreed to in writing, software
18 -- distributed under the License is distributed on an "AS IS" BASIS,
19 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 -- See the License for the specific language governing permissions and
21 -- limitations under the License.
22 --
23 -- Unless otherwise specified, all documentation contained herein is licensed
24 -- under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25 -- you may not use this documentation except in compliance with the License.
26 -- You may obtain a copy of the License at
27 --
28 --             https://creativecommons.org/licenses/by/4.0/
29 --
30 -- Unless required by applicable law or agreed to in writing, documentation
31 -- distributed under the License is distributed on an "AS IS" BASIS,
32 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 -- See the License for the specific language governing permissions and
34 -- limitations under the License.
35 --
36 -- ============LICENSE_END============================================
37 --
38 --
39
40
41 -- MySQL dump 10.17  Distrib 10.3.14-MariaDB, for debian-linux-gnu (x86_64)
42 --
43 -- Host: localhost    Database: portal
44 -- ------------------------------------------------------
45 -- Server version       10.3.14-MariaDB-1:10.3.14+maria~bionic
46
47 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
48 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
49 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
50 /*!40101 SET NAMES utf8mb4 */;
51 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
52 /*!40103 SET TIME_ZONE='+00:00' */;
53 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
54 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
55 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
56
57 INSERT INTO `cr_report` (`rep_id`, `title`, `descr`, `public_yn`, `report_xml`, `create_id`, `create_date`, `maint_id`, `maint_date`, `menu_id`, `menu_approved_yn`, `owner_id`, `folder_id`, `dashboard_type_yn`, `dashboard_yn`) VALUES (15,'Application Usage Report Wid','',1,'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<customReport pageSize=\"200\" reportType=\"Linear\">\n    <reportName>Application Usage Report Wid</reportName>\n    <reportDescr></reportDescr>\n    <dbInfo>local</dbInfo>\n    <dbType>mysql</dbType>\n    <chartType>BarChart3D</chartType>\n    <chartWidth>700</chartWidth>\n    <chartHeight>500</chartHeight>\n    <showChartTitle>false</showChartTitle>\n    <public>false</public>\n    <hideFormFieldAfterRun>false</hideFormFieldAfterRun>\n    <createId>27</createId>\n    <createDate>2017-01-28-05:00</createDate>\n    <reportSQL>SELECT \n        l.date audit_date, \n   app_id app_id, \n       IF(CHAR_LENGTH(l.app_name) &gt;14, CONCAT(CONCAT(SUBSTR(l.app_name,1,7),\'...\'), SUBSTR(l.app_name, CHAR_LENGTH(l.app_name)-3,CHAR_LENGTH(l.app_name))) , l.app_name) app_name, \n     IFNULL(r.ct,0) ct \nfrom\n(\n   select a.Date, app_id, app_name\n       from (\n            select curdate() - INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as Date\n      from (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as a\n          cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as b\n            cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as c\n        ) a, \n (\n             SELECT  \n                      app_id, app_name\n              from\n          (\n                     select @rn := @rn+1 AS rowId, app_id, app_name from \n                          (\n                                     select app_id, app_name, ct from \n                                     (\n                                             select affected_record_id, count(*) ct\n                                                from fn_audit_log l\n                                           where audit_date &gt; date_add( curdate(), interval -6 day)\n                                           and affected_record_id not in ( 1, -1)\n                                                and activity_cd in (\'tab_access\', \'app_access\')\n                                           and user_id = [USER_ID]\n                                               group by affected_record_id\n                                   ) a, fn_app f\n                                 where a.affected_record_id = f.app_id\n                                 order by ct desc \n                             ) b,\n                          (SELECT @rn := 0) t2\n          ) mm where rowId &lt;= 4\n      )b\n    where a.Date between date_add( curdate(), interval -6 day) and  curdate()\n) l left outer join\n(\n     select app_name,  DATE(audit_date) audit_date_1 ,count(*) ct from fn_audit_log a, fn_app b\n    where user_id = [USER_ID]\n     and audit_date &gt; date_add( curdate(), interval -6 day)\n     and activity_cd in (\'tab_access\', \'app_access\')\n   and a.affected_record_id = b.app_id\n   and b.app_id &lt;&gt; 1\n       and b.app_id in \n      (\n             SELECT  \n                      app_id\n                from\n          (\n                     select @rn := @rn+1 AS rowId, app_id from \n                            (\n                                     select app_id, ct from \n                                       (\n                                             select affected_record_id app_id, count(*) ct\n                                         from fn_audit_log \n                                            where audit_date &gt; date_add( curdate(), interval -6 day)\n                                           and affected_record_id not in ( 1, -1)\n                                                and activity_cd in (\'tab_access\', \'app_access\')\n                                           and user_id = [USER_ID]\n                                               group by affected_record_id\n                                   ) a\n                                   order by ct desc \n                             ) b,\n                          (SELECT @rn := 0) t2\n          ) mm \n )\n     group by app_name,  DATE(audit_date)\n) r\non l.Date = r.audit_date_1\nand l.app_name = r.app_name</reportSQL>\n    <reportTitle></reportTitle>\n    <reportSubTitle></reportSubTitle>\n    <reportHeader></reportHeader>\n    <frozenColumns>0</frozenColumns>\n    <emptyMessage>Your Search didn\'t yield any results.</emptyMessage>\n    <dataGridAlign>left</dataGridAlign>\n    <reportFooter></reportFooter>\n    <numFormCols>1</numFormCols>\n    <displayOptions>NNNNNNN</displayOptions>\n    <dataContainerHeight>100</dataContainerHeight>\n    <dataContainerWidth>100</dataContainerWidth>\n    <allowSchedule>N</allowSchedule>\n    <multiGroupColumn>N</multiGroupColumn>\n    <topDown>N</topDown>\n    <sizedByContent>N</sizedByContent>\n    <comment>N|</comment>\n    <dataSourceList>\n        <dataSource tableId=\"du0\">\n            <tableName>DUAL</tableName>\n            <tablePK></tablePK>\n            <displayName>DUAL</displayName>\n            <dataColumnList>\n                <dataColumn colId=\"audit_date\">\n                    <tableId>du0</tableId>\n                    <dbColName>l.date</dbColName>\n                    <colName>l.date</colName>\n                    <displayName>audit_date_1</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>1</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <colOnChart>LEGEND</colOnChart>\n                    <chartSeq>1</chartSeq>\n                    <chartColor></chartColor>\n                    <chartLineType></chartLineType>\n                    <chartSeries>false</chartSeries>\n                    <dbColType>VARCHAR2</dbColType>\n                    <chartGroup></chartGroup>\n                    <yAxis></yAxis>\n                </dataColumn>\n                <dataColumn colId=\"app_id\">\n                    <tableId>du0</tableId>\n                    <dbColName>app_id</dbColName>\n                    <colName>app_id</colName>\n                    <displayName>app_id</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>2</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <dbColType>VARCHAR2</dbColType>\n                </dataColumn>\n                <dataColumn colId=\"app_name\">\n                    <tableId>du0</tableId>\n                    <dbColName>IF(CHAR_LENGTH(l.app_name) &gt;14, CONCAT(CONCAT(SUBSTR(l.app_name,1,7),\'...\'), SUBSTR(l.app_name, CHAR_LENGTH(l.app_name)-3,CHAR_LENGTH(l.app_name))) , l.app_name)</dbColName>\n                    <colName>IF(CHAR_LENGTH(l.app_name) &gt;14, CONCAT(CONCAT(SUBSTR(l.app_name,1,7),\'...\'), SUBSTR(l.app_name, CHAR_LENGTH(l.app_name)-3,CHAR_LENGTH(l.app_name))) , l.app_name)</colName>\n                    <displayName>app_name</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>3</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <chartSeq>2</chartSeq>\n                    <chartColor></chartColor>\n                    <chartLineType></chartLineType>\n                    <chartSeries>true</chartSeries>\n                    <dbColType>VARCHAR2</dbColType>\n                    <chartGroup></chartGroup>\n                    <yAxis></yAxis>\n                </dataColumn>\n                <dataColumn colId=\"ct\">\n                    <tableId>du0</tableId>\n                    <dbColName>IFNULL(r.ct,0)</dbColName>\n                    <colName>IFNULL(r.ct,0)</colName>\n                    <displayName>ct</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>4</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <colOnChart>0</colOnChart>\n                    <chartSeq>1</chartSeq>\n                    <chartColor></chartColor>\n                    <chartLineType></chartLineType>\n                    <chartSeries>false</chartSeries>\n                    <dbColType>VARCHAR2</dbColType>\n                    <chartGroup></chartGroup>\n                    <yAxis></yAxis>\n                </dataColumn>\n            </dataColumnList>\n        </dataSource>\n    </dataSourceList>\n    <reportInNewWindow>false</reportInNewWindow>\n    <displayFolderTree>false</displayFolderTree>\n    <maxRowsInExcelDownload>500</maxRowsInExcelDownload>\n    <chartAdditionalOptions>\n        <chartOrientation>vertical</chartOrientation>\n        <hidechartLegend>N</hidechartLegend>\n        <legendPosition>bottom</legendPosition>\n        <labelAngle>up90</labelAngle>\n        <rangeAxisUpperLimit></rangeAxisUpperLimit>\n        <rangeAxisLowerLimit></rangeAxisLowerLimit>\n        <animate>true</animate>\n        <animateAnimatedChart>true</animateAnimatedChart>\n        <stacked>true</stacked>\n        <barControls>false</barControls>\n        <xAxisDateType>false</xAxisDateType>\n        <lessXaxisTickers>false</lessXaxisTickers>\n        <timeAxis>true</timeAxis>\n        <logScale>false</logScale>\n        <topMargin>30</topMargin>\n        <bottomMargin>50</bottomMargin>\n        <rightMargin>60</rightMargin>\n        <leftMargin>100</leftMargin>\n    </chartAdditionalOptions>\n    <folderId>NULL</folderId>\n    <isOneTimeScheduleAllowed>N</isOneTimeScheduleAllowed>\n    <isHourlyScheduleAllowed>N</isHourlyScheduleAllowed>\n    <isDailyScheduleAllowed>N</isDailyScheduleAllowed>\n    <isDailyMFScheduleAllowed>N</isDailyMFScheduleAllowed>\n    <isWeeklyScheduleAllowed>N</isWeeklyScheduleAllowed>\n    <isMonthlyScheduleAllowed>N</isMonthlyScheduleAllowed>\n</customReport>\n',1,'2019-08-08 08:43:27',1,'2019-08-08 08:43:27','',0,1,NULL,0,0),(18,'Application Usage bar Wid','',1,'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<customReport pageSize=\"200\" reportType=\"Linear\">\n    <reportName>Application Usage Line Wid</reportName>\n    <reportDescr></reportDescr>\n    <dbInfo>local</dbInfo>\n    <dbType>mysql</dbType>\n    <chartType>TimeSeriesChart</chartType>\n    <chartMultiSeries>N</chartMultiSeries>\n    <chartWidth>700</chartWidth>\n    <chartHeight>300</chartHeight>\n    <showChartTitle>false</showChartTitle>\n    <public>false</public>\n    <hideFormFieldAfterRun>false</hideFormFieldAfterRun>\n    <createId>27</createId>\n    <createDate>2017-01-28-05:00</createDate>\n    <reportSQL>SELECT \n      l.date audit_date, \n   IF(CHAR_LENGTH(l.app_name) &gt;14, CONCAT(CONCAT(SUBSTR(l.app_name,1,7),\'...\'), SUBSTR(l.app_name, CHAR_LENGTH(l.app_name)-3,CHAR_LENGTH(l.app_name))) , l.app_name) app_name, \n     IFNULL(r.ct,0) ct \nfrom\n(\n   select a.Date, app_id, app_name\n       from (\n            select curdate() - INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as Date\n      from (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as a\n          cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as b\n            cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as c\n        ) a, \n (\n             SELECT  \n                      app_id, app_name\n              from\n          (\n                     select @rn := @rn+1 AS rowId, app_id, app_name from \n                          (\n                                     select app_id, app_name, ct from \n                                     (\n                                             select affected_record_id, count(*) ct\n                                                from fn_audit_log l\n                                           where audit_date &gt; date_add( curdate(), interval -30 day)\n                                          and affected_record_id not in ( 1, -1)\n                                                and activity_cd in (\'tab_access\', \'app_access\')\n                                           and user_id = [USER_ID]\n                                               group by affected_record_id\n                                   ) a, fn_app f\n                                 where a.affected_record_id = f.app_id\n                                 order by ct desc \n                             ) b,\n                          (SELECT @rn := 0) t2\n          ) mm where rowId &lt;= 4\n      )b\n    where a.Date between date_add( curdate(), interval -30 day) and  curdate()\n) l left outer join\n(\n    select app_name,  DATE(audit_date) audit_date_1 ,count(*) ct from fn_audit_log a, fn_app b\n    where user_id = [USER_ID]\n     and audit_date &gt; date_add( curdate(), interval -30 day)\n    and activity_cd in (\'tab_access\', \'app_access\')\n   and a.affected_record_id = b.app_id\n   and b.app_id &lt;&gt; 1\n       and b.app_id in \n      (\n             SELECT  \n                      app_id\n                from\n          (\n                     select @rn := @rn+1 AS rowId, app_id from \n                            (\n                                     select app_id, ct from \n                                       (\n                                             select affected_record_id app_id, count(*) ct\n                                         from fn_audit_log \n                                            where audit_date &gt; date_add( curdate(), interval -30 day)\n                                          and affected_record_id not in ( 1, -1)\n                                                and activity_cd in (\'tab_access\', \'app_access\')\n                                           and user_id = [USER_ID]\n                                               group by affected_record_id\n                                   ) a\n                                   order by ct desc \n                             ) b,\n                          (SELECT @rn := 0) t2\n          ) mm \n )\n     group by app_name,  DATE(audit_date)\n) r\non l.Date = r.audit_date_1\nand l.app_name = r.app_name</reportSQL>\n    <reportTitle></reportTitle>\n    <reportSubTitle></reportSubTitle>\n    <reportHeader></reportHeader>\n    <frozenColumns>0</frozenColumns>\n    <emptyMessage>Your Search didn\'t yield any results.</emptyMessage>\n    <dataGridAlign>left</dataGridAlign>\n    <reportFooter></reportFooter>\n    <numFormCols>1</numFormCols>\n    <displayOptions>NNNNNNN</displayOptions>\n    <dataContainerHeight>100</dataContainerHeight>\n    <dataContainerWidth>100</dataContainerWidth>\n    <allowSchedule>N</allowSchedule>\n    <multiGroupColumn>N</multiGroupColumn>\n    <topDown>N</topDown>\n    <sizedByContent>N</sizedByContent>\n    <comment>N|</comment>\n    <dataSourceList>\n        <dataSource tableId=\"du0\">\n            <tableName>DUAL</tableName>\n            <tablePK></tablePK>\n            <displayName>DUAL</displayName>\n            <dataColumnList>\n                <dataColumn colId=\"audit_date\">\n                    <tableId>du0</tableId>\n                    <dbColName>l.date</dbColName>\n                    <colName>l.date</colName>\n                    <displayName>audit_date_1</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>1</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <colOnChart>LEGEND</colOnChart>\n                    <chartSeq>1</chartSeq>\n                    <chartSeries>false</chartSeries>\n                    <isRangeAxisFilled>false</isRangeAxisFilled>\n                    <drillinPoPUp>false</drillinPoPUp>\n                    <dbColType>VARCHAR2</dbColType>\n                    <enhancedPagination>false</enhancedPagination>\n                </dataColumn>\n                <dataColumn colId=\"app_name\">\n                    <tableId>du0</tableId>\n                    <dbColName>IF(CHAR_LENGTH(l.app_name) &gt;14, CONCAT(CONCAT(SUBSTR(l.app_name,1,7),\'...\'), SUBSTR(l.app_name, CHAR_LENGTH(l.app_name)-3,CHAR_LENGTH(l.app_name))) , l.app_name)</dbColName>\n                    <colName>IF(CHAR_LENGTH(l.app_name) &gt;14, CONCAT(CONCAT(SUBSTR(l.app_name,1,7),\'...\'), SUBSTR(l.app_name, CHAR_LENGTH(l.app_name)-3,CHAR_LENGTH(l.app_name))) , l.app_name)</colName>\n                    <displayName>app_name</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>2</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <colOnChart>0</colOnChart>\n                    <chartSeq>2</chartSeq>\n                    <chartColor></chartColor>\n                    <chartLineType></chartLineType>\n                    <chartSeries>true</chartSeries>\n                    <isRangeAxisFilled>false</isRangeAxisFilled>\n                    <drillinPoPUp>false</drillinPoPUp>\n                    <dbColType>VARCHAR2</dbColType>\n                    <chartGroup></chartGroup>\n                    <yAxis></yAxis>\n                    <enhancedPagination>false</enhancedPagination>\n                </dataColumn>\n                <dataColumn colId=\"ct\">\n                    <tableId>du0</tableId>\n                    <dbColName>IFNULL(r.ct,0)</dbColName>\n                    <colName>IFNULL(r.ct,0)</colName>\n                    <displayName>ct</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>3</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <colOnChart>0</colOnChart>\n                    <chartSeq>1</chartSeq>\n                    <chartColor></chartColor>\n                    <chartLineType></chartLineType>\n                    <chartSeries>false</chartSeries>\n                    <isRangeAxisFilled>false</isRangeAxisFilled>\n                    <drillinPoPUp>false</drillinPoPUp>\n                    <dbColType>VARCHAR2</dbColType>\n                    <chartGroup></chartGroup>\n                    <yAxis></yAxis>\n                    <enhancedPagination>false</enhancedPagination>\n                </dataColumn>\n            </dataColumnList>\n        </dataSource>\n    </dataSourceList>\n    <reportInNewWindow>false</reportInNewWindow>\n    <displayFolderTree>false</displayFolderTree>\n    <maxRowsInExcelDownload>500</maxRowsInExcelDownload>\n    <chartAdditionalOptions>\n        <chartOrientation>vertical</chartOrientation>\n        <hidechartLegend>N</hidechartLegend>\n        <legendPosition>bottom</legendPosition>\n        <labelAngle>down45</labelAngle>\n        <animate>true</animate>\n        <animateAnimatedChart>true</animateAnimatedChart>\n        <stacked>true</stacked>\n        <barControls>false</barControls>\n        <xAxisDateType>false</xAxisDateType>\n        <lessXaxisTickers>false</lessXaxisTickers>\n        <timeAxis>true</timeAxis>\n        <timeSeriesRender>line</timeSeriesRender>\n        <multiSeries>false</multiSeries>\n        <showXAxisLabel>false</showXAxisLabel>\n        <addXAxisTickers>false</addXAxisTickers>\n        <topMargin>30</topMargin>\n        <bottomMargin>50</bottomMargin>\n        <rightMargin>60</rightMargin>\n        <leftMargin>100</leftMargin>\n    </chartAdditionalOptions>\n    <folderId>NULL</folderId>\n    <drillURLInPoPUpPresent>false</drillURLInPoPUpPresent>\n    <isOneTimeScheduleAllowed>N</isOneTimeScheduleAllowed>\n    <isHourlyScheduleAllowed>N</isHourlyScheduleAllowed>\n    <isDailyScheduleAllowed>N</isDailyScheduleAllowed>\n    <isDailyMFScheduleAllowed>N</isDailyMFScheduleAllowed>\n    <isWeeklyScheduleAllowed>N</isWeeklyScheduleAllowed>\n    <isMonthlyScheduleAllowed>N</isMonthlyScheduleAllowed>\n</customReport>\n',1,'2019-08-08 08:43:27',1,'2019-08-08 08:43:27','',0,1,NULL,0,0),(20,'Average time spend on portal','',1,'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<customReport pageSize=\"200\" reportType=\"Linear\">\n    <reportName>Average time spend on portal</reportName>\n    <reportDescr></reportDescr>\n    <dbInfo>local</dbInfo>\n    <dbType>mysql</dbType>\n    <chartType>TimeSeriesChart</chartType>\n    <chartMultiSeries>N</chartMultiSeries>\n    <chartWidth>700</chartWidth>\n    <chartHeight>300</chartHeight>\n    <showChartTitle>false</showChartTitle>\n    <public>true</public>\n    <hideFormFieldAfterRun>false</hideFormFieldAfterRun>\n    <createId>27</createId>\n    <createDate>2017-01-28-05:00</createDate>\n    <reportSQL>SELECT \n      d.dat audit_date, \n    \'# of Minutes\' app, \n        coalesce(diff, null, 0) mins \nfrom\n(\n        select * from\n (\n     select curdate() - INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as dat\n       from (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as a\n  cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as b\n    cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as c \n   ) d where d.dat between date_add( curdate(), interval -30 day) and  curdate()\n) d left outer join\n(\n select dat, mi, mx, TIMESTAMPDIFF(MINUTE, coalesce(mi, null, 0), coalesce(mx, null, 0)) + 30  diff\n    from\n  (\n             select DATE(audit_date) dat, coalesce(min(audit_date), null, 0) mi, coalesce(max(audit_date), null, 0) mx\n             from fn_audit_log \n            where user_id = [USER_ID] and DATE(audit_date) between CURDATE()-300 and CURDATE()\n            group by DATE(audit_date)\n     ) a\n) a\non a.dat = d.dat\norder by 1</reportSQL>\n    <reportTitle></reportTitle>\n    <reportSubTitle></reportSubTitle>\n    <reportHeader></reportHeader>\n    <frozenColumns>0</frozenColumns>\n    <emptyMessage>Your Search didn\'t yield any results.</emptyMessage>\n    <dataGridAlign>left</dataGridAlign>\n    <reportFooter></reportFooter>\n    <numFormCols>1</numFormCols>\n    <displayOptions>NNNNNNN</displayOptions>\n    <dataContainerHeight>100</dataContainerHeight>\n    <dataContainerWidth>100</dataContainerWidth>\n    <allowSchedule>N</allowSchedule>\n    <multiGroupColumn>N</multiGroupColumn>\n    <topDown>N</topDown>\n    <sizedByContent>N</sizedByContent>\n    <comment>N|</comment>\n    <dataSourceList>\n        <dataSource tableId=\"du0\">\n            <tableName>DUAL</tableName>\n            <tablePK></tablePK>\n            <displayName>DUAL</displayName>\n            <dataColumnList>\n                <dataColumn colId=\"audit_date\">\n                    <tableId>du0</tableId>\n                    <dbColName>d.dat</dbColName>\n                    <colName>d.dat</colName>\n                    <displayName>audit_date_1</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>1</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <colOnChart>LEGEND</colOnChart>\n                    <chartSeq>1</chartSeq>\n                    <chartSeries>false</chartSeries>\n                    <isRangeAxisFilled>false</isRangeAxisFilled>\n                    <drillinPoPUp>false</drillinPoPUp>\n                    <dbColType>VARCHAR2</dbColType>\n                    <enhancedPagination>false</enhancedPagination>\n                </dataColumn>\n                <dataColumn colId=\"app\">\n                    <tableId>du0</tableId>\n                    <dbColName>\'# of Minutes\'</dbColName>\n                    <colName>\'# of Minutes\'</colName>\n                    <displayName>app</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>2</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <chartSeries>true</chartSeries>\n                    <dbColType>VARCHAR2</dbColType>\n                </dataColumn>\n                <dataColumn colId=\"mins\">\n                    <tableId>du0</tableId>\n                    <dbColName>coalesce(diff, null, 0)</dbColName>\n                    <colName>coalesce(diff, null, 0)</colName>\n                    <displayName>mins</displayName>\n                    <displayWidth>10</displayWidth>\n                    <displayWidthInPxls>nullpxpx</displayWidthInPxls>\n                    <displayAlignment>Left</displayAlignment>\n                    <orderSeq>3</orderSeq>\n                    <visible>true</visible>\n                    <calculated>true</calculated>\n                    <colType>VARCHAR2</colType>\n                    <groupBreak>false</groupBreak>\n                    <colOnChart>0</colOnChart>\n                    <chartSeq>1</chartSeq>\n                    <chartColor></chartColor>\n                    <chartLineType></chartLineType>\n                    <chartSeries>false</chartSeries>\n                    <dbColType>VARCHAR2</dbColType>\n                    <chartGroup></chartGroup>\n                    <yAxis></yAxis>\n                </dataColumn>\n            </dataColumnList>\n        </dataSource>\n    </dataSourceList>\n    <reportInNewWindow>false</reportInNewWindow>\n    <displayFolderTree>false</displayFolderTree>\n    <maxRowsInExcelDownload>500</maxRowsInExcelDownload>\n    <chartAdditionalOptions>\n        <chartOrientation>vertical</chartOrientation>\n        <hidechartLegend>N</hidechartLegend>\n        <legendPosition>bottom</legendPosition>\n        <labelAngle>down45</labelAngle>\n        <animate>true</animate>\n        <animateAnimatedChart>true</animateAnimatedChart>\n        <stacked>true</stacked>\n        <barControls>false</barControls>\n        <xAxisDateType>false</xAxisDateType>\n        <lessXaxisTickers>false</lessXaxisTickers>\n        <timeAxis>true</timeAxis>\n        <timeSeriesRender>line</timeSeriesRender>\n        <multiSeries>false</multiSeries>\n        <showXAxisLabel>false</showXAxisLabel>\n        <addXAxisTickers>false</addXAxisTickers>\n        <topMargin>30</topMargin>\n        <bottomMargin>50</bottomMargin>\n        <rightMargin>60</rightMargin>\n        <leftMargin>100</leftMargin>\n    </chartAdditionalOptions>\n    <folderId>NULL</folderId>\n    <drillURLInPoPUpPresent>false</drillURLInPoPUpPresent>\n    <isOneTimeScheduleAllowed>N</isOneTimeScheduleAllowed>\n    <isHourlyScheduleAllowed>N</isHourlyScheduleAllowed>\n    <isDailyScheduleAllowed>N</isDailyScheduleAllowed>\n    <isDailyMFScheduleAllowed>N</isDailyMFScheduleAllowed>\n    <isWeeklyScheduleAllowed>N</isWeeklyScheduleAllowed>\n    <isMonthlyScheduleAllowed>N</isMonthlyScheduleAllowed>\n</customReport>\n',1,'2019-08-08 08:43:27',1,'2019-08-08 08:43:27','',0,1,NULL,0,0);
58
59 LOCK TABLES `fn_app` WRITE;
60 /*!40000 ALTER TABLE `fn_app` DISABLE KEYS */;
61 INSERT INTO
62   `fn_app` (
63     `app_Id`,
64     `app_name`,
65     `app_image_url`,
66     `app_description`,
67     `app_notes`,
68     `app_url`,
69     `app_alternate_url`,
70     `app_rest_endpoint`,
71     `ml_app_name`,
72     `ml_app_admin_id`,
73     `mots_id`,
74     `app_password`,
75     `_open`,
76     `_enabled`,
77     `app_username`,
78     `ueb_key`,
79     `ueb_secret`,
80     `ueb_topic_name`,
81     `app_type`,
82     `auth_central`,
83     `auth_namespace`
84   )
85 VALUES
86   (
87     1,
88     'Default',
89     'assets/images/tmp/portal1.png',
90     'Some Default Description',
91     'Some Default Note',
92     'http://localhost',
93     'http://localhost',
94     'http://localhost:8080/ecompportal',
95     'EcompPortal',
96     '',
97     NULL,
98     'dR2NABMkxPaFbIbym87ZwQ==',
99     0,
100     0,
101     'm00468@portal.onap.org',
102     'EkrqsjQqZt4ZrPh6',
103     NULL,
104     NULL,
105     1,
106     1,
107     'org.onap.portal'
108   ),(
109     2,
110     'xDemo App',
111     'images/cache/portal-222865671_37476.png',
112     NULL,
113     NULL,
114     'http://portal-sdk.simpledemo.onap.org:30212/ONAPPORTALSDK/welcome.htm',
115     NULL,
116     'http://portal-sdk:8080/ONAPPORTALSDK/api/v3',
117     '',
118     '',
119     NULL,
120     '2VxipM8Z3SETg32m3Gp0FvKS6zZ2uCbCw46WDyK6T5E=',
121     0,
122     1,
123     'Default',
124     'ueb_key',
125     'ueb_secret',
126     'ECOMP-PORTAL-OUTBOX',
127     1,
128     0,
129     NULL
130   ),(
131     3,
132     'DMaaP Bus Ctrl',
133     'images/cache/portal944583064_80711.png',
134     NULL,
135     NULL,
136     'http://dmaap-bc.simpledemo.onap.org:/ECOMPDBCAPP/dbc#/dmaap',
137     NULL,
138     'http://dmaap-bc:8989/ECOMPDBCAPP/api/v2',
139     '',
140     '',
141     NULL,
142     'okYTaDrhzibcbGVq5mjkVQ==',
143     0,
144     0,
145     'Default',
146     'ueb_key',
147     'ueb_secret',
148     'ECOMP-PORTAL-OUTBOX',
149     1,
150     0,
151     NULL
152   ),(
153     4,
154     'SDC',
155     'images/cache/portal956868231_53879.png',
156     NULL,
157     NULL,
158     'http://sdc.api.fe.simpledemo.onap.org:30206/sdc1/portal',
159     NULL,
160     'http://sdc-be:8080/api/v3',
161     '',
162     '',
163     NULL,
164     'j85yNhyIs7zKYbR1VlwEfNhS6b7Om4l0Gx5O8931sCI=',
165     0,
166     1,
167     'sdc',
168     'ueb_key',
169     'ueb_secret',
170     'ECOMP-PORTAL-OUTBOX',
171     1,
172     1,
173     'org.onap.sdc'
174   ),(
175     5,
176     'Policy',
177     'images/cache/portal1470452815_67021.png',
178     NULL,
179     NULL,
180     'https://policy.api.simpledemo.onap.org:30219/onap/policy',
181     NULL,
182     'https://pap:8443/onap/api/v3',
183     '',
184     '',
185     NULL,
186     '2VxipM8Z3SETg32m3Gp0FvKS6zZ2uCbCw46WDyK6T5E=',
187     0,
188     1,
189     'Default',
190     'ueb_key_5',
191     'ueb_secret',
192     'ECOMP-PORTAL-OUTBOX',
193     1,
194     1,
195     'org.onap.policy'
196   ),(
197     6,
198     'Virtual Infrastructure Deployment',
199     'images/cache/portal-345993588_92550.png',
200     NULL,
201     NULL,
202     'https://vid.api.simpledemo.onap.org:30200/vid/welcome.htm',
203     NULL,
204     'https://vid:8443/vid/api/v3',
205     '',
206     '',
207     NULL,
208     '2VxipM8Z3SETg32m3Gp0FvKS6zZ2uCbCw46WDyK6T5E=',
209     0,
210     1,
211     'Default',
212     '2Re7Pvdkgw5aeAUD',
213     'S31PrbOzGgL4hg4owgtx47Da',
214     'ECOMP-PORTAL-OUTBOX-90',
215     1,
216     1,
217     'org.onap.vid'
218   ),(
219     7,
220     'A&AI UI',
221     'images/cache/portal-345993588_92550.png',
222     NULL,
223     NULL,
224     'https://aai.ui.simpledemo.onap.org:30220/services/aai/webapp/index.html#/viewInspect',
225     NULL,
226     'https://aai-sparky-be.onap:8000/api/v2',
227     '',
228     '',
229     NULL,
230     '4LK69amiIFtuzcl6Gsv97Tt7MLhzo03aoOx7dTvdjKQ=',
231     0,
232     1,
233     'aaiui',
234     'ueb_key_7',
235     'ueb_secret',
236     'ECOMP-PORTAL-OUTBOX',
237     1,
238     1,
239     'org.onap.aai'
240   ),(
241     8,
242     'CLI',
243     'images/cache/portal-345993588_92550.png',
244     NULL,
245     NULL,
246     'http://cli.api.simpledemo.onap.org:30260/',
247     NULL,
248     NULL,
249     '',
250     '',
251     NULL,
252     '',
253     1,
254     1,
255     '',
256     '',
257     '',
258     '',
259     1,
260     0,
261     NULL
262   ),(
263     9,
264     'MSB',
265     'images/cache/portal-345993588_92550.png',
266     NULL,
267     NULL,
268     'http://msb.api.simpledemo.onap.org:30280/iui/microservices/default.html',
269     NULL,
270     NULL,
271     '',
272     '',
273     NULL,
274     '',
275     1,
276     1,
277     '',
278     '',
279     '',
280     '',
281     2,
282     0,
283     NULL
284   ),(
285     10,
286     'SO-Monitoring',
287     'images/cache/portal-345993588_92550.png',
288     NULL,
289     NULL,
290     'http://so-monitoring:30224',
291     NULL,
292     'http://so-monitoring:30224',
293     '',
294     '',
295     NULL,
296     'password',
297     1,
298     1,
299     'user',
300     '',
301     '',
302     '',
303     1,
304     0,
305     'SO-Monitoring'
306   ),(
307     11,
308     'LF Acumos Marketplace',
309     'images/cache/portal_907838932_26954.png',
310     NULL,
311     NULL,
312     'https://marketplace.acumos.org/#/home',
313     NULL,
314     NULL,
315     '',
316     '',
317     NULL,
318     '',
319     1,
320     1,
321     '',
322     '',
323     '',
324     '',
325     2,
326     0,
327     NULL
328   );
329
330 /*!40000 ALTER TABLE `fn_app` ENABLE KEYS */;
331 UNLOCK TABLES;
332
333
334 --
335 -- Dumping data for table `ep_app_function`
336 --
337
338 LOCK TABLES `ep_app_function` WRITE;
339 /*!40000 ALTER TABLE `ep_app_function` DISABLE KEYS */;
340 INSERT INTO `ep_app_function` (`app_id`, `function_cd`, `function_name`) VALUES (1,'menu|menu_acc_admin|*','Admin Account Menu'),(1,'menu|menu_admin|*','Admin Menu'),(1,'menu|menu_home|*','Home Menu'),(1,'menu|menu_logout|*','Logout Menu'),(1,'menu|menu_web_analytics|*','Web Analytics'),(1,'url|addWebAnalyticsReport|*','Add Web Analytics Report'),(1,'url|appsFullList|*','Apps Full List'),(1,'url|centralizedApps|*','Centralized Apps'),(1,'url|edit_notification|*','User Notification'),(1,'url|functionalMenu|*','Functional Menu'),(1,'url|getAdminNotifications|*','Admin Notifications'),(1,'url|getAllWebAnalytics|*','Get All Web Analytics'),(1,'url|getFunctionalMenuRole|*','Get Functional Menu Role'),(1,'url|getNotificationAppRoles|*','Get Notification App Roles'),(1,'url|getUserAppsWebAnalytics|*','Get User Apps Web Analytics'),(1,'url|getUserJourneyAnalyticsReport|*','Get User Journey Report'),(1,'url|get_roles%2f%2a|*','getRolesOfApp'),(1,'url|get_role_functions%2f%2a|*','Get Role Functions'),(1,'url|login|*','Login'),(1,'url|notification_code|*','Notification Code'),(1,'url|role_function_list%2fsaveRoleFunction%2f%2a|*','Save Role Function'),(1,'url|saveNotification|*','publish notifications'),(1,'url|syncRoles|*','SyncRoles'),(1,'url|url_role.htm|*','role page'),(1,'url|url_welcome.htm|*','welcome page'),(1,'url|userAppRoles|*','userAppRoles'),(1,'url|userApps|*','User Apps');
341 /*!40000 ALTER TABLE `ep_app_function` ENABLE KEYS */;
342 UNLOCK TABLES;
343
344 --
345 -- Dumping data for table `fn_role`
346 --
347
348 LOCK TABLES `fn_role` WRITE;
349 /*!40000 ALTER TABLE `fn_role` DISABLE KEYS */;
350 INSERT INTO `fn_role` (`role_id`, `role_name`, `active_yn`, `priority`, `app_id`, `app_role_id`) VALUES (1,'System_Administrator',1,1,NULL,NULL),(16,'Standard_User',1,5,NULL,NULL),(900,'Restricted_App_Role',1,1,NULL,NULL),(950,'Portal_Notification_Admin',1,1,NULL,NULL),(999,'Account_Administrator',1,1,NULL,NULL),(1000,'System_Administrator',1,1,2,1),(1001,'Standard_User',1,1,2,16),(1002,'System_Administrator',1,1,3,1),(1003,'Standard_User',1,1,3,16),(1004,'ADMIN',1,1,4,0),(1005,'TESTOR',1,1,4,1),(1006,'System_Administrator',1,1,5,1),(1007,'Standard_User',1,1,5,16),(1008,'System_Administrator',1,1,6,1),(1009,'Standard_User',1,1,6,16),(1010,'Usage_Analyst',1,1,NULL,NULL),(1011,'View',1,1,7,1),(1012,'Standard_User',1,1,7,16),(2115,'Portal_Usage_Analyst',1,6,NULL,NULL);
351 /*!40000 ALTER TABLE `fn_role` ENABLE KEYS */;
352 UNLOCK TABLES;
353
354 --
355 -- Dumping data for table `ep_app_role_function`
356 --
357
358 LOCK TABLES `ep_app_role_function` WRITE;
359 /*!40000 ALTER TABLE `ep_app_role_function` DISABLE KEYS */;
360 INSERT INTO `ep_app_role_function` (`id`, `app_id`, `role_id`, `function_cd`, `role_app_id`) VALUES (1,1,1,'url|login|*',NULL),(2,1,1,'menu|menu_admin|*',NULL),(3,1,1,'menu|menu_home|*',NULL),(4,1,1,'menu|menu_logout|*',NULL),(5,1,16,'url|login|*',NULL),(6,1,16,'menu|menu_home|*',NULL),(7,1,16,'menu|menu_logout|*',NULL),(8,1,950,'url|edit_notification|*',NULL),(9,1,950,'url|getAdminNotifications|*',NULL),(10,1,950,'url|saveNotification|*',NULL),(11,1,999,'url|userAppRoles|*',NULL),(12,1,999,'url|getAdminNotifications|*',NULL),(13,1,999,'url|userApps|*',NULL),(14,1,1010,'menu|menu_web_analytics|*',NULL),(15,1,2115,'menu|menu_web_analytics|*',NULL),(16,1,1,'menu|menu_acc_admin|*',NULL),(17,1,999,'menu|menu_acc_admin|*',NULL),(18,1,999,'url|centralizedApps|*',NULL),(19,1,999,'url|getAllWebAnalytics|*',NULL),(20,1,999,'url|getFunctionalMenuRole|*',NULL),(21,1,999,'url|getNotificationAppRoles|*',NULL),(22,1,999,'url|getUserAppsWebAnalytics|*',NULL),(23,1,999,'url|getUserJourneyAnalyticsReport|*',NULL),(24,1,999,'url|get_roles%2f%2a|*',NULL),(25,1,999,'url|get_role_functions%2f%2a|*',NULL),(26,1,999,'url|notification_code|*',NULL),(27,1,999,'url|role_function_list%2fsaveRoleFunction%2f%2a|*',NULL),(28,1,999,'url|syncRoles|*',NULL);
361 /*!40000 ALTER TABLE `ep_app_role_function` ENABLE KEYS */;
362 UNLOCK TABLES;
363
364 --
365 -- Dumping data for table `ep_basic_auth_account`
366 --
367
368 LOCK TABLES `ep_basic_auth_account` WRITE;
369 /*!40000 ALTER TABLE `ep_basic_auth_account` DISABLE KEYS */;
370 INSERT INTO `ep_basic_auth_account` (`id`, `ext_app_name`, `username`, `password`, `active_yn`) VALUES (1,'JIRA','jira','6APqvG4AU2rfLgCvMdySwQ==',1);
371 /*!40000 ALTER TABLE `ep_basic_auth_account` ENABLE KEYS */;
372 UNLOCK TABLES;
373
374 --
375 -- Dumping data for table `ep_microservice`
376 --
377
378 LOCK TABLES `ep_microservice` WRITE;
379 /*!40000 ALTER TABLE `ep_microservice` DISABLE KEYS */;
380 INSERT INTO `ep_microservice` (`id`, `name`, `description`, `app_Id`, `endpoint_url`, `security_type`, `username`, `password`, `active`) VALUES (1,'News Microservice','News',1,'http://portal-app:8989/ONAPPORTAL/commonWidgets','Basic Authentication','portal','6APqvG4AU2rfLgCvMdySwQ==',1),(2,'Events Microservice','Events',1,'http://portal-app:8989/ONAPPORTAL/commonWidgets','Basic Authentication','portal','6APqvG4AU2rfLgCvMdySwQ==',1),(3,'Resources Microservice','Resources',1,'http://portal-app:8989/ONAPPORTAL/commonWidgets','Basic Authentication','portal','6APqvG4AU2rfLgCvMdySwQ==',1),(4,'Portal-Common-Scheduler Microservice','Portal-Common-Scheduler',1,'http://portal-app:8989/ONAPPORTAL/commonWidgets','Basic Authentication','portal','6APqvG4AU2rfLgCvMdySwQ==',1);
381 /*!40000 ALTER TABLE `ep_microservice` ENABLE KEYS */;
382 UNLOCK TABLES;
383
384 --
385 -- Dumping data for table `ep_microservice_parameter`
386 --
387
388 LOCK TABLES `ep_microservice_parameter` WRITE;
389 /*!40000 ALTER TABLE `ep_microservice_parameter` DISABLE KEYS */;
390 INSERT INTO `ep_microservice_parameter` (`id`, `service_id`, `para_key`, `para_value`) VALUES (1,1,'resourceType','NEWS'),(2,2,'resourceType','EVENTS'),(3,3,'resourceType','IMPORTANTRESOURCES'),(4,4,'resourceType',NULL);
391 /*!40000 ALTER TABLE `ep_microservice_parameter` ENABLE KEYS */;
392 UNLOCK TABLES;
393
394 --
395 -- Dumping data for table `ep_widget_catalog`
396 --
397
398 LOCK TABLES `ep_widget_catalog` WRITE;
399 /*!40000 ALTER TABLE `ep_widget_catalog` DISABLE KEYS */;
400 INSERT INTO `ep_widget_catalog` (`wdg_name`, `service_id`, `wdg_desc`, `wdg_file_loc`, `all_user_flag`) VALUES ('News',1,'News','news-widget.zip',1),('Events',2,'Events','events-widget.zip',1),('Resources',3,'Resources','resources-widget.zip',1),('Portal-Common-Scheduler',4,'Portal-Common-Scheduler','portal-common-scheduler-widget.zip',1);
401 /*!40000 ALTER TABLE `ep_widget_catalog` ENABLE KEYS */;
402 UNLOCK TABLES;
403
404 --
405 -- Dumping data for table `ep_widget_catalog_files`
406 --
407
408 LOCK TABLES `ep_widget_catalog_files` WRITE;
409 /*!40000 ALTER TABLE `ep_widget_catalog_files` DISABLE KEYS */;
410 INSERT INTO `ep_widget_catalog_files` (`file_id`, `widget_id`, `widget_name`, `framework_js`, `controller_js`, `markup_html`, `widget_css`) VALUES (1,1,'News','var Portal1Widget = (function(window, undefined) {                                                                                      \n                                                                                                                                    \n        var Portal1Widget = Portal1Widget || {};                                                                                                \n      function extractHostPortApp(src) {                                                                                                  \n          \n              Portal1Widget.microserviceId = 1;                                                                                 \n            Portal1Widget.pathArray = src.split( \'/\' );                                                                                     \n                    \n              Portal1Widget.widgetName = 1;\n         Portal1Widget.serviceSeperator = Portal1Widget.pathArray[Portal1Widget.pathArray.length - 4];                                           \n              Portal1Widget.commonUrl = src.substring(0, src.lastIndexOf(\"/\" + Portal1Widget.pathArray[Portal1Widget.pathArray.length - 2]));       \n              \n              Portal1Widget.recipientDivDataAttrib = \'data-\' + Portal1Widget.widgetName;                                                          \n                Portal1Widget.controllerName = \'Portal1Ctrl\';                                                                                     \n          Portal1Widget.readyCssFlag = \'portal1-css-ready\';                                                                                       \n            Portal1Widget.readyCssFlagExpectedValue = \'#bada55\';                                                                            \n            Portal1Widget.serviceURL = src.substring(0, src.lastIndexOf(\"/\" + Portal1Widget.serviceSeperator)) + \'/portalApi/microservice/proxy/parameter/\' + 1;  \n    }                                  \n   \n      extractHostPortApp(document.getElementsByTagName(\'script\')[0].src);\n \n      function loadStylesheet(url) {                                                                                                 \n               var link = document.createElement(\'link\');                                                                                 \n         link.rel = \'stylesheet\';                                                                                                   \n         link.type = \'text/css\';                                                                                                    \n         link.href = url;                                                                                                           \n           var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(link, entry);                                                                                \n   }                                                                                                                              \n                                                                                                                                   \n  function isCssReady(callback) {                                                                                                \n               var testElem = document.createElement(\'span\');                                                                             \n         testElem.id = Portal1Widget.readyCssFlag;                                                                                          \n           testElem.style = \'color: #fff\';                                                                       \n              var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(testElem, entry);                                                                            \n                                                                                                                                  \n               (function poll() {                                                                                                         \n                   var node = document.getElementById(\'css-ready\');                                                                       \n                     var value;                                                                                                             \n                       if (window.getComputedStyle) {                                                                                         \n                               value = document.defaultView.getComputedStyle(testElem, null)                                                      \n                                           .getPropertyValue(\'color\');                                                                                \n                 }                                                                                                                      \n                       else if (node.currentStyle) {                                                                                          \n                               value = node.currentStyle.color;                                                                                   \n                   }                                                                                                                      \n                       if (value && value === \'rgb(186, 218, 85)\' || value.toLowerCase() === Portal1Widget.readyCssFlagExpectedValue) {           \n                         callback();                                                                                                        \n                   } else {                                                                                                               \n                               setTimeout(poll, 500);                                                                                             \n                   }                                                                                                                      \n               })();                                                                                                                      \n   }                                                                                                                              \n                                                                                                                                      \n       function injectCss(css) {                                                                                                      \n               var style = document.createElement(\'style\');                                                                               \n         style.type = \'text/css\';                                                                                                   \n                 css = css.replace(/\\}/g, \"}\\n\");                                                                                           \n                                                                                                                                      \n               if (style.styleSheet) {                                                                                                    \n                   style.styleSheet.cssText = css;                                                                                        \n               } else {                                                                                                                   \n                   style.appendChild(document.createTextNode(css));                                                                       \n               }                                                                                                                          \n           var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(style, entry);                                                                               \n   }                                                                                                                              \n                                                                                                                                      \n       function loadScript(url, callback) {                                                                                           \n               var script = document.createElement(\'script\');                                                                             \n         script.src = url;                                                                                                          \n           \n              var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(script, entry);                                                                              \n           \n              script.onload = script.onreadystatechange = function() {   \n                   var rdyState = script.readyState;                                                                                      \n                       if (!rdyState || /complete|loaded/.test(script.readyState)) {                                                          \n                               callback();                                                                                                        \n                           script.onload = null;                                                                                              \n                           script.onreadystatechange = null;                                                                                  \n                   }                                                                                                                      \n               };                                                                                                                         \n   }                                                                                                                              \n                                                                                                                                   \n  function loadSupportingFiles(callback) {                                                                                       \n               callback();                                                                                                                \n   }                                                                                                                              \n                                                                                                                                      \n       function getWidgetParams() {                                                                                                   \n                                                                                                                                          \n   }                                                                                                                              \n                                                                                                                                      \n       function getWidgetData(widgetUrl, callback) {                                                                                      \n   var responseData;                                                                                                                                                                                                  \n   try{                                                                                                                                                                                                               \n           jQuery.ajax({                                                                                                                                                                                              \n                   url: widgetUrl,                                                                                                                                                                                            \n                   method: \"GET\",                                                                                                                                                                                                   \n                   xhrFields: {                                                                                                                                                                                                       \n                           withCredentials: true                                                                                                                                                                              \n                   },    \n                        crossDomain: true,                      \n                      success: function (result) {                                                                                                                                                                               \n                           if (result.isOk == false){                                                                                                                                                                         \n                                                                                                                                                                                                                              \n                           }else{                                                                                                                                                                                             \n                                   callback(result);                                                                                                                                                                                          \n                           }                                                                                                                                                                                                  \n                   }                                                                                                                                                                                                  \n           });                                                                                                                                                                                                \n   }                                                                                                                                                                                                                  \n   catch(e){                                                                                                                                                                                                          \n   \n      }                                                                                                                                                                                                                  \n                                                                                                                                                                                      \n   }                                                                                                   \n  \n      function getMarkupContent(markupLocation, callback){                                                                             \n                                                                                                                                        \n           try{\n                  jQuery.ajax({                                                                                                              \n                   url: markupLocation,\n                  method: \"GET\",   \n                   xhrFields: {                                                                                                                                                                                                       \n                                   withCredentials: true                                                                                                                                                                              \n                           },   \n                         crossDomain: true,              \n                      success: function (result) {                                                                                           \n                           if (result.isOk == false){                                                                                         \n                                                                                                                                              \n                           }else{                                                                                                             \n                               callback(result);                                                                                   \n                                  }                                                                                                                  \n                   }                                                                                                        \n                     });       \n            }\n             catch(e){\n                     \n              }\n     }                                                                                                                              \n                                                                                                                                      \n       function renderWidget(data, location, $controllerProvider) {                                                                   \n               var div = document.createElement(\'div\');                                                                                   \n         getMarkupContent(Portal1Widget.commonUrl + \"/markup/\" + Portal1Widget.widgetName, function(div){\n                    location.append(div);                                                                                                      \n                   Portal1Widget.widgetData = data;\n                      app.controllerProvider.register(Portal1Widget.controllerName, Portal1Widget.controller);                                           \n                   var mController = angular.element(document.getElementById(\"widgets\"));                                                   \n                   mController.scope().activateThis(location);   \n                });\n           \n      }                                                                                                                              \n                                                                                                                                      \n       function printAllArtifacts(moduleName, controllerName) {                                                                       \n           var queue = angular.module(moduleName)._invokeQueue;                                                                       \n           for(var i=0;i<queue.length;i++) {                                                                                          \n               var call = queue[i];                                                                                                   \n               console.log(i + \'. \' + call[0] + \' - \' + call[1] + \' - \' + call[2][0]);                                                \n     }                                                                                                                          \n       }                                                                                                                              \n                                                                                                                                      \n       function get(name){                                                                                                            \n          if(name=(new RegExp(\'[?&]\'+encodeURIComponent(name)+\'=([^&]*)\')).exec(location.search))                                     \n         return decodeURIComponent(name[1]);                                                                                      \n       }                                                                                                                              \n                                                                                                                                   \n  loadSupportingFiles(function() {                                                                                               \n               loadStylesheet(Portal1Widget.commonUrl + \'/\' + Portal1Widget.widgetName + \'/style.css\');                                           \n               loadScript(Portal1Widget.commonUrl + \'/\' + Portal1Widget.widgetName + \'/controller.js\',                                            \n                       function() {                                                                                                           \n                               $(\'[\'+ Portal1Widget.recipientDivDataAttrib + \']\').each(function() {                                                   \n                                   var location = jQuery(this);                                                                                   \n                                       location.removeAttr(Portal1Widget.recipientDivDataAttrib);                                                         \n                                   var id = location.attr(Portal1Widget.recipientDivDataAttrib);                                                      \n                                   getWidgetData(Portal1Widget.serviceURL, function(data) { \n                                             isCssReady(function(){                                                                                     \n                                                   renderWidget(data, location);                                                                          \n                                               });                                                                                                                                        \n                                   });                                                                                                            \n                               });                                                                                                                \n                   }                                                                                                                      \n               );                                                                                                                         \n   });                                                                                                                            \n                                                                                                                                      \n       return Portal1Widget;                                                                                                              \n})(window);                                                                                                                        \n                              ','Portal1Widget.controller = function Portal1Ctrl($rootScope, applicationsService , $log,\n                    $window, userProfileService, $scope, $cookies, $timeout, $interval,\n                   $uibModal, dashboardService, ngDialog) {Portal1Widget=Portal1Widget||{};var res = Portal1Widget.widgetData;\n           \n              var _this = this;       \n\n            //activate spinner\n            this.isLoading = true;\n                $scope.getUserAppsIsDone = false;\n             this.userProfileService = userProfileService;\n         $scope.demoNum = 1;\n           $scope.event_content_show = false;\n            $scope.widgetData = [];\n\n             $scope.editWidgetModalPopup = function(availableData, resourceType) {\n\n                       $scope.editData = JSON.stringify(availableData);\n                      $scope.availableDataTemp = $scope.availableData;\n                      \n              };\n            \n              /*Setting News data*/\n         $scope.newsData = [];\n         $scope.updateNews = function() {\n                      $scope.newsData.length=0;\n                     //dashboardService.getCommonWidgetData(\'NEWS\').then(function(res) {\n                         // $log.info(res.message);\n                            var newsDataJsonArray = res.response.items;\n                           for (var i = 0; i < newsDataJsonArray.length; i++) {\n                                  $scope.newsData.push(newsDataJsonArray[i]);\n                           }\n                     //})[\'catch\'](function(err) {\n                       //      $log.error(\'dashboard controller: failed to get news list\', err);\n                   //      _this.isLoading = false;\n                      //});\n         }\n             $scope.updateNews();\n\n        }\n\n;Portal1Widget.controller.$inject = [\'$rootScope\',\'applicationsService\',\'$log\',\'$window\',\'userProfileService\',\'$scope\',\'$cookies\',\'$timeout\',\'$interval\',\'$uibModal\',\'dashboardService\',\'ngDialog\'];','<div  id=\"widget-news\" ng-controller=\"Portal1Ctrl\" class=\"widget-news-main\">\n                <div att-gridster-item-body class=\"information-section-gridsterContent\">\n                    <div class=\"resources\">\n                             <ul ng-show=\"newsData.length!=0\">\n                                   <li ng-repeat=\"item in newsData\"><a id=\"new-widget-{{item.id}}\"\n                                                                                           href=\"{{item.href}}\" target=\"_blank\" ng-bind=\"item.title\"></a></li>\n                             </ul>\n                                                 <div ng-hide=\"newsData.length!=0\">\n                                                          <div class=\"activity-error-container\"\n                                                                       style=\"background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;\">\n                                                                  <div class=\"activity-error-block\">\n                                                                          <i class=\"icon-information full-linear-icon-information\"\n                                                                               style=\"margin-left: 125px; font-size: 90px\"></i> <br>\n                                                                            <div class=\"activity-error-msg1\">There\'s currently no\n                                                                                                              news available.</div>\n                                                                 </div>\n                                                                </div>\n                                        </div>\n                        </div>\n                </div>\n</div>\n','\n.portal-widget-panel-container {\n margin-left:150px;\n    width:1500px;\n}\n\n\n.portal-widget-panel-fixed-panel {\n  min-height: 300px;\n  max-height: 1300px;\n  overflow: auto;\n}\n\n.portal-widget-panel-double-middle {\n  min-height: 660px;\n  max-height: 660px;\n  overflow: auto;\n}\n\n.portal-widget-panel-row {\n    margin-right: 0px;\n    margin-left:  0px;\n    width: 2800px;\n}\n\n/*Increases the width of the card/panel */\n.portal-widget-panel-panel-default {\n        width:450px\n}\n\n/*Controls the spacing between the cards */\n.portal-widget-panel-col-sm-3 {\n        width:20.5%\n}\n\n.portal-widget-panel-top {\n    top: 15px;\n  left: 15px;\n}\n\n#portal1-css-ready {\ncolor: #bada55 !important;\n}'),(2,2,'Events','var Portal2Widget = (function(window, undefined) {                                                                                      \n                                                                                                                                    \n var Portal2Widget = Portal2Widget || {};                                                                                                \n      function extractHostPortApp(src) {                                                                                                  \n          \n              Portal2Widget.microserviceId = 2;                                                                                 \n            Portal2Widget.pathArray = src.split( \'/\' );                                                                                     \n                    \n              Portal2Widget.widgetName = 2;\n         Portal2Widget.serviceSeperator = Portal2Widget.pathArray[Portal2Widget.pathArray.length - 4];                                           \n              Portal2Widget.commonUrl = src.substring(0, src.lastIndexOf(\"/\" + Portal2Widget.pathArray[Portal2Widget.pathArray.length - 2]));       \n              \n              Portal2Widget.recipientDivDataAttrib = \'data-\' + Portal2Widget.widgetName;                                                          \n                Portal2Widget.controllerName = \'Portal2Ctrl\';                                                                                     \n          Portal2Widget.readyCssFlag = \'portal2-css-ready\';                                                                                       \n            Portal2Widget.readyCssFlagExpectedValue = \'#bada55\';                                                                            \n            Portal2Widget.serviceURL = src.substring(0, src.lastIndexOf(\"/\" + Portal2Widget.serviceSeperator)) + \'/portalApi/microservice/proxy/parameter/\' + 2;  \n    }                                  \n   \n      extractHostPortApp(document.getElementsByTagName(\'script\')[0].src);\n \n      function loadStylesheet(url) {                                                                                                 \n               var link = document.createElement(\'link\');                                                                                 \n         link.rel = \'stylesheet\';                                                                                                   \n         link.type = \'text/css\';                                                                                                    \n         link.href = url;                                                                                                           \n           var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(link, entry);                                                                                \n   }                                                                                                                              \n                                                                                                                                   \n  function isCssReady(callback) {                                                                                                \n               var testElem = document.createElement(\'span\');                                                                             \n         testElem.id = Portal2Widget.readyCssFlag;                                                                                          \n           testElem.style = \'color: #fff\';                                                                       \n              var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(testElem, entry);                                                                            \n                                                                                                                                  \n               (function poll() {                                                                                                         \n                   var node = document.getElementById(\'css-ready\');                                                                       \n                     var value;                                                                                                             \n                       if (window.getComputedStyle) {                                                                                         \n                               value = document.defaultView.getComputedStyle(testElem, null)                                                      \n                                           .getPropertyValue(\'color\');                                                                                \n                 }                                                                                                                      \n                       else if (node.currentStyle) {                                                                                          \n                               value = node.currentStyle.color;                                                                                   \n                   }                                                                                                                      \n                       if (value && value === \'rgb(186, 218, 85)\' || value.toLowerCase() === Portal2Widget.readyCssFlagExpectedValue) {           \n                         callback();                                                                                                        \n                   } else {                                                                                                               \n                               setTimeout(poll, 500);                                                                                             \n                   }                                                                                                                      \n               })();                                                                                                                      \n   }                                                                                                                              \n                                                                                                                                      \n       function injectCss(css) {                                                                                                      \n               var style = document.createElement(\'style\');                                                                               \n         style.type = \'text/css\';                                                                                                   \n                 css = css.replace(/\\}/g, \"}\\n\");                                                                                           \n                                                                                                                                      \n               if (style.styleSheet) {                                                                                                    \n                   style.styleSheet.cssText = css;                                                                                        \n               } else {                                                                                                                   \n                   style.appendChild(document.createTextNode(css));                                                                       \n               }                                                                                                                          \n           var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(style, entry);                                                                               \n   }                                                                                                                              \n                                                                                                                                      \n       function loadScript(url, callback) {                                                                                           \n               var script = document.createElement(\'script\');                                                                             \n         script.src = url;                                                                                                          \n           \n              var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(script, entry);                                                                              \n           \n              script.onload = script.onreadystatechange = function() {   \n                   var rdyState = script.readyState;                                                                                      \n                       if (!rdyState || /complete|loaded/.test(script.readyState)) {                                                          \n                               callback();                                                                                                        \n                           script.onload = null;                                                                                              \n                           script.onreadystatechange = null;                                                                                  \n                   }                                                                                                                      \n               };                                                                                                                         \n   }                                                                                                                              \n                                                                                                                                   \n  function loadSupportingFiles(callback) {                                                                                       \n               callback();                                                                                                                \n   }                                                                                                                              \n                                                                                                                                      \n       function getWidgetParams() {                                                                                                   \n                                                                                                                                          \n   }                                                                                                                              \n                                                                                                                                      \n       function getWidgetData(widgetUrl, callback) {                                                                                      \n   var responseData;                                                                                                                                                                                                  \n   try{                                                                                                                                                                                                               \n           jQuery.ajax({                                                                                                                                                                                              \n                   url: widgetUrl,                                                                                                                                                                                            \n                   method: \"GET\",                                                                                                                                                                                                   \n                   xhrFields: {                                                                                                                                                                                                       \n                           withCredentials: true                                                                                                                                                                              \n                   },    \n                        crossDomain: true,                      \n                      success: function (result) {                                                                                                                                                                               \n                           if (result.isOk == false){                                                                                                                                                                         \n                                                                                                                                                                                                                              \n                           }else{                                                                                                                                                                                             \n                                   callback(result);                                                                                                                                                                                          \n                           }                                                                                                                                                                                                  \n                   }                                                                                                                                                                                                  \n           });                                                                                                                                                                                                \n   }                                                                                                                                                                                                                  \n   catch(e){                                                                                                                                                                                                          \n   \n      }                                                                                                                                                                                                                  \n                                                                                                                                                                                      \n   }                                                                                                   \n  \n      function getMarkupContent(markupLocation, callback){                                                                             \n                                                                                                                                        \n           try{\n                  jQuery.ajax({                                                                                                              \n                   url: markupLocation,\n                  method: \"GET\",   \n                   xhrFields: {                                                                                                                                                                                                       \n                                   withCredentials: true                                                                                                                                                                              \n                           },   \n                         crossDomain: true,              \n                      success: function (result) {                                                                                           \n                           if (result.isOk == false){                                                                                         \n                                                                                                                                              \n                           }else{                                                                                                             \n                               callback(result);                                                                                   \n                                  }                                                                                                                  \n                   }                                                                                                        \n                     });       \n            }\n             catch(e){\n                     \n              }\n     }                                                                                                                              \n                                                                                                                                      \n       function renderWidget(data, location, $controllerProvider) {                                                                   \n               var div = document.createElement(\'div\');                                                                                   \n         getMarkupContent(Portal2Widget.commonUrl + \"/markup/\" + Portal2Widget.widgetName, function(div){\n                    location.append(div);                                                                                                      \n                   Portal2Widget.widgetData = data;\n                      app.controllerProvider.register(Portal2Widget.controllerName, Portal2Widget.controller);                                           \n                   var mController = angular.element(document.getElementById(\"widgets\"));                                                   \n                   mController.scope().activateThis(location);   \n                });\n           \n      }                                                                                                                              \n                                                                                                                                      \n       function printAllArtifacts(moduleName, controllerName) {                                                                       \n           var queue = angular.module(moduleName)._invokeQueue;                                                                       \n           for(var i=0;i<queue.length;i++) {                                                                                          \n               var call = queue[i];                                                                                                   \n               console.log(i + \'. \' + call[0] + \' - \' + call[1] + \' - \' + call[2][0]);                                                \n     }                                                                                                                          \n       }                                                                                                                              \n                                                                                                                                      \n       function get(name){                                                                                                            \n          if(name=(new RegExp(\'[?&]\'+encodeURIComponent(name)+\'=([^&]*)\')).exec(location.search))                                     \n         return decodeURIComponent(name[1]);                                                                                      \n       }                                                                                                                              \n                                                                                                                                   \n  loadSupportingFiles(function() {                                                                                               \n               loadStylesheet(Portal2Widget.commonUrl + \'/\' + Portal2Widget.widgetName + \'/style.css\');                                           \n               loadScript(Portal2Widget.commonUrl + \'/\' + Portal2Widget.widgetName + \'/controller.js\',                                            \n                       function() {                                                                                                           \n                               $(\'[\'+ Portal2Widget.recipientDivDataAttrib + \']\').each(function() {                                                   \n                                   var location = jQuery(this);                                                                                   \n                                       location.removeAttr(Portal2Widget.recipientDivDataAttrib);                                                         \n                                   var id = location.attr(Portal2Widget.recipientDivDataAttrib);                                                      \n                                   getWidgetData(Portal2Widget.serviceURL, function(data) { \n                                             isCssReady(function(){                                                                                     \n                                                   renderWidget(data, location);                                                                          \n                                               });                                                                                                                                        \n                                   });                                                                                                            \n                               });                                                                                                                \n                   }                                                                                                                      \n               );                                                                                                                         \n   });                                                                                                                            \n                                                                                                                                      \n       return Portal2Widget;                                                                                                              \n})(window);                                                                                                                        \n                              ','Portal2Widget.controller = function Portal2Ctrl($rootScope, applicationsService , $log,\n                    $window, userProfileService, $scope, $cookies, $timeout, $interval,\n                   $uibModal, dashboardService, ngDialog) {Portal2Widget=Portal2Widget||{};var res = Portal2Widget.widgetData;\n           var _this = this;\n\n           //activate spinner\n            this.isLoading = true;\n                $scope.getUserAppsIsDone = false;\n             this.userProfileService = userProfileService;\n         $scope.demoNum = 1;\n           $scope.event_content_show = false;\n            $scope.widgetData = [];\n\n             $scope.editWidgetModalPopup = function(availableData, resourceType) {\n\n                       $scope.editData = JSON.stringify(availableData);\n                      $scope.availableDataTemp = $scope.availableData;\n                      \n              };\n            /*Setting News data*/\n         $scope.eventData = [];\n                $scope.updateEvents = function() {\n\n                  $scope.eventData.length=0;\n                    //dashboardService.getCommonWidgetData(\'EVENTS\').then(function(res) {\n                               var eventDataJsonArray = res.response.items;    \n                              for (var i = 0; i < eventDataJsonArray.length; i++) {\n                                 if(eventDataJsonArray[i].eventDate !=null) {\n                                          // yyyy-mm-dd\n                                         eventDataJsonArray[i].year = eventDataJsonArray[i].eventDate.substring(2,4);\n                                          eventDataJsonArray[i].mon  = eventDataJsonArray[i].eventDate.substring(5,7);\n                                          eventDataJsonArray[i].day  = eventDataJsonArray[i].eventDate.substring(8,10);\n                                 }\n                                     $scope.eventData.push(eventDataJsonArray[i]);\n                         }\n                     //})[\'catch\'](function(err) {\n                       //      $log.error(\'dashboard controller: failed to get Events list\', err);\n                 //      _this.isLoading = false;\n                      //});\n         }\n             $scope.updateEvents();\n\n\n    }\n;Portal2Widget.controller.$inject = [\'$rootScope\',\'applicationsService\',\'$log\',\'$window\',\'userProfileService\',\'$scope\',\'$cookies\',\'$timeout\',\'$interval\',\'$uibModal\',\'dashboardService\',\'ngDialog\'];','<div  id=\"widget-events\" ng-controller=\"Portal2Ctrl\" class=\"widget-news-main\">\n                <div att-gridster-item-body\n                   class=\"information-section-gridsterContent\">\n                        <div class=\"events\">\n                                <ul ng-show=\"eventData.length!=0\">\n                                  <li ng-repeat=\"event in eventData\">\n                                         <div ng-click=\"event_content_show=!event_content_show\">\n                                                     <div class=\"events-date\">{{event.mon}}/{{event.day}}/{{event.year}}\n                                                 </div>\n                                                        <div>\n                                                         <div class=\"event-title-div\">\n                                                                       <p ng-bind=\"event.title\"></p>\n                                                               </div>\n                                                                <div>\n                                                                 <span class=\"icon-chevron-up\" ng-if=\"event_content_show\"\n                                                                          style=\"color: #888; font-size: 22px;\"></span> <span\n                                                                         class=\"icon-chevron-down\" ng-if=\"!event_content_show\"\n                                                                             style=\"color: #888; font-size: 22px;\"></span>\n\n                                                             </div>\n                                                                <div style=\"clear: both;\"></div>\n                                                    </div>\n                                                </div>\n                                                <div class=\"events-content\" ng-show=\"event_content_show\">\n                                                 <div class=\"events-content-body\">\n                                                           <a id=\"event-widget-{{event.id}}\" class=\"events-link\" ng-href=\"{{event.href}}\"\n                                                                  target=\"_blank\"> <span ng-bind=\"event.content\"></span>\n                                                            </a>\n                                                  </div>\n                                                        <div></div>\n                                           </div>\n                                        </li>\n\n\n                             </ul>\n                         <div ng-hide=\"eventData.length!=0\">\n                                 <div class=\"activity-error-container\"\n                                               style=\"background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;\">\n                                          <div class=\"activity-error-block\">\n                                                  <i class=\"icon-information full-linear-icon-information\"\n                                                            style=\"margin-left: 125px; font-size: 90px\"></i> <br>\n                                                       <div class=\"activity-error-msg1\">There\'s currently no\n                                                              event available.</div>\n                                                </div>\n                                        </div>\n                                </div>\n                        </div>\n          </div>\n</div>\n','\n.portal-widget-panel-container {\n       margin-left:150px;\n    width:1500px;\n}\n\n\n.portal-widget-panel-fixed-panel {\n  min-height: 300px;\n  max-height: 1300px;\n  overflow: auto;\n}\n\n.portal-widget-panel-double-middle {\n  min-height: 660px;\n  max-height: 660px;\n  overflow: auto;\n}\n\n.portal-widget-panel-row {\n    margin-right: 0px;\n    margin-left:  0px;\n    width: 2800px;\n}\n\n/*Increases the width of the card/panel */\n.portal-widget-panel-panel-default {\n        width:450px\n}\n\n/*Controls the spacing between the cards */\n.portal-widget-panel-col-sm-3 {\n        width:20.5%\n}\n\n.portal-widget-panel-top {\n    top: 15px;\n  left: 15px;\n}\n\n#portal2-css-ready {\ncolor: #bada55 !important;\n}'),(3,3,'Resources','var Portal3Widget = (function(window, undefined) {                                                                                      \n                                                                                                                                    \n      var Portal3Widget = Portal3Widget || {};                                                                                                \n      function extractHostPortApp(src) {                                                                                                  \n          \n              Portal3Widget.microserviceId = 3;                                                                                 \n            Portal3Widget.pathArray = src.split( \'/\' );                                                                                     \n                    \n              Portal3Widget.widgetName = 3;\n         Portal3Widget.serviceSeperator = Portal3Widget.pathArray[Portal3Widget.pathArray.length - 4];                                           \n              Portal3Widget.commonUrl = src.substring(0, src.lastIndexOf(\"/\" + Portal3Widget.pathArray[Portal3Widget.pathArray.length - 2]));       \n              \n              Portal3Widget.recipientDivDataAttrib = \'data-\' + Portal3Widget.widgetName;                                                          \n                Portal3Widget.controllerName = \'Portal3Ctrl\';                                                                                     \n          Portal3Widget.readyCssFlag = \'portal3-css-ready\';                                                                                       \n            Portal3Widget.readyCssFlagExpectedValue = \'#bada55\';                                                                            \n            Portal3Widget.serviceURL = src.substring(0, src.lastIndexOf(\"/\" + Portal3Widget.serviceSeperator)) + \'/portalApi/microservice/proxy/parameter/\' + 3;  \n    }                                  \n   \n      extractHostPortApp(document.getElementsByTagName(\'script\')[0].src);\n \n      function loadStylesheet(url) {                                                                                                 \n               var link = document.createElement(\'link\');                                                                                 \n         link.rel = \'stylesheet\';                                                                                                   \n         link.type = \'text/css\';                                                                                                    \n         link.href = url;                                                                                                           \n           var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(link, entry);                                                                                \n   }                                                                                                                              \n                                                                                                                                   \n  function isCssReady(callback) {                                                                                                \n               var testElem = document.createElement(\'span\');                                                                             \n         testElem.id = Portal3Widget.readyCssFlag;                                                                                          \n           testElem.style = \'color: #fff\';                                                                       \n              var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(testElem, entry);                                                                            \n                                                                                                                                  \n               (function poll() {                                                                                                         \n                   var node = document.getElementById(\'css-ready\');                                                                       \n                     var value;                                                                                                             \n                       if (window.getComputedStyle) {                                                                                         \n                               value = document.defaultView.getComputedStyle(testElem, null)                                                      \n                                           .getPropertyValue(\'color\');                                                                                \n                 }                                                                                                                      \n                       else if (node.currentStyle) {                                                                                          \n                               value = node.currentStyle.color;                                                                                   \n                   }                                                                                                                      \n                       if (value && value === \'rgb(186, 218, 85)\' || value.toLowerCase() === Portal3Widget.readyCssFlagExpectedValue) {           \n                         callback();                                                                                                        \n                   } else {                                                                                                               \n                               setTimeout(poll, 500);                                                                                             \n                   }                                                                                                                      \n               })();                                                                                                                      \n   }                                                                                                                              \n                                                                                                                                      \n       function injectCss(css) {                                                                                                      \n               var style = document.createElement(\'style\');                                                                               \n         style.type = \'text/css\';                                                                                                   \n                 css = css.replace(/\\}/g, \"}\\n\");                                                                                           \n                                                                                                                                      \n               if (style.styleSheet) {                                                                                                    \n                   style.styleSheet.cssText = css;                                                                                        \n               } else {                                                                                                                   \n                   style.appendChild(document.createTextNode(css));                                                                       \n               }                                                                                                                          \n           var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(style, entry);                                                                               \n   }                                                                                                                              \n                                                                                                                                      \n       function loadScript(url, callback) {                                                                                           \n               var script = document.createElement(\'script\');                                                                             \n         script.src = url;                                                                                                          \n           \n              var entry = document.getElementsByTagName(\'script\')[0];                                                                    \n         entry.parentNode.insertBefore(script, entry);                                                                              \n           \n              script.onload = script.onreadystatechange = function() {   \n                   var rdyState = script.readyState;                                                                                      \n                       if (!rdyState || /complete|loaded/.test(script.readyState)) {                                                          \n                               callback();                                                                                                        \n                           script.onload = null;                                                                                              \n                           script.onreadystatechange = null;                                                                                  \n                   }                                                                                                                      \n               };                                                                                                                         \n   }                                                                                                                              \n                                                                                                                                   \n  function loadSupportingFiles(callback) {                                                                                       \n               callback();                                                                                                                \n   }                                                                                                                              \n                                                                                                                                      \n       function getWidgetParams() {                                                                                                   \n                                                                                                                                          \n   }                                                                                                                              \n                                                                                                                                      \n       function getWidgetData(widgetUrl, callback) {                                                                                      \n   var responseData;                                                                                                                                                                                                  \n   try{                                                                                                                                                                                                               \n           jQuery.ajax({                                                                                                                                                                                              \n                   url: widgetUrl,                                                                                                                                                                                            \n                   method: \"GET\",                                                                                                                                                                                                   \n                   xhrFields: {                                                                                                                                                                                                       \n                           withCredentials: true                                                                                                                                                                              \n                   },    \n                        crossDomain: true,                      \n                      success: function (result) {                                                                                                                                                                               \n                           if (result.isOk == false){                                                                                                                                                                         \n                                                                                                                                                                                                                              \n                           }else{                                                                                                                                                                                             \n                                   callback(result);                                                                                                                                                                                          \n                           }                                                                                                                                                                                                  \n                   }                                                                                                                                                                                                  \n           });                                                                                                                                                                                                \n   }                                                                                                                                                                                                                  \n   catch(e){                                                                                                                                                                                                          \n   \n      }                                                                                                                                                                                                                  \n                                                                                                                                                                                      \n   }                                                                                                   \n  \n      function getMarkupContent(markupLocation, callback){                                                                             \n                                                                                                                                        \n           try{\n                  jQuery.ajax({                                                                                                              \n                   url: markupLocation,\n                  method: \"GET\",   \n                   xhrFields: {                                                                                                                                                                                                       \n                                   withCredentials: true                                                                                                                                                                              \n                           },   \n                         crossDomain: true,              \n                      success: function (result) {                                                                                           \n                           if (result.isOk == false){                                                                                         \n                                                                                                                                              \n                           }else{                                                                                                             \n                               callback(result);                                                                                   \n                                  }                                                                                                                  \n                   }                                                                                                        \n                     });       \n            }\n             catch(e){\n                     \n              }\n     }                                                                                                                              \n                                                                                                                                      \n       function renderWidget(data, location, $controllerProvider) {                                                                   \n               var div = document.createElement(\'div\');                                                                                   \n         getMarkupContent(Portal3Widget.commonUrl + \"/markup/\" + Portal3Widget.widgetName, function(div){\n                    location.append(div);                                                                                                      \n                   Portal3Widget.widgetData = data;\n                      app.controllerProvider.register(Portal3Widget.controllerName, Portal3Widget.controller);                                           \n                   var mController = angular.element(document.getElementById(\"widgets\"));                                                   \n                   mController.scope().activateThis(location);   \n                });\n           \n      }                                                                                                                              \n                                                                                                                                      \n       function printAllArtifacts(moduleName, controllerName) {                                                                       \n           var queue = angular.module(moduleName)._invokeQueue;                                                                       \n           for(var i=0;i<queue.length;i++) {                                                                                          \n               var call = queue[i];                                                                                                   \n               console.log(i + \'. \' + call[0] + \' - \' + call[1] + \' - \' + call[2][0]);                                                \n     }                                                                                                                          \n       }                                                                                                                              \n                                                                                                                                      \n       function get(name){                                                                                                            \n          if(name=(new RegExp(\'[?&]\'+encodeURIComponent(name)+\'=([^&]*)\')).exec(location.search))                                     \n         return decodeURIComponent(name[1]);                                                                                      \n       }                                                                                                                              \n                                                                                                                                   \n  loadSupportingFiles(function() {                                                                                               \n               loadStylesheet(Portal3Widget.commonUrl + \'/\' + Portal3Widget.widgetName + \'/style.css\');                                           \n               loadScript(Portal3Widget.commonUrl + \'/\' + Portal3Widget.widgetName + \'/controller.js\',                                            \n                       function() {                                                                                                           \n                               $(\'[\'+ Portal3Widget.recipientDivDataAttrib + \']\').each(function() {                                                   \n                                   var location = jQuery(this);                                                                                   \n                                       location.removeAttr(Portal3Widget.recipientDivDataAttrib);                                                         \n                                   var id = location.attr(Portal3Widget.recipientDivDataAttrib);                                                      \n                                   getWidgetData(Portal3Widget.serviceURL, function(data) { \n                                             isCssReady(function(){                                                                                     \n                                                   renderWidget(data, location);                                                                          \n                                               });                                                                                                                                        \n                                   });                                                                                                            \n                               });                                                                                                                \n                   }                                                                                                                      \n               );                                                                                                                         \n   });                                                                                                                            \n                                                                                                                                      \n       return Portal3Widget;                                                                                                              \n})(window);                                                                                                                        \n                              ','Portal3Widget.controller = function Portal3Ctrl($rootScope, applicationsService , $log,\n                    $window, userProfileService, $scope, $cookies, $timeout, $interval,\n                   $uibModal, dashboardService, ngDialog) {Portal3Widget=Portal3Widget||{};var res = Portal3Widget.widgetData;\n           \n              var _this = this;       \n\n            //activate spinner\n            this.isLoading = true;\n                $scope.getUserAppsIsDone = false;\n             this.userProfileService = userProfileService;\n         $scope.demoNum = 1;\n           $scope.event_content_show = false;\n            $scope.widgetData = [];\n\n             $scope.editWidgetModalPopup = function(availableData, resourceType) {\n\n                       $scope.editData = JSON.stringify(availableData);\n                      $scope.availableDataTemp = $scope.availableData;\n                      \n              };\n            \n              /*Setting News data*/\n         $scope.newsData = [];\n         $scope.updateNews = function() {\n                      $scope.newsData.length=0;\n                     //dashboardService.getCommonWidgetData(\'NEWS\').then(function(res) {\n                         // $log.info(res.message);\n                            var newsDataJsonArray = res.response.items;\n                           for (var i = 0; i < newsDataJsonArray.length; i++) {\n                                  $scope.newsData.push(newsDataJsonArray[i]);\n                           }\n                     //})[\'catch\'](function(err) {\n                       //      $log.error(\'dashboard controller: failed to get news list\', err);\n                   //      _this.isLoading = false;\n                      //});\n         }\n             $scope.updateNews();\n\n        }\n\n;Portal3Widget.controller.$inject = [\'$rootScope\',\'applicationsService\',\'$log\',\'$window\',\'userProfileService\',\'$scope\',\'$cookies\',\'$timeout\',\'$interval\',\'$uibModal\',\'dashboardService\',\'ngDialog\'];','<div  id=\"widget-news\" ng-controller=\"Portal3Ctrl\" class=\"widget-news-main\">\n                <div att-gridster-item-body class=\"information-section-gridsterContent\">\n                    <div class=\"resources\">\n                             <ul ng-show=\"newsData.length!=0\">\n                                   <li ng-repeat=\"item in newsData\"><a id=\"resource-widget-{{item.id}}\"\n                                                                                              href=\"{{item.href}}\" target=\"_blank\" ng-bind=\"item.title\"></a></li>\n                             </ul>\n                                                 <div ng-hide=\"newsData.length!=0\">\n                                                          <div class=\"activity-error-container\"\n                                                                       style=\"background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;\">\n                                                                  <div class=\"activity-error-block\">\n                                                                          <i class=\"icon-information full-linear-icon-information\"\n                                                                               style=\"margin-left: 125px; font-size: 90px\"></i> <br>\n                                                                            <div class=\"activity-error-msg1\">There\'s currently no\n                                                                                                              news available.</div>\n                                                                 </div>\n                                                                </div>\n                                        </div>\n                        </div>\n                </div>\n</div>\n','\n.portal-widget-panel-container {\n margin-left:150px;\n    width:1500px;\n}\n\n\n.portal-widget-panel-fixed-panel {\n  min-height: 300px;\n  max-height: 1300px;\n  overflow: auto;\n}\n\n.portal-widget-panel-double-middle {\n  min-height: 660px;\n  max-height: 660px;\n  overflow: auto;\n}\n\n.portal-widget-panel-row {\n    margin-right: 0px;\n    margin-left:  0px;\n    width: 2800px;\n}\n\n/*Increases the width of the card/panel */\n.portal-widget-panel-panel-default {\n        width:450px\n}\n\n/*Controls the spacing between the cards */\n.portal-widget-panel-col-sm-3 {\n        width:20.5%\n}\n\n.portal-widget-panel-top {\n    top: 15px;\n  left: 15px;\n}\n\n#portal3-css-ready {\ncolor: #bada55 !important;\n}');
411 /*!40000 ALTER TABLE `ep_widget_catalog_files` ENABLE KEYS */;
412 UNLOCK TABLES;
413
414 --
415 -- Dumping data for table `fn_app_contact_us`
416 --
417
418 LOCK TABLES `fn_app_contact_us` WRITE;
419 /*!40000 ALTER TABLE `fn_app_contact_us` DISABLE KEYS */;
420 INSERT INTO `fn_app_contact_us` (`app_id`, `contact_name`, `contact_email`, `url`, `active_yn`, `description`) VALUES (2,'Portal SDK Team','portal@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'xDemo Application'),(3,'DBC Team','portal@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'DBC.'),(4,'SDC Team','sdc@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'Service Design and Creation (SDC).'),(5,'Policy Team','policy@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'Policy.'),(6,'VID Team','vid@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'Virtual Infrastructure Design.'),(7,'AAI UI Team','aaiui@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'AAI UI Application'),(8,'CLI Team','onap-discuss@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'CLI Application'),(10,'SO Team','so@lists.onap.org','https://wiki.onap.org/display/DW/Approved+Projects',NULL,'Service Orchestration (SO).');
421 /*!40000 ALTER TABLE `fn_app_contact_us` ENABLE KEYS */;
422 UNLOCK TABLES;
423
424 --
425 -- Dumping data for table `fn_common_widget_data`
426 --
427
428 LOCK TABLES `fn_common_widget_data` WRITE;
429 /*!40000 ALTER TABLE `fn_common_widget_data` DISABLE KEYS */;
430 INSERT INTO `fn_common_widget_data` (`id`, `category`, `href`, `title`, `content`, `event_date`, `sort_order`) VALUES (6,'NEWS','https://www.onap.org/announcement/2017/09/27/open-network-automation-platform-onap-project-continues-rapid-membership-growth','Open Network Automation Platform (ONAP) Project Continues Rapid Membership Growth',NULL,NULL,10),(7,'NEWS','https://www.onap.org/announcement/2017/02/23/the-linux-foundation-announces-the-formation-of-a-new-project-to-help-accelerate-innovation-in-open-networking-automation','The Linux Foundation Announces Merger of Open Source ECOMP and OPEN-O to Form New Open Network Automation Platform (ONAP) Project',NULL,NULL,20),(8,'NEWS','http://about.att.com/story/orange_testing_att_open_source_ecomp_platform.html','Orange Testing AT&Ts Open Source ECOMP Platform for Building Software-Defined Network Capabilities',NULL,NULL,30),(9,'NEWS','http://about.att.com/innovationblog/linux_foundation','Opening up ECOMP: Our Network Operating System for SDN',NULL,NULL,40),(10,'EVENTS','https://onapbeijing2017.sched.com/list/descriptions/','ONAP Beijing Release Developer Forum',NULL,'2017-12-11',1),(11,'EVENTS','https://events.linuxfoundation.org/events/open-networking-summit-north-america-2018','Open Networking Summit',NULL,'2018-03-26',2),(12,'IMPORTANTRESOURCES','http://onap.readthedocs.io/en/latest/guides/onap-developer/developing/index.html','Development Guides',NULL,NULL,1),(13,'IMPORTANTRESOURCES','https://wiki.onap.org/','ONAP Wiki',NULL,NULL,2),(14,'IMPORTANTRESOURCES','http://onap.readthedocs.io/en/latest/guides/onap-developer/developing/index.html#portal-platform','ONAP Portal Documentation',NULL,NULL,3),(15,'IMPORTANTRESOURCES','http://onap.readthedocs.io/en/latest/guides/onap-developer/architecture/index.html#architecture','ONAP Architecture',NULL,NULL,4);
431 /*!40000 ALTER TABLE `fn_common_widget_data` ENABLE KEYS */;
432 UNLOCK TABLES;
433
434
435 --
436 -- Dumping data for table `fn_display_text`
437 --
438
439 LOCK TABLES `fn_display_text` WRITE;
440 /*!40000 ALTER TABLE `fn_display_text` DISABLE KEYS */;
441 INSERT INTO `fn_display_text` (`id`, `language_id`, `text_id`, `text_label`) VALUES (1,1,2,'Home'),(2,1,3,'Application Catalog'),(3,1,4,'Widget Catalog'),(4,1,5,'Admins'),(5,1,6,'Roles'),(6,1,7,'Users'),(7,1,8,'Portal Admins'),(8,1,9,'Application Onboarding'),(9,1,10,'Widget Onboarding'),(10,1,11,'Edit Functional Menu'),(11,1,12,'User Notifications'),(12,1,13,'Microservice Onboarding'),(13,1,15,'App Account Management'),(14,2,2,'主页'),(15,2,3,'应用目录'),(16,2,4,'部件目录'),(17,2,5,'管ç\90†å‘˜'),(18,2,6,'角色'),(19,2,7,'用户'),(20,2,8,'门户管ç\90†å‘˜'),(21,2,9,'应用管ç\90†'),(22,2,10,'部件管ç\90†'),(23,2,11,'编辑功能è\8fœå\8d•'),(24,2,12,'用户通知'),(25,2,13,'å¾®æœ\8d务管ç\90†'),(26,2,15,'应用账户管ç\90†');
442 /*!40000 ALTER TABLE `fn_display_text` ENABLE KEYS */;
443 UNLOCK TABLES;
444
445 --
446 -- Dumping data for table `fn_function`
447 --
448
449 LOCK TABLES `fn_function` WRITE;
450 /*!40000 ALTER TABLE `fn_function` DISABLE KEYS */;
451 INSERT INTO `fn_function` (`function_cd`, `function_name`) VALUES ('edit_notification','User Notification'),('getAdminNotifications','Admin Notifications'),('login','Login'),('menu_admin','Admin Menu'),('menu_ajax','Ajax Menu'),('menu_customer','Customer Menu'),('menu_customer_create','Customer Create'),('menu_feedback','Feedback Menu'),('menu_help','Help Menu'),('menu_home','Home Menu'),('menu_job','Job Menu'),('menu_job_create','Job Create'),('menu_job_designer','Process in Designer view'),('menu_logout','Logout Menu'),('menu_map','Map Menu'),('menu_notes','Notes Menu'),('menu_process','Process List'),('menu_profile','Profile Menu'),('menu_profile_create','Profile Create'),('menu_profile_import','Profile Import'),('menu_reports','Reports Menu'),('menu_sample','Sample Pages Menu'),('menu_tab','Sample Tab Menu'),('menu_task','Task Menu'),('menu_task_search','Task Search'),('menu_web_analytics','Web Analytics'),('saveNotification','publish notifications'),('view_reports','View Raptor reports');
452 /*!40000 ALTER TABLE `fn_function` ENABLE KEYS */;
453 UNLOCK TABLES;
454
455 --
456 -- Dumping data for table `fn_language`
457 --
458
459 LOCK TABLES `fn_language` WRITE;
460 /*!40000 ALTER TABLE `fn_language` DISABLE KEYS */;
461 INSERT INTO `fn_language` (`language_name`, `language_alias`) VALUES ('English','EN'),('简体中文','CN');
462 /*!40000 ALTER TABLE `fn_language` ENABLE KEYS */;
463 UNLOCK TABLES;
464
465 --
466 -- Dumping data for table `fn_lu_activity`
467 --
468
469 LOCK TABLES `fn_lu_activity` WRITE;
470 /*!40000 ALTER TABLE `fn_lu_activity` DISABLE KEYS */;
471 INSERT INTO `fn_lu_activity` (`activity_cd`, `activity`) VALUES ('add_child_role','add_child_role'),('add_role','add_role'),('add_role_function','add_role_function'),('add_user_role','add_user_role'),('apa','Add Portal Admin'),('app_access','App Access'),('dpa','Delete Portal Admin'),('eaaf','External auth add function'),('eaar','External auth add role'),('eadf','External auth delete function'),('eadr','External auth delete role'),('eauf','External auth update function'),('eaurf','External auth update role and function'),('functional_access','Functional Access'),('guest_login','Guest Login'),('left_menu_access','Left Menu Access'),('login','Login'),('logout','Logout'),('mobile_login','Mobile Login'),('mobile_logout','Mobile Logout'),('remove_child_role','remove_child_role'),('remove_role','remove_role'),('remove_role_function','remove_role_function'),('remove_user_role','remove_user_role'),('search','Search'),('tab_access','Tab Access'),('uaa','Update Account Admin'),('uu','Update User');
472 /*!40000 ALTER TABLE `fn_lu_activity` ENABLE KEYS */;
473 UNLOCK TABLES;
474
475 --
476 -- Dumping data for table `fn_lu_alert_method`
477 --
478
479 LOCK TABLES `fn_lu_alert_method` WRITE;
480 /*!40000 ALTER TABLE `fn_lu_alert_method` DISABLE KEYS */;
481 INSERT INTO `fn_lu_alert_method` (`alert_method_cd`, `alert_method`) VALUES ('EMAIL','Email'),('FAX','Fax'),('PAGER','Pager'),('PHONE','Phone'),('SMS','SMS');
482 /*!40000 ALTER TABLE `fn_lu_alert_method` ENABLE KEYS */;
483 UNLOCK TABLES;
484
485 --
486 -- Dumping data for table `fn_lu_menu_set`
487 --
488
489 LOCK TABLES `fn_lu_menu_set` WRITE;
490 /*!40000 ALTER TABLE `fn_lu_menu_set` DISABLE KEYS */;
491 INSERT INTO `fn_lu_menu_set` (`menu_set_cd`, `menu_set_name`) VALUES ('APP','Application Menu');
492 /*!40000 ALTER TABLE `fn_lu_menu_set` ENABLE KEYS */;
493 UNLOCK TABLES;
494
495 --
496 -- Dumping data for table `fn_lu_priority`
497 --
498
499 LOCK TABLES `fn_lu_priority` WRITE;
500 /*!40000 ALTER TABLE `fn_lu_priority` DISABLE KEYS */;
501 INSERT INTO `fn_lu_priority` (`priority_id`, `priority`, `active_yn`, `sort_order`) VALUES (10,'Low',1,10),(20,'Normal',1,20),(30,'High',1,30),(40,'Urgent',1,40),(50,'Fatal',1,50);
502 /*!40000 ALTER TABLE `fn_lu_priority` ENABLE KEYS */;
503 UNLOCK TABLES;
504
505 --
506 -- Dumping data for table `fn_lu_tab_set`
507 --
508
509 LOCK TABLES `fn_lu_tab_set` WRITE;
510 /*!40000 ALTER TABLE `fn_lu_tab_set` DISABLE KEYS */;
511 INSERT INTO `fn_lu_tab_set` (`tab_set_cd`, `tab_set_name`) VALUES ('APP','Application Tabs');
512 /*!40000 ALTER TABLE `fn_lu_tab_set` ENABLE KEYS */;
513 UNLOCK TABLES;
514
515 --
516 -- Dumping data for table `fn_lu_timezone`
517 --
518
519 LOCK TABLES `fn_lu_timezone` WRITE;
520 /*!40000 ALTER TABLE `fn_lu_timezone` DISABLE KEYS */;
521 INSERT INTO `fn_lu_timezone` (`timezone_id`, `timezone_name`, `timezone_value`) VALUES (10,'US/Eastern','US/Eastern'),(20,'US/Central','US/Central'),(30,'US/Mountain','US/Mountain'),(40,'US/Arizona','America/Phoenix'),(50,'US/Pacific','US/Pacific'),(60,'US/Alaska','US/Alaska'),(70,'US/Hawaii','US/Hawaii');
522 /*!40000 ALTER TABLE `fn_lu_timezone` ENABLE KEYS */;
523 UNLOCK TABLES;
524
525 --
526 -- Dumping data for table `fn_menu`
527 --
528
529 LOCK TABLES `fn_menu` WRITE;
530 /*!40000 ALTER TABLE `fn_menu` DISABLE KEYS */;
531 INSERT INTO `fn_menu` (`menu_id`, `label`, `parent_id`, `sort_order`, `action`, `function_cd`, `active_yn`, `servlet`, `query_string`, `external_url`, `target`, `menu_set_cd`, `separator_yn`, `image_src`) VALUES (1,'root',NULL,10,NULL,'menu_home',0,NULL,NULL,NULL,NULL,'APP',0,NULL),(2,'Home',1,10,'root.applicationsHome','menu_home',1,NULL,NULL,NULL,NULL,'APP',0,'icon-building-home'),(3,'Application Catalog',1,15,'root.appCatalog','menu_home',1,NULL,NULL,NULL,NULL,'APP',0,'icon-retail-gallery'),(4,'Widget Catalog',1,20,'root.widgetCatalog','menu_home',1,NULL,NULL,NULL,NULL,'APP',0,'icon-retail-gallery'),(5,'Admins',1,40,'root.admins','menu_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-content-star'),(6,'Roles',1,45,'root.roles','menu_acc_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-people-groupcollaboration'),(7,'Users',1,50,'root.users','menu_acc_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-people-groupcollaboration'),(8,'Portal Admins',1,60,'root.portalAdmins','menu_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-controls-settingsconnectedactivity'),(9,'Application Onboarding',1,70,'root.applications','menu_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-content-grid2'),(10,'Widget Onboarding',1,80,'root.widgetOnboarding','menu_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-content-grid2'),(11,'Edit Functional Menu',1,90,'root.functionalMenu','menu_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-misc-pen'),(12,'User Notifications',1,100,'root.userNotifications','edit_notification',1,NULL,NULL,NULL,NULL,'APP',0,'icon-controls-settingsconnectedactivity'),(13,'Microservice Onboarding',1,110,'root.microserviceOnboarding','menu_admin',1,NULL,NULL,NULL,NULL,'APP',0,'icon-content-grid2'),(15,'App Account Management',1,130,'root.accountOnboarding','menu_admin',1,NULL,NULL,NULL,NULL,'App',0,'icon-content-grid2');
532 /*!40000 ALTER TABLE `fn_menu` ENABLE KEYS */;
533 UNLOCK TABLES;
534
535 --
536 -- Dumping data for table `fn_menu_functional`
537 --
538
539 LOCK TABLES `fn_menu_functional` WRITE;
540 /*!40000 ALTER TABLE `fn_menu_functional` DISABLE KEYS */;
541 INSERT INTO
542   `fn_menu_functional` (
543     `menu_id`,
544     `column_num`,
545     `text`,
546     `parent_menu_id`,
547     `url`,
548     `active_yn`,
549     `image_src`
550   )
551 VALUES
552   (175, 1, 'Manage', NULL, '', 1, NULL),
553   (178, 2, 'Support', NULL, '', 1, NULL),
554   (1, 2, 'Design', 175, '', 1, NULL),
555   (2, 8, 'ECOMP Platform Management', 175, '', 0, NULL),
556   (3, 5, 'Technology Insertion', 175, '', 1, NULL),
557   (5, 7, 'Performance Management', 175, '', 0, NULL),
558   (6, 6, 'Technology Management', 175, '', 1, NULL),
559   (7, 4, 'Capacity Planning', 175, '', 0, NULL),
560   (8, 3, 'Operations Planning', 175, '', 1, NULL),
561   (11, 1, 'Product Design', 1, '', 1, NULL),
562   (12, 2, 'Resource/Service Design & Onboarding', 1, '', 1, NULL),
563   (13, 3, 'Orchestration (recipe/Process) Design', 1, '', 0, NULL),
564   (14, 4, 'Service Graph visualizer', 1, '', 0, NULL),
565   (15, 5, 'Distribution', 1, '', 1, NULL),
566   (16, 6, 'Testing', 1, '', 1, NULL),
567   (17, 7, 'Simulation', 1, '', 0, NULL),
568   (18, 8, 'Certification', 1, '', 0, NULL),
569   (19, 9, 'Policy Creation/Management', 1, 'http://policy.api.simpledemo.onap.org:8443/onap/policy', 1, NULL),
570   (20, 10, 'Catalog Browser', 1, '', 1, NULL),
571   (24, 5, 'Create/Manage Policy', 12, 'http://policy.api.simpledemo.onap.org:8443/onap/policy', 1, NULL),
572   (56, 1, 'Policy Engineering', 8, 'http://policy.api.simpledemo.onap.org:8443/onap/policy', 1, NULL),
573   (115, 1, 'Test/Approve a Resource or Service', 16, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/dashboard', 1, NULL),
574   (130, 1, 'Favorites', 175, '', 1, NULL),
575   (139, 2, 'Approve a Service for distribution', 12, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/dashboard', 1,NULL),
576   (142, 3, 'Create a License model', 12, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/onboardVendor', 1, NULL),
577   (145, 1, 'Distribute a Service', 15, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/dashboard', 1, NULL),
578   (181, 1, 'Contact Us', 178, '', 1, NULL),
579   (184, 2, 'Get Access', 178, '', 1, NULL),
580   (301, 1, 'Create a Product', 11, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/dashboard', 1, NULL),
581   (304, 2, 'Create a Vendor Software Product', 11, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/onboardVendor', 1, NULL),
582   (307, 1, 'Manage a Resource/Service', 20, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/catalog', 1, NULL),
583   (310, 2, 'Manage a Product', 20, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/catalog', 1, NULL),
584         (313, 3, 'View a Resource/Service/Product', 20, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/catalog', 1, NULL),
585         (316, 11, 'Administration', 1, '', 1, NULL),
586         (148, 1, 'User Management / Category Management', 316, 'http://sdc.api.simpledemo.onap.org:8181/sdc1/portal#/adminDashboard', 1, NULL),
587         (317, 1, 'Message Bus Management', 6, 'http://portal.api.simpledemo.onap.org:8989/ECOMPDBCAPP/dbc#/dmaap', 1, NULL),
588         (318, 1, 'Infrastructure Provisioning', 3, '', 1, NULL),
589         (319, 1, 'Infrastructure VNF Provisioning', 318, 'https://vid.api.simpledemo.onap.org:8443/vid/welcome.htm', 1, NULL);
590
591 /*!40000 ALTER TABLE `fn_menu_functional` ENABLE KEYS */;
592 UNLOCK TABLES;
593
594 --
595 -- Dumping data for table `fn_menu_functional_ancestors`
596 --
597
598 LOCK TABLES `fn_menu_functional_ancestors` WRITE;
599 /*!40000 ALTER TABLE `fn_menu_functional_ancestors` DISABLE KEYS */;
600 INSERT INTO `fn_menu_functional_ancestors` (`id`, `menu_id`, `ancestor_menu_id`, `depth`) VALUES (1,175,175,0),(2,178,178,0),(3,11,11,0),(4,12,12,0),(5,13,13,0),(6,14,14,0),(7,15,15,0),(8,16,16,0),(9,17,17,0),(10,18,18,0),(11,19,19,0),(12,20,20,0),(13,316,316,0),(14,318,318,0),(15,317,317,0),(16,56,56,0),(17,301,301,0),(18,304,304,0),(19,24,24,0),(20,139,139,0),(21,142,142,0),(22,145,145,0),(23,115,115,0),(24,307,307,0),(25,310,310,0),(26,313,313,0),(27,1,1,0),(28,2,2,0),(29,3,3,0),(30,5,5,0),(31,6,6,0),(32,7,7,0),(33,8,8,0),(34,130,130,0),(35,181,181,0),(36,184,184,0),(37,148,148,0),(38,319,319,0),(64,11,1,1),(65,12,1,1),(66,13,1,1),(67,14,1,1),(68,15,1,1),(69,16,1,1),(70,17,1,1),(71,18,1,1),(72,19,1,1),(73,20,1,1),(74,316,1,1),(75,318,3,1),(76,317,6,1),(77,56,8,1),(78,301,11,1),(79,304,11,1),(80,24,12,1),(81,139,12,1),(82,142,12,1),(83,145,15,1),(84,115,16,1),(85,307,20,1),(86,310,20,1),(87,313,20,1),(88,1,175,1),(89,2,175,1),(90,3,175,1),(91,5,175,1),(92,6,175,1),(93,7,175,1),(94,8,175,1),(95,130,175,1),(96,181,178,1),(97,184,178,1),(98,148,316,1),(99,319,318,1),(127,301,1,2),(128,304,1,2),(129,24,1,2),(130,139,1,2),(131,142,1,2),(132,145,1,2),(133,115,1,2),(134,307,1,2),(135,310,1,2),(136,313,1,2),(137,148,1,2),(138,319,3,2),(139,11,175,2),(140,12,175,2),(141,13,175,2),(142,14,175,2),(143,15,175,2),(144,16,175,2),(145,17,175,2),(146,18,175,2),(147,19,175,2),(148,20,175,2),(149,316,175,2),(150,318,175,2),(151,317,175,2),(152,56,175,2),(158,301,175,3),(159,304,175,3),(160,24,175,3),(161,139,175,3),(162,142,175,3),(163,145,175,3),(164,115,175,3),(165,307,175,3),(166,310,175,3),(167,313,175,3),(168,148,175,3),(169,319,175,3);
601 /*!40000 ALTER TABLE `fn_menu_functional_ancestors` ENABLE KEYS */;
602 UNLOCK TABLES;
603
604 --
605 -- Dumping data for table `fn_menu_functional_roles`
606 --
607
608 LOCK TABLES `fn_menu_functional_roles` WRITE;
609 /*!40000 ALTER TABLE `fn_menu_functional_roles` DISABLE KEYS */;
610 INSERT INTO `fn_menu_functional_roles` (`id`, `menu_id`, `app_id`, `role_id`) VALUES (1,19,5,1007),(2,19,5,1006),(3,24,5,1007),(4,24,5,1006),(5,56,5,1007),(6,56,5,1006),(8,115,4,1004),(9,115,4,1005),(10,139,4,1004),(11,139,4,1005),(12,142,4,1004),(13,142,4,1005),(14,145,4,1004),(15,145,4,1005),(16,148,4,1004),(17,148,4,1005),(18,301,4,1004),(19,301,4,1005),(20,304,4,1004),(21,304,4,1005),(22,307,4,1004),(23,307,4,1005),(24,310,4,1004),(25,310,4,1005),(26,313,4,1004),(27,313,4,1005),(39,319,6,1009),(40,319,6,1008),(42,317,3,1003),(43,317,3,1002);
611 /*!40000 ALTER TABLE `fn_menu_functional_roles` ENABLE KEYS */;
612 UNLOCK TABLES;
613
614 --
615 -- Dumping data for table `fn_qz_job_details`
616 --
617
618 LOCK TABLES `fn_qz_job_details` WRITE;
619 /*!40000 ALTER TABLE `fn_qz_job_details` DISABLE KEYS */;
620 INSERT INTO `fn_qz_job_details` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`, `DESCRIPTION`, `JOB_CLASS_NAME`, `IS_DURABLE`, `IS_NONCONCURRENT`, `IS_UPDATE_DATA`, `REQUESTS_RECOVERY`, `JOB_DATA`) VALUES ('Scheduler_20190808_one','LogJob','AppGroup',NULL,'org.onap.portalapp.scheduler.LogJob','0','1','1','0','��\0\ 5sr\0\15org.quartz.JobDataMap���迩��\ 2\0\0xr\0&org.quartz.utils.StringKeyDirtyFlagMap�\b����](\ 2\0\ 1Z\0\13allowsTransientDataxr\0\1dorg.quartz.utils.DirtyFlagMap\13�.�(v\n�\ 2\0\ 2Z\0\ 5dirtyL\0\ 3mapt\0\ fLjava/util/Map;xp\ 1sr\0\11java.util.HashMap\ 5\a���\16`�\ 3\0\ 2F\0\nloadFactorI\0        thresholdxp?@\0\0\0\0\0\fw\b\0\0\0\10\0\0\0\ 1t\0\ 5unitst\0\ 5bytesx\0'),('Scheduler_20190808_one','PortalSessionTimeoutFeedJob','AppGroup',NULL,'org.onap.portalapp.service.sessionmgt.TimeoutHandler','0','1','1','0','��\0\ 5sr\0\15org.quartz.JobDataMap���迩��\ 2\0\0xr\0&org.quartz.utils.StringKeyDirtyFlagMap�\b����](\ 2\0\ 1Z\0\13allowsTransientDataxr\0\1dorg.quartz.utils.DirtyFlagMap\13�.�(v\n�\ 2\0\ 2Z\0\ 5dirtyL\0\ 3mapt\0\ fLjava/util/Map;xp\0sr\0\11java.util.HashMap\ 5\a���\16`�\ 3\0\ 2F\0\nloadFactorI\0      thresholdxp?@\0\0\0\0\0\10w\b\0\0\0\10\0\0\0\0x\0');
621 /*!40000 ALTER TABLE `fn_qz_job_details` ENABLE KEYS */;
622 UNLOCK TABLES;
623
624 --
625 -- Dumping data for table `fn_qz_locks`
626 --
627
628 LOCK TABLES `fn_qz_locks` WRITE;
629 /*!40000 ALTER TABLE `fn_qz_locks` DISABLE KEYS */;
630 INSERT INTO `fn_qz_locks` (`SCHED_NAME`, `LOCK_NAME`) VALUES ('Scheduler_20190808_one','STATE_ACCESS'),('Scheduler_20190808_one','TRIGGER_ACCESS');
631 /*!40000 ALTER TABLE `fn_qz_locks` ENABLE KEYS */;
632 UNLOCK TABLES;
633
634 --
635 -- Dumping data for table `fn_qz_scheduler_state`
636 --
637
638 LOCK TABLES `fn_qz_scheduler_state` WRITE;
639 /*!40000 ALTER TABLE `fn_qz_scheduler_state` DISABLE KEYS */;
640 INSERT INTO `fn_qz_scheduler_state` (`SCHED_NAME`, `INSTANCE_NAME`, `LAST_CHECKIN_TIME`, `CHECKIN_INTERVAL`) VALUES ('Scheduler_20190808_one','portal-portal-app-76c9f7bfb5-s8rhd1565254283688',1565691615399,20000);
641 /*!40000 ALTER TABLE `fn_qz_scheduler_state` ENABLE KEYS */;
642 UNLOCK TABLES;
643
644 --
645 -- Dumping data for table `fn_qz_triggers`
646 --
647
648 LOCK TABLES `fn_qz_triggers` WRITE;
649 /*!40000 ALTER TABLE `fn_qz_triggers` DISABLE KEYS */;
650 INSERT INTO `fn_qz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `JOB_NAME`, `JOB_GROUP`, `DESCRIPTION`, `NEXT_FIRE_TIME`, `PREV_FIRE_TIME`, `PRIORITY`, `TRIGGER_STATE`, `TRIGGER_TYPE`, `START_TIME`, `END_TIME`, `CALENDAR_NAME`, `MISFIRE_INSTR`, `JOB_DATA`) VALUES ('Scheduler_20190808_one','LogTrigger','AppGroup','LogJob','AppGroup',NULL,1565691660000,1565691600000,0,'WAITING','CRON',1565254275000,0,NULL,0,''),('Scheduler_20190808_one','PortalSessionTimeoutFeedTrigger','AppGroup','PortalSessionTimeoutFeedJob','AppGroup',NULL,1565691900000,1565691600000,0,'WAITING','CRON',1565254275000,0,NULL,0,'');
651 /*!40000 ALTER TABLE `fn_qz_triggers` ENABLE KEYS */;
652 UNLOCK TABLES;
653
654 --
655 -- Dumping data for table `fn_qz_cron_triggers`
656 --
657
658 LOCK TABLES `fn_qz_cron_triggers` WRITE;
659 /*!40000 ALTER TABLE `fn_qz_cron_triggers` DISABLE KEYS */;
660 INSERT INTO `fn_qz_cron_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`, `CRON_EXPRESSION`, `TIME_ZONE_ID`) VALUES ('Scheduler_20190808_one','LogTrigger','AppGroup','0 * * * * ? *','GMT'),('Scheduler_20190808_one','PortalSessionTimeoutFeedTrigger','AppGroup','0 0/5 * * * ? *','GMT');
661 /*!40000 ALTER TABLE `fn_qz_cron_triggers` ENABLE KEYS */;
662 UNLOCK TABLES;
663
664
665 --
666 -- Dumping data for table `fn_restricted_url`
667 --
668
669 LOCK TABLES `fn_restricted_url` WRITE;
670 /*!40000 ALTER TABLE `fn_restricted_url` DISABLE KEYS */;
671 INSERT INTO `fn_restricted_url` (`restricted_url`, `function_cd`) VALUES ('async_test.htm','menu_home'),('attachment.htm','menu_admin'),('broadcast.htm','menu_admin'),('chatWindow.htm','menu_home'),('contact_list.htm','menu_home'),('customer_dynamic_list.htm','menu_home'),('event.htm','menu_home'),('event_list.htm','menu_home'),('file_upload.htm','menu_admin'),('gauge.htm','menu_tab'),('gmap_controller.htm','menu_tab'),('gmap_frame.htm','menu_tab'),('jbpm_designer.htm','menu_job_create'),('jbpm_drools.htm','menu_job_create'),('job.htm','menu_admin'),('map.htm','menu_tab'),('map_download.htm','menu_tab'),('map_grid_search.htm','menu_tab'),('mobile_welcome.htm','menu_home'),('process_job.htm','menu_job_create'),('profile.htm','menu_profile_create'),('raptor.htm','menu_reports'),('raptor.htm','view_reports'),('raptor2.htm','menu_reports'),('raptor_blob_extract.htm','menu_reports'),('raptor_blob_extract.htm','view_reports'),('raptor_email_attachment.htm','menu_reports'),('raptor_search.htm','menu_reports'),('report_list.htm','menu_reports'),('role.htm','menu_admin'),('role_function.htm','menu_admin'),('sample_animated_map.htm','menu_tab'),('sample_map.htm','menu_home'),('sample_map_2.htm','menu_tab'),('sample_map_3.htm','menu_tab'),('tab2_sub1.htm','menu_tab'),('tab2_sub2_link1.htm','menu_tab'),('tab2_sub2_link2.htm','menu_tab'),('tab2_sub3.htm','menu_tab'),('tab3.htm','menu_tab'),('tab4.htm','menu_tab'),('template.jsp','menu_home'),('test.htm','menu_admin');
672 /*!40000 ALTER TABLE `fn_restricted_url` ENABLE KEYS */;
673 UNLOCK TABLES;
674
675
676
677 --
678 -- Dumping data for table `fn_role_composite`
679 --
680
681 LOCK TABLES `fn_role_composite` WRITE;
682 /*!40000 ALTER TABLE `fn_role_composite` DISABLE KEYS */;
683 INSERT INTO `fn_role_composite` (`parent_role_id`, `child_role_id`) VALUES (1,16);
684 /*!40000 ALTER TABLE `fn_role_composite` ENABLE KEYS */;
685 UNLOCK TABLES;
686
687 --
688 -- Dumping data for table `fn_role_function`
689 --
690
691 LOCK TABLES `fn_role_function` WRITE;
692 /*!40000 ALTER TABLE `fn_role_function` DISABLE KEYS */;
693 INSERT INTO `fn_role_function` (`role_id`, `function_cd`) VALUES (1,'login'),(1,'menu_admin'),(1,'menu_ajax'),(1,'menu_customer'),(1,'menu_customer_create'),(1,'menu_feedback'),(1,'menu_help'),(1,'menu_home'),(1,'menu_job'),(1,'menu_job_create'),(1,'menu_logout'),(1,'menu_notes'),(1,'menu_process'),(1,'menu_profile'),(1,'menu_profile_create'),(1,'menu_profile_import'),(1,'menu_reports'),(1,'menu_sample'),(1,'menu_tab'),(16,'login'),(16,'menu_ajax'),(16,'menu_customer'),(16,'menu_customer_create'),(16,'menu_home'),(16,'menu_logout'),(16,'menu_map'),(16,'menu_profile'),(16,'menu_reports'),(16,'menu_tab'),(950,'edit_notification'),(950,'getAdminNotifications'),(950,'saveNotification'),(1010,'menu_web_analytics'),(2115,'menu_web_analytics');
694 /*!40000 ALTER TABLE `fn_role_function` ENABLE KEYS */;
695 UNLOCK TABLES;
696
697 --
698 -- Dumping data for table `fn_shared_context`
699 --
700
701 LOCK TABLES `fn_shared_context` WRITE;
702 /*!40000 ALTER TABLE `fn_shared_context` DISABLE KEYS */;
703 INSERT INTO `fn_shared_context` (`id`, `create_time`, `context_id`, `ckey`, `cvalue`) VALUES (1,'2019-08-08 10:11:18','b999771d~2d60~4638~a670~d47d17219157','USER_FIRST_NAME','Jimmy'),(2,'2019-08-08 10:11:18','b999771d~2d60~4638~a670~d47d17219157','USER_LAST_NAME','Hendrix'),(3,'2019-08-08 10:11:18','b999771d~2d60~4638~a670~d47d17219157','USER_EMAIL','admin@onap.org'),(4,'2019-08-08 10:11:18','b999771d~2d60~4638~a670~d47d17219157','USER_ORG_USERID','jh0003'),(5,'2019-08-08 10:17:47','29cc8f94~5a7d~41f8~b359~432bb903a718','USER_FIRST_NAME','Demo'),(6,'2019-08-08 10:17:47','29cc8f94~5a7d~41f8~b359~432bb903a718','USER_LAST_NAME','User'),(7,'2019-08-08 10:17:47','29cc8f94~5a7d~41f8~b359~432bb903a718','USER_EMAIL','demo@openecomp.org'),(8,'2019-08-08 10:17:47','29cc8f94~5a7d~41f8~b359~432bb903a718','USER_ORG_USERID','demo'),(9,'2019-08-08 11:01:02','7e3ced0a~52a3~492a~be53~2885d2df5a43','USER_FIRST_NAME','Demo'),(10,'2019-08-08 11:01:02','7e3ced0a~52a3~492a~be53~2885d2df5a43','USER_LAST_NAME','User'),(11,'2019-08-08 11:01:02','7e3ced0a~52a3~492a~be53~2885d2df5a43','USER_EMAIL','demo@openecomp.org'),(12,'2019-08-08 11:01:02','7e3ced0a~52a3~492a~be53~2885d2df5a43','USER_ORG_USERID','demo');
704 /*!40000 ALTER TABLE `fn_shared_context` ENABLE KEYS */;
705 UNLOCK TABLES;
706
707 --
708 -- Dumping data for table `fn_tab`
709 --
710
711 LOCK TABLES `fn_tab` WRITE;
712 /*!40000 ALTER TABLE `fn_tab` DISABLE KEYS */;
713 INSERT INTO `fn_tab` (`tab_cd`, `tab_name`, `tab_descr`, `action`, `function_cd`, `active_yn`, `sort_order`, `parent_tab_cd`, `tab_set_cd`) VALUES ('TAB1','Tab 1','Tab 1 Information','tab1.htm','menu_tab',1,10,NULL,'APP'),('TAB2','Tab 2','Tab 2 Information','tab2_sub1.htm','menu_tab',1,20,NULL,'APP'),('TAB2_SUB1','Sub Tab 1','Sub Tab 1 Information','tab2_sub1.htm','menu_tab',1,10,'TAB2','APP'),('TAB2_SUB1_S1','Left Tab 1','Sub - Sub Tab 1 Information','tab2_sub1.htm','menu_tab',1,10,'TAB2_SUB1','APP'),('TAB2_SUB2','Sub Tab 2','Sub Tab 2 Information','tab2_sub2.htm','menu_tab',1,20,'TAB2','APP'),('TAB2_SUB3','Sub Tab 3','Sub Tab 3 Information','tab2_sub3.htm','menu_tab',1,30,'TAB2','APP'),('TAB3','Tab 3','Tab 3 Information','tab3.htm','menu_tab',1,30,NULL,'APP'),('TAB4','Tab 4','Tab 4 Information','tab4.htm','menu_tab',1,40,NULL,'APP');
714 /*!40000 ALTER TABLE `fn_tab` ENABLE KEYS */;
715 UNLOCK TABLES;
716
717 --
718 -- Dumping data for table `fn_tab_selected`
719 --
720
721 LOCK TABLES `fn_tab_selected` WRITE;
722 /*!40000 ALTER TABLE `fn_tab_selected` DISABLE KEYS */;
723 INSERT INTO `fn_tab_selected` (`selected_tab_cd`, `tab_uri`) VALUES ('TAB1','tab1'),('TAB2','tab2_sub1'),('TAB2','tab2_sub2'),('TAB2','tab2_sub3'),('TAB2_SUB1','tab2_sub1'),('TAB2_SUB1_S1','tab2_sub1'),('TAB2_SUB2','tab2_sub2'),('TAB2_SUB3','tab2_sub3'),('TAB3','tab3'),('TAB4','tab4');
724 /*!40000 ALTER TABLE `fn_tab_selected` ENABLE KEYS */;
725 UNLOCK TABLES;
726
727 --
728 -- Dumping data for table `fn_user`
729 --
730
731 LOCK TABLES `fn_user` WRITE;
732 /*!40000 ALTER TABLE `fn_user` DISABLE KEYS */;
733 INSERT INTO
734   `fn_user` (
735     `org_id`,
736     `manager_id`,
737     `first_name`,
738     `middle_name`,
739     `last_name`,
740     `phone`,
741     `fax`,
742     `cellular`,
743     `email`,
744     `address_id`,
745     `alert_method_cd`,
746     `hrid`,
747     `org_user_id`,
748     `org_code`,
749     `login_id`,
750     `login_pwd`,
751     `last_login_date`,
752     `active_yn`,
753     `created_id`,
754     `created_date`,
755     `modified_id`,
756     `modified_date`,
757     `is_internal_yn`,
758     `address_line_1`,
759     `address_line_2`,
760     `city`,
761     `state_cd`,
762     `zip_code`,
763     `country_cd`,
764     `location_clli`,
765     `org_manager_userid`,
766     `company`,
767     `department_name`,
768     `job_title`,
769     `timezone`,
770     `department`,
771     `business_unit`,
772     `business_unit_name`,
773     `cost_center`,
774     `fin_loc_code`,
775     `silo_status`,
776     `language_id`
777   )
778 VALUES
779   (
780     NULL,
781     NULL,
782     'Demo',
783     NULL,
784     'User',
785     NULL,
786     NULL,
787     NULL,
788     'demo@openecomp.org',
789     NULL,
790     NULL,
791     NULL,
792     'demo',
793     NULL,
794     'demo',
795     'demo123',
796     '2019-08-08 12:18:17',
797     1,
798     NULL,
799     '2016-10-14 21:00:00',
800     1,
801     '2019-08-08 12:18:17',
802     0,
803     NULL,
804     NULL,
805     NULL,
806     'NJ',
807     NULL,
808     'US',
809     NULL,
810     NULL,
811     NULL,
812     NULL,
813     NULL,
814     10,
815     NULL,
816     NULL,
817     NULL,
818     NULL,
819     NULL,
820     NULL,
821     1
822   ),(
823     NULL,
824     NULL,
825     'Jimmy',
826     NULL,
827     'Hendrix',
828     NULL,
829     NULL,
830     NULL,
831     'admin@onap.org',
832     NULL,
833     NULL,
834     NULL,
835     'jh0003',
836     NULL,
837     'jh0003',
838     'demo123',
839     '2019-08-08 10:16:11',
840     1,
841     NULL,
842     '2016-10-14 21:00:00',
843     1,
844     '2019-08-08 10:16:11',
845     0,
846     NULL,
847     NULL,
848     NULL,
849     'NJ',
850     NULL,
851     'US',
852     NULL,
853     NULL,
854     NULL,
855     NULL,
856     NULL,
857     10,
858     NULL,
859     NULL,
860     NULL,
861     NULL,
862     NULL,
863     NULL,
864     1
865   ),(
866     NULL,
867     NULL,
868     'Carlos',
869     NULL,
870     'Santana',
871     NULL,
872     NULL,
873     NULL,
874     'designer@onap.org',
875     NULL,
876     NULL,
877     NULL,
878     'cs0008',
879     NULL,
880     'cs0008',
881     'demo123',
882     '2016-10-20 15:11:16',
883     1,
884     NULL,
885     '2016-10-14 21:00:00',
886     1,
887     '2016-10-20 15:11:16',
888     0,
889     NULL,
890     NULL,
891     NULL,
892     'NJ',
893     NULL,
894     'US',
895     NULL,
896     NULL,
897     NULL,
898     NULL,
899     NULL,
900     10,
901     NULL,
902     NULL,
903     NULL,
904     NULL,
905     NULL,
906     NULL,
907     1
908   ),(
909     NULL,
910     NULL,
911     'Joni',
912     NULL,
913     'Mitchell',
914     NULL,
915     NULL,
916     NULL,
917     'tester@onap.org',
918     NULL,
919     NULL,
920     NULL,
921     'jm0007',
922     NULL,
923     'jm0007',
924     'demo123',
925     '2016-10-20 15:11:16',
926     1,
927     NULL,
928     '2016-10-14 21:00:00',
929     1,
930     '2016-10-20 15:11:16',
931     0,
932     NULL,
933     NULL,
934     NULL,
935     'NJ',
936     NULL,
937     'US',
938     NULL,
939     NULL,
940     NULL,
941     NULL,
942     NULL,
943     10,
944     NULL,
945     NULL,
946     NULL,
947     NULL,
948     NULL,
949     NULL,
950     1
951   ),(
952     NULL,
953     NULL,
954     'Steve',
955     NULL,
956     'Regev',
957     NULL,
958     NULL,
959     NULL,
960     'ops@onap.org',
961     NULL,
962     NULL,
963     NULL,
964     'op0001',
965     NULL,
966     'op0001',
967     'demo123',
968     '2016-10-20 15:11:16',
969     1,
970     NULL,
971     '2016-10-14 21:00:00',
972     1,
973     '2016-10-20 15:11:16',
974     0,
975     NULL,
976     NULL,
977     NULL,
978     'NJ',
979     NULL,
980     'US',
981     NULL,
982     NULL,
983     NULL,
984     NULL,
985     NULL,
986     10,
987     NULL,
988     NULL,
989     NULL,
990     NULL,
991     NULL,
992     NULL,
993     1
994   ),(
995     NULL,
996     NULL,
997     'David',
998     NULL,
999     'Shadmi',
1000     NULL,
1001     NULL,
1002     NULL,
1003     'governor@onap.org',
1004     NULL,
1005     NULL,
1006     NULL,
1007     'gv0001',
1008     NULL,
1009     'gv0001',
1010     'demo123',
1011     '2016-10-20 15:11:16',
1012     1,
1013     NULL,
1014     '2016-10-14 21:00:00',
1015     1,
1016     '2016-10-20 15:11:16',
1017     0,
1018     NULL,
1019     NULL,
1020     NULL,
1021     'NJ',
1022     NULL,
1023     'US',
1024     NULL,
1025     NULL,
1026     NULL,
1027     NULL,
1028     NULL,
1029     10,
1030     NULL,
1031     NULL,
1032     NULL,
1033     NULL,
1034     NULL,
1035     NULL,
1036     1
1037   ),(
1038     NULL,
1039     NULL,
1040     'Teddy',
1041     NULL,
1042     'Isashar',
1043     NULL,
1044     NULL,
1045     NULL,
1046     'pm1@onap.org',
1047     NULL,
1048     NULL,
1049     NULL,
1050     'pm0001',
1051     NULL,
1052     'pm0001',
1053     'demo123',
1054     '2016-10-20 15:11:16',
1055     1,
1056     NULL,
1057     '2016-10-14 21:00:00',
1058     1,
1059     '2016-10-20 15:11:16',
1060     0,
1061     NULL,
1062     NULL,
1063     NULL,
1064     'NJ',
1065     NULL,
1066     'US',
1067     NULL,
1068     NULL,
1069     NULL,
1070     NULL,
1071     NULL,
1072     10,
1073     NULL,
1074     NULL,
1075     NULL,
1076     NULL,
1077     NULL,
1078     NULL,
1079     1
1080   ),(
1081     NULL,
1082     NULL,
1083     'Eden',
1084     NULL,
1085     'Rozin',
1086     NULL,
1087     NULL,
1088     NULL,
1089     'ps1@onap.org',
1090     NULL,
1091     NULL,
1092     NULL,
1093     'ps0001',
1094     NULL,
1095     'ps0001',
1096     'demo123',
1097     '2016-10-20 15:11:16',
1098     1,
1099     NULL,
1100     '2016-10-14 21:00:00',
1101     1,
1102     '2016-10-20 15:11:16',
1103     0,
1104     NULL,
1105     NULL,
1106     NULL,
1107     'NJ',
1108     NULL,
1109     'US',
1110     NULL,
1111     NULL,
1112     NULL,
1113     NULL,
1114     NULL,
1115     10,
1116     NULL,
1117     NULL,
1118     NULL,
1119     NULL,
1120     NULL,
1121     NULL,
1122     1
1123   ),(
1124     NULL,
1125     NULL,
1126     'vid1',
1127     NULL,
1128     'user',
1129     NULL,
1130     NULL,
1131     NULL,
1132     'vid1@onap.org',
1133     NULL,
1134     NULL,
1135     NULL,
1136     'vid1',
1137     NULL,
1138     'vid1',
1139     'demo123',
1140     '2016-10-20 15:11:16',
1141     1,
1142     NULL,
1143     '2016-10-14 21:00:00',
1144     1,
1145     '2016-10-20 15:11:16',
1146     0,
1147     NULL,
1148     NULL,
1149     NULL,
1150     'NJ',
1151     NULL,
1152     'US',
1153     NULL,
1154     NULL,
1155     NULL,
1156     NULL,
1157     NULL,
1158     10,
1159     NULL,
1160     NULL,
1161     NULL,
1162     NULL,
1163     NULL,
1164     NULL,
1165     1
1166   ),(
1167     NULL,
1168     NULL,
1169     'vid2',
1170     NULL,
1171     'user',
1172     NULL,
1173     NULL,
1174     NULL,
1175     'vid2@onap.org',
1176     NULL,
1177     NULL,
1178     NULL,
1179     'vid2',
1180     NULL,
1181     'vid2',
1182     'demo123',
1183     '2016-10-20 15:11:16',
1184     1,
1185     NULL,
1186     '2016-10-14 21:00:00',
1187     1,
1188     '2016-10-20 15:11:16',
1189     0,
1190     NULL,
1191     NULL,
1192     NULL,
1193     'NJ',
1194     NULL,
1195     'US',
1196     NULL,
1197     NULL,
1198     NULL,
1199     NULL,
1200     NULL,
1201     10,
1202     NULL,
1203     NULL,
1204     NULL,
1205     NULL,
1206     NULL,
1207     NULL,
1208     1
1209   ),(
1210     NULL,
1211     NULL,
1212     'vid3',
1213     NULL,
1214     'user',
1215     NULL,
1216     NULL,
1217     NULL,
1218     'vid3@onap.org',
1219     NULL,
1220     NULL,
1221     NULL,
1222     'vid3',
1223     NULL,
1224     'vid3',
1225     'demo123',
1226     '2016-10-20 15:11:16',
1227     1,
1228     NULL,
1229     '2016-10-14 21:00:00',
1230     1,
1231     '2016-10-20 15:11:16',
1232     0,
1233     NULL,
1234     NULL,
1235     NULL,
1236     'NJ',
1237     NULL,
1238     'US',
1239     NULL,
1240     NULL,
1241     NULL,
1242     NULL,
1243     NULL,
1244     10,
1245     NULL,
1246     NULL,
1247     NULL,
1248     NULL,
1249     NULL,
1250     NULL,
1251     1
1252   ),(
1253     NULL,
1254     NULL,
1255     'steve',
1256     NULL,
1257     'user',
1258     NULL,
1259     NULL,
1260     NULL,
1261     'steve@onap.org',
1262     NULL,
1263     NULL,
1264     NULL,
1265     'steve',
1266     NULL,
1267     'steve',
1268     'demo123',
1269     '2017-05-19 15:11:16',
1270     1,
1271     NULL,
1272     '2017-05-19 21:00:00',
1273     1,
1274     '2017-05-19 15:11:16',
1275     0,
1276     NULL,
1277     NULL,
1278     NULL,
1279     'NJ',
1280     NULL,
1281     'US',
1282     NULL,
1283     NULL,
1284     NULL,
1285     NULL,
1286     NULL,
1287     10,
1288     NULL,
1289     NULL,
1290     NULL,
1291     NULL,
1292     NULL,
1293     NULL,
1294     1
1295   );
1296
1297 /*!40000 ALTER TABLE `fn_user` ENABLE KEYS */;
1298 UNLOCK TABLES;
1299
1300 --
1301 -- Dumping data for table `ep_pers_user_app_sort`
1302 --
1303
1304 LOCK TABLES `ep_pers_user_app_sort` WRITE;
1305 /*!40000 ALTER TABLE `ep_pers_user_app_sort` DISABLE KEYS */;
1306 INSERT INTO `ep_pers_user_app_sort` (`id`, `user_id`, `sort_pref`) VALUES (1,1,0);
1307 /*!40000 ALTER TABLE `ep_pers_user_app_sort` ENABLE KEYS */;
1308 UNLOCK TABLES;
1309
1310 --
1311 -- Dumping data for table `fn_pers_user_app_sel`
1312 --
1313
1314 LOCK TABLES `fn_pers_user_app_sel` WRITE;
1315 /*!40000 ALTER TABLE `fn_pers_user_app_sel` DISABLE KEYS */;
1316 INSERT INTO `fn_pers_user_app_sel` (`id`, `user_id`, `app_id`, `status_cd`) VALUES (1,1,7,'S'),(2,1,8,'S'),(10,1,10,'S'),(11,1,5,'S');
1317 /*!40000 ALTER TABLE `fn_pers_user_app_sel` ENABLE KEYS */;
1318 UNLOCK TABLES;
1319
1320 --
1321 -- Dumping data for table `fn_audit_log`
1322 --
1323
1324 LOCK TABLES `fn_audit_log` WRITE;
1325 /*!40000 ALTER TABLE `fn_audit_log` DISABLE KEYS */;
1326 INSERT INTO `fn_audit_log` (`log_id`, `user_id`, `activity_cd`, `audit_date`, `comments`, `affected_record_id_bk`, `affected_record_id`) VALUES (1,1,'app_access','2019-08-08 10:18:52','https://aai.ui.simpledemo.onap.org:30220/services/aai/webapp/index.html',NULL,'7'),(2,1,'tab_access','2019-08-08 10:18:52','https://aai.ui.simpledemo.onap.org:30220/services/aai/webapp/index.html?cc=1565259532115',NULL,'7'),(3,1,'tab_access','2019-08-08 10:18:56','Home',NULL,'1'),(4,1,'tab_access','2019-08-08 10:18:59','https://aai.ui.simpledemo.onap.org:30220/services/aai/webapp/index.html?cc=1565259538769',NULL,'7'),(5,1,'app_access','2019-08-08 10:18:59','https://aai.ui.simpledemo.onap.org:30220/services/aai/webapp/index.html',NULL,'7'),(6,1,'tab_access','2019-08-08 10:18:59','https://aai.ui.simpledemo.onap.org:30220/services/aai/webapp/index.html?cc=1565259538769',NULL,'7'),(7,1,'tab_access','2019-08-08 10:19:06','Home',NULL,'1');
1327 /*!40000 ALTER TABLE `fn_audit_log` ENABLE KEYS */;
1328 UNLOCK TABLES;
1329
1330
1331 --
1332 -- Dumping data for table `fn_user_role`
1333 --
1334
1335 LOCK TABLES `fn_user_role` WRITE;
1336 /*!40000 ALTER TABLE `fn_user_role` DISABLE KEYS */;
1337 INSERT INTO `fn_user_role` (`user_id`, `role_id`, `priority`, `app_id`)
1338  VALUES
1339  (1,1,1,1),
1340  (1,950,1,1),
1341  (1,999,1,1),
1342  (1,999,1,2),(1,999,1,3),(1,999,1,4),(1,999,1,5),(1,999,1,6),(1,999,1,7),(1,1000,1,2),(1,1001,1,2),(1,1002,1,3),(1,1004,1,4),(1,1006,1,5),(1,1008,1,6),(2,999,1,4),(2,1004,1,4),(3,16,NULL,4),(3,1005,NULL,4),(4,16,NULL,4),(4,1005,NULL,4),(5,16,NULL,4),(5,1005,NULL,4),(6,16,NULL,4),(6,1005,NULL,4),(7,16,NULL,4),(7,1005,NULL,4),(8,16,NULL,4),(8,1005,NULL,4),(9,16,NULL,6),(9,999,NULL,1),(9,1008,NULL,6),(10,16,NULL,6),(10,1008,NULL,6),(10,1009,NULL,6),(11,16,NULL,6),(12,16,NULL,7),(12,1011,NULL,7),(12,1012,NULL,7);
1343 /*!40000 ALTER TABLE `fn_user_role` ENABLE KEYS */;
1344 UNLOCK TABLES;
1345
1346 --
1347 -- Dumping data for table `schema_info`
1348 --
1349
1350 LOCK TABLES `schema_info` WRITE;
1351 /*!40000 ALTER TABLE `schema_info` DISABLE KEYS */;
1352 /*!40000 ALTER TABLE `schema_info` ENABLE KEYS */;
1353 UNLOCK TABLES;
1354 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1355
1356 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
1357 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
1358 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1359 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1360 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1361 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
1362
1363 -- Dump completed on 2019-08-13 10:20:25