]> git.mxchange.org Git - juser-login-core.git/commitdiff
Added event for user registration
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 09:57:27 +0000 (11:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 09:57:27 +0000 (11:57 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

nbproject/project.properties
src/org/mxchange/jusercore/events/registration/RegisteredUserEvent.java [new file with mode: 0644]
src/org/mxchange/jusercore/events/registration/UserRegisteredEvent.java [new file with mode: 0644]

index 11ab09b4fc6ac3d2baff5c2f973ad258525b1af6..8f9ee4dd655b263afa10ec7b3212b6fd42ee9834 100644 (file)
@@ -42,8 +42,8 @@ javac.classpath=\
     ${file.reference.jcore.jar}:\
     ${file.reference.jcoreee.jar}:\
     ${file.reference.jcontacts-core.jar}:\
-    ${libs.javaee-api-7.0.classpath}:\
-    ${file.reference.commons-codec-1.10.jar}
+    ${file.reference.commons-codec-1.10.jar}:\
+    ${libs.javaee-api-7.0.classpath}
 # Space-separated list of extra javac options
 javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
 javac.deprecation=true
diff --git a/src/org/mxchange/jusercore/events/registration/RegisteredUserEvent.java b/src/org/mxchange/jusercore/events/registration/RegisteredUserEvent.java
new file mode 100644 (file)
index 0000000..0ed99f6
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jusercore.events.registration;
+
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An event, fireed if a new user has registered
+ * <p>
+ * @author Roland Haeder
+ */
+public class RegisteredUserEvent implements UserRegisteredEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 186_956_974_127_691L;
+
+       /**
+        * Newly registered user;
+        */
+       private final User user;
+
+       /**
+        * Constructor with newly registered user
+        * <p>
+        * @param user Newly registered user
+        */
+       public RegisteredUserEvent (final User user) {
+               this.user = user;
+       }
+
+       /**
+        * Getter for user instance
+        * <p>
+        * @return User instance
+        */
+       @Override
+       public User getUser () {
+               return this.user;
+       }
+}
diff --git a/src/org/mxchange/jusercore/events/registration/UserRegisteredEvent.java b/src/org/mxchange/jusercore/events/registration/UserRegisteredEvent.java
new file mode 100644 (file)
index 0000000..5c7adec
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jusercore.events.registration;
+
+import java.io.Serializable;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An event interface, fireed if a new user has registered
+ * <p>
+ * @author Roland Haeder
+ */
+public interface UserRegisteredEvent extends Serializable {
+
+       /**
+        * Getter for user instance
+        * <p>
+        * @return User instance
+        */
+       User getUser ();
+}