X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-BE-common%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Ffusion%2Form%2FEP.hbm.xml;h=5984710594c435022c3696a361fd3b3b2a5e61ea;hb=24608a9e1450c409dc3870440d29e91cc3a26bb9;hp=bda281c24fa5ce0b40febaee4ee745299e5e8e0d;hpb=b54df0ddd0c6a0372327c5aa3668e5a6458fcd64;p=portal.git diff --git a/ecomp-portal-BE-common/src/main/webapp/WEB-INF/fusion/orm/EP.hbm.xml b/ecomp-portal-BE-common/src/main/webapp/WEB-INF/fusion/orm/EP.hbm.xml index bda281c2..59847105 100644 --- a/ecomp-portal-BE-common/src/main/webapp/WEB-INF/fusion/orm/EP.hbm.xml +++ b/ecomp-portal-BE-common/src/main/webapp/WEB-INF/fusion/orm/EP.hbm.xml @@ -1,29 +1,47 @@ - + @@ -177,6 +195,7 @@ + @@ -191,7 +210,7 @@ - + @@ -264,9 +283,9 @@ + class="org.onap.portalapp.portal.domain.EPApp" column="app_id" /> + class="org.onap.portalapp.portal.domain.EPRole" column="role_id" /> @@ -321,7 +340,12 @@ - + + + + + + @@ -366,7 +390,7 @@ - + seq_fn_role @@ -385,21 +409,21 @@ sort="natural"> + class="org.onap.portalsdk.core.domain.RoleFunction" /> + class="org.onap.portalapp.portal.domain.EPRole" /> + class="org.onap.portalapp.portal.domain.EPRole" /> @@ -433,6 +457,30 @@ + + + + + seq_epp_app_role_func + + + + + + + + + + + + + + + + + @@ -461,7 +509,7 @@ lazy="false" cascade="save-update, persist" inverse="true" fetch="select"> + class="org.onap.portalapp.portal.domain.EPUserAppRolesRequestDetail" /> @@ -475,7 +523,7 @@ + class="org.onap.portalapp.portal.domain.EPUserAppRolesRequest"> @@ -504,7 +552,7 @@ + class="org.onap.portalapp.portal.ecomp.model.SearchResultItem" /> + class="org.onap.portalapp.portal.transport.EpNotificationItem" /> = start_time) + and a.is_for_all_roles = 'N' + ) a + where + ( + a.recv_user_id=:user_id ) union ( - select :user_id user_id, notification_id, is_for_online_users, is_for_all_roles, msg_header, msg_description, msg_source,start_Time, end_time, priority, created_date, creator_ID,active_YN + select :user_id user_id, notification_id, is_for_online_users, is_for_all_roles, msg_header, msg_description, msg_source,start_Time, end_time, priority, created_date,notification_hyperlink, creator_ID,active_YN from ep_notification a where a.notification_id and (end_time is null || SYSDATE() <= end_time ) @@ -656,9 +729,9 @@ and not exists ( - select * from ep_user_notification m where user_id = :user_id and m.notification_id = a.notification_id and is_viewed = 'Y' + select ID,User_ID,notification_ID,is_viewed,updated_time from ep_user_notification m where user_id = :user_id and m.notification_id = a.notification_id and is_viewed = 'Y' ) - order by priority desc, start_Time desc,created_date desc + order by priority desc, created_date desc,start_Time desc ) t, @@ -667,9 +740,8 @@ ]]> - - + @@ -680,9 +752,34 @@ + class="org.onap.portalapp.portal.transport.EpNotificationItemVO" /> + class="org.onap.portalapp.portal.domain.EcompAppRole" /> + class="org.onap.portalapp.portal.transport.EpNotificationItemVO" /> = DATE_ADD(curdate(),INTERVAL-31 DAY)) + or + (start_time is not null and end_time is null and start_time >= DATE_ADD(curdate(),INTERVAL -31 DAY)) + or + (start_time is null and end_time is not null and end_time >= DATE_ADD(curdate(),INTERVAL -31 DAY)) + or + (start_time is not null and end_time is not null and end_time >= DATE_ADD(curdate(),INTERVAL -31 DAY)) + ) + ) a + where + ( + a.recv_user_id=:user_id + ) union ( select :user_id user_id, b.login_id,notification_id, is_for_online_users, is_for_all_roles, msg_header, msg_description,msg_source, start_Time, end_time, priority, a.created_date, - creator_ID, a.active_YN + creator_ID, a.notification_hyperlink,a.active_YN from ep_notification a JOIN fn_user b on b.user_id=a.creator_ID where a.notification_id and a.is_for_all_roles = 'Y' @@ -832,7 +966,7 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name + class="org.onap.portalapp.portal.transport.EpRoleNotificationItem" /> + class="org.onap.portalapp.portal.ecomp.model.AppContactUsItem" /> + class="org.onap.portalapp.portal.ecomp.model.AppContactUsItem" /> + class="org.onap.portalapp.portal.ecomp.model.AppCategoryFunctionsItem" /> + class="org.onap.portalapp.portal.domain.GetAccessResult" /> + + + + + + + + + + + + + + + - + - + - + - + @@ -1092,8 +1270,7 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name - - + - - + - - + - - + - - + - - + + class="org.onap.portalapp.portal.ecomp.model.AppCatalogItem" /> - - - + + + + + + + + + + + + @@ -1382,7 +1633,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1390,7 +1640,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1398,26 +1647,69 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1425,7 +1717,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1433,7 +1724,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1441,17 +1731,14 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name - - + @@ -1459,10 +1746,8 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name - + class="org.onap.portalapp.portal.domain.EPUserAppsSortPreference" /> @@ -1470,10 +1755,8 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name - + class="org.onap.portalapp.portal.domain.EPUserAppsManualSortPreference" /> @@ -1481,7 +1764,7 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name + class="org.onap.portalapp.portal.domain.EPWidgetsManualSortPreference" /> @@ -1489,16 +1772,16 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name + class="org.onap.portalapp.portal.domain.EPUserAppRoles" /> + class="org.onap.portalapp.portal.domain.EPUserAppRolesRequest" /> + class="org.onap.portalapp.portal.domain.EPUserAppRolesRequestDetail" /> + class="org.onap.portalapp.portal.ecomp.model.AppCatalogItem" /> + class="org.onap.portalapp.portal.domain.EPUserAppCatalogRoles" /> - + class="org.onap.portalapp.portal.transport.BusinessCardApplicationRole" /> + + + + = DATE_ADD(end_time,INTERVAL 3 MONTH) + ]]> + + + + + + = DATE_ADD(end_time,INTERVAL 3 MONTH)) + ]]> + + + + + = DATE_ADD(end_time,INTERVAL 3 MONTH)) + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id,password from BasicAuthCredentials + + + + select id,password from MicroserviceData + + + + + + + + + + + +