Search in sources :

Example 1 with EmailConfirmMail

use of org.moera.node.mail.EmailConfirmMail in project moera-node by MoeraOrg.

the class ProfileReceptor method updated.

@LiberinMapping
public void updated(ProfileUpdatedLiberin liberin) {
    send(liberin, new ProfileUpdatedEvent());
    send(liberin, new NodeNameChangedEvent(liberin.getNodeName(), liberin.getOptions(), liberin.getAvatar()));
    send(Directions.profileSubscribers(liberin.getNodeId()), new ProfileUpdatedNotification());
    if (!Objects.equals(liberin.getOptions().getString("profile.email"), liberin.getOldEmail())) {
        send(liberin, new EmailConfirmMail());
    }
}
Also used : ProfileUpdatedNotification(org.moera.node.model.notification.ProfileUpdatedNotification) ProfileUpdatedEvent(org.moera.node.model.event.ProfileUpdatedEvent) EmailConfirmMail(org.moera.node.mail.EmailConfirmMail) NodeNameChangedEvent(org.moera.node.model.event.NodeNameChangedEvent) LiberinMapping(org.moera.node.liberin.LiberinMapping)

Aggregations

LiberinMapping (org.moera.node.liberin.LiberinMapping)1 EmailConfirmMail (org.moera.node.mail.EmailConfirmMail)1 NodeNameChangedEvent (org.moera.node.model.event.NodeNameChangedEvent)1 ProfileUpdatedEvent (org.moera.node.model.event.ProfileUpdatedEvent)1 ProfileUpdatedNotification (org.moera.node.model.notification.ProfileUpdatedNotification)1