Repository navigation
Conversation
| import org.springframework.context.annotation.Bean; | ||
| import org.springframework.context.annotation.Configuration; | ||
|
|
||
| @Configuration |
There was a problem hiding this comment.
Faire avec un @ConfigurationProperties comme dans le reste du projet et enlever les @Value
| String id = uid; | ||
| String title = "MON COMPTE ÉTUDIANT"; | ||
| String message = "Votre mot de passe a été mis à jour"; | ||
| List<Channel> channel = List.of(Channel.WEB); | ||
| String idLink = ""; | ||
| Priority priority = Priority.NORMAL; | ||
| TargetType targetType = TargetType.UID; |
There was a problem hiding this comment.
rendre les champs final car on ne les modife pas
| String id = uid; | ||
| String title = "MON COMPTE ÉTUDIANT"; | ||
| String message = "Votre email a été mis à jour, avec cette adresse : " + newEmail; | ||
| List<Channel> channel = List.of(Channel.WEB); | ||
| String idLink = ""; | ||
| Priority priority = Priority.NORMAL; | ||
| TargetType targetType = TargetType.UID; |
There was a problem hiding this comment.
pareil les champs final
|
|
||
| notificationClient.sendNotification(title, message, idLink, id, channel, priority, targetType); | ||
|
|
||
| log.debug("Le mail de {} a été modifié", id); |
There was a problem hiding this comment.
le log c'est plutot "Notification pour changement de mail de {} envoyée"
|
|
||
| notificationClient.sendNotification(title, message, idLink, id, channel, priority, targetType); | ||
|
|
||
| log.debug("Le mot de passe de {} a été mis à jour", id); |
There was a problem hiding this comment.
le log c'est plutot "Notification pour changement de mot de passe de {} envoyée"
| notificationClient.sendNotification(title, message, idLink, id, channel, priority, targetType); | ||
|
|
||
| log.debug("Le mail de {} a été modifié", id); | ||
| }catch (Exception e) { |
There was a problem hiding this comment.
espace après l'accolade
| notificationClient.sendNotification(title, message, idLink, id, channel, priority, targetType); | ||
|
|
||
| log.debug("Le mot de passe de {} a été mis à jour", id); | ||
| }catch (Exception e) { |
There was a problem hiding this comment.
espace après l'accolade
| @Component | ||
| @Aspect | ||
| @Slf4j | ||
| @Data |
There was a problem hiding this comment.
est-ce que le @Data est nécéssaire car on expose pas de getter/setter ? à tester
4a72185 to
4510034
Compare
4510034 to
57acfb3
Compare
No description provided.