aboutsummaryrefslogtreecommitdiff
path: root/juick-server-web/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-11-29 22:22:23 +0300
committerGravatar Vitaly Takmazov2017-11-29 19:41:55 +0000
commit913585a8f7171849bc803e9d7bb1ba6f0ff05d84 (patch)
treedf61d71b750ae4687e58f9f0712593c60f38eef5 /juick-server-web/src/main
parenta32e22d8d8f2bd2dbfde1c066780556d6e1e0026 (diff)
www: purge avatar cache from Cloudflare
Diffstat (limited to 'juick-server-web/src/main')
-rw-r--r--juick-server-web/src/main/java/com/juick/server/component/UserUpdatedEvent.java23
1 files changed, 23 insertions, 0 deletions
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;
+ }
+}