]> git.mxchange.org Git - juser-login-core.git/blobdiff - src/org/mxchange/jusercore/events/user/update/UpdatedUserPersonalDataEvent.java
created new project based on juser-core. this should separate login/registration
[juser-login-core.git] / src / org / mxchange / jusercore / events / user / update / UpdatedUserPersonalDataEvent.java
diff --git a/src/org/mxchange/jusercore/events/user/update/UpdatedUserPersonalDataEvent.java b/src/org/mxchange/jusercore/events/user/update/UpdatedUserPersonalDataEvent.java
deleted file mode 100644 (file)
index 4c85964..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*\r
- * Copyright (C) 2016, 2017 Roland Häder\r
- *\r
- * This program is free software: you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation, either version 3 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
- */\r
-package org.mxchange.jusercore.events.user.update;\r
-\r
-import java.text.MessageFormat;\r
-import org.mxchange.jusercore.model.user.User;\r
-\r
-/**\r
- * An event being fired when the user has updated personal data\r
- * <p>\r
- * @author Roland Häder<roland@mxchange.org>\r
- */\r
-public class UpdatedUserPersonalDataEvent implements ObservableUpdatedUserPersonalDataEvent {\r
-\r
-       /**\r
-        * Serial number\r
-        */\r
-       private static final long serialVersionUID = 14_785_787_174_676_290L;\r
-\r
-       /**\r
-        * Updated user instance\r
-        */\r
-       private final User updatedUser;\r
-\r
-       /**\r
-        * Constructor with updated user instance\r
-        * <p>\r
-        * @param updatedUser Updated user instance\r
-        */\r
-       public UpdatedUserPersonalDataEvent (final User updatedUser) {\r
-               // Is the user instance valid?\r
-               if (null == updatedUser) {\r
-                       // Throw NPE\r
-                       throw new NullPointerException("updatedUser is null"); //NOI18N\r
-               } else if (updatedUser.getUserId() == null) {\r
-                       // Throw NPE again\r
-                       throw new NullPointerException("updatedUser.userId is null"); //NOI18N\r
-               } else if (updatedUser.getUserId() < 1) {\r
-                       // Invalid id number\r
-                       throw new IllegalArgumentException(MessageFormat.format("updatedUser.userId={0} is invalid.", updatedUser.getUserId())); //NOI18N\r
-               }\r
-\r
-               // Set it here\r
-               this.updatedUser = updatedUser;\r
-       }\r
-\r
-       @Override\r
-       public User getUpdatedUser () {\r
-               return this.updatedUser;\r
-       }\r
-\r
-}\r