Skip to content

feat: ajout des notifications - #16

Open
emt-coder wants to merge 5 commits into
stage_2026from
notifications_preferences
Open

feat: ajout des notifications#16
emt-coder wants to merge 5 commits into
stage_2026from
notifications_preferences

Conversation

@emt-coder

Copy link
Copy Markdown

No description provided.

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faire avec un @ConfigurationProperties comme dans le reste du projet et enlever les @Value

Comment on lines +39 to +45
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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rendre les champs final car on ne les modife pas

Comment on lines +58 to +64
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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pareil les champs final


notificationClient.sendNotification(title, message, idLink, id, channel, priority, targetType);

log.debug("Le mail de {} a été modifié", id);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

espace après l'accolade

@Component
@Aspect
@Slf4j
@Data

@nathancailbourdin nathancailbourdin Jul 8, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

est-ce que le @Data est nécéssaire car on expose pas de getter/setter ? à tester

@emt-coder
emt-coder force-pushed the notifications_preferences branch from 4a72185 to 4510034 Compare August 18, 2026 09:47
@emt-coder
emt-coder force-pushed the notifications_preferences branch from 4510034 to 57acfb3 Compare August 18, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants