X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-BE%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportal%2Faop%2Fservice%2FPersUserWidgetServiceAOP.java;h=904e070440c1d9958a5e6fcc14e4d9fb6577050d;hb=f7966b9ae53834f9eb664b81ab2d0a3da3f7a9b5;hp=793266184ed018ce94cb3cb84bfb200d45d0b8c3;hpb=500bd3b761971db9ff11d8583337799c7891185f;p=portal.git diff --git a/portal-BE/src/main/java/org/onap/portal/aop/service/PersUserWidgetServiceAOP.java b/portal-BE/src/main/java/org/onap/portal/aop/service/PersUserWidgetServiceAOP.java index 79326618..904e0704 100644 --- a/portal-BE/src/main/java/org/onap/portal/aop/service/PersUserWidgetServiceAOP.java +++ b/portal-BE/src/main/java/org/onap/portal/aop/service/PersUserWidgetServiceAOP.java @@ -63,9 +63,10 @@ public class PersUserWidgetServiceAOP { this.dataValidator = dataValidator; } - @Before("execution(* org.onap.portal.service.PersUserWidgetService.setPersUserAppValue(..)) && args(user, personalization)") - public void setOnboardingWidget(FnUser user, WidgetCatalogPersonalization personalization) { + @Before("execution(* org.onap.portal.service.PersUserWidgetService.setPersUserAppValue(..)) && args(userId, personalization)") + public void setPersUserAppValue(final long userId, final WidgetCatalogPersonalization personalization) { if (!dataValidator.isValid(personalization)) { + LOGGER.error("IllegalArgumentException for user " + userId); throw new IllegalArgumentException(dataValidator.getConstraintViolationsString(personalization)); } }