From 913585a8f7171849bc803e9d7bb1ba6f0ff05d84 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 29 Nov 2017 22:22:23 +0300 Subject: www: purge avatar cache from Cloudflare --- .../juick/server/component/UserUpdatedEvent.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 juick-server-web/src/main/java/com/juick/server/component/UserUpdatedEvent.java (limited to 'juick-server-web/src') diff --git a/juick-server-web/src/main/java/com/juick/server/component/UserUpdatedEvent.java b/juick-server-web/src/main/java/com/juick/server/component/UserUpdatedEvent.java new file mode 100644 index 00000000..059aeefd --- /dev/null +++ b/juick-server-web/src/main/java/com/juick/server/component/UserUpdatedEvent.java @@ -0,0 +1,23 @@ +package com.juick.server.component; + +import com.juick.User; +import org.springframework.context.ApplicationEvent; +import org.springframework.lang.NonNull; + +public class UserUpdatedEvent extends ApplicationEvent { + private User user; + /** + * Generated when user is updated (avatar changed, etc). + * + * @param source the object on which the event initially occurred (never {@code null}) + * @param user updated user + */ + public UserUpdatedEvent(@NonNull Object source, User user) { + super(source); + this.user = user; + } + + public User getUser() { + return user; + } +} -- cgit v1.2.3