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=5401ee95a1b887f389c207128b92391581b540bb;hb=230c71614b1d2fb71a8fb482c749ff5a6dad65d8;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..5401ee95 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,70 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -177,6 +218,7 @@ + @@ -187,11 +229,13 @@ + + - + @@ -264,12 +308,12 @@ + class="org.onap.portalapp.portal.domain.EPApp" column="app_id" /> + class="org.onap.portalapp.portal.domain.EPRole" column="role_id" /> - - + + @@ -284,10 +328,10 @@ - - - - + + + + @@ -296,11 +340,11 @@ - + - + @@ -321,6 +365,21 @@ + + + + + + + + + + + + + + + @@ -366,7 +425,7 @@ - + seq_fn_role @@ -385,21 +444,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 +492,30 @@ + + + + + seq_epp_app_role_func + + + + + + + + + + + + + + + + + @@ -461,7 +544,7 @@ lazy="false" cascade="save-update, persist" inverse="true" fetch="select"> + class="org.onap.portalapp.portal.domain.EPUserAppRolesRequestDetail" /> @@ -475,11 +558,36 @@ + class="org.onap.portalapp.portal.domain.EPUserAppRolesRequest"> + + + + + + + + + + + + + + + + + @@ -504,7 +612,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 +789,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 +800,8 @@ ]]> - - + @@ -680,9 +812,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 +1026,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 +1330,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 +1699,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1390,7 +1706,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1398,26 +1713,69 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1425,7 +1783,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1433,7 +1790,6 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name @@ -1441,17 +1797,14 @@ where fn_role.app_id = fn_app.app_id and fn_app.enabled='Y' order by app_name - - + @@ -1459,10 +1812,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 +1821,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 +1830,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 +1838,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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +