UserRolesController methods up
[portal.git] / portal-BE / src / main / java / org / onap / portal / dao / fn / FnRoleDao.java
index 66f4758..01bcdfe 100644 (file)
@@ -53,5 +53,8 @@ import org.springframework.transaction.annotation.Transactional;
 public interface FnRoleDao extends JpaRepository<FnRole, Long> {
 
        @Query
-       List<FnRole> retrieveAppRoleByAppRoleIdAndByAppId(final @Param("appId") Long appId,  final @Param("appRoleId") Long appRoleId);
+       List<FnRole> retrieveAppRoleByAppRoleIdAndByAppId(final @Param("appId") Long appId,
+               final @Param("appRoleId") Long appRoleId);
+
+       List<FnRole> getUserRoleOnUserIdAndAppId(final @Param("userId") Long userId, final @Param("appId") Long appId);
 }