]> git.mxchange.org Git - juser-core.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Sun, 30 Jul 2017 20:13:02 +0000 (22:13 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 30 Jul 2017 20:13:02 +0000 (22:13 +0200)
- added events for when a user name or password should be cleared. Much better
  style than directly clearing it.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jusercore/events/user/clear/password/ClearUserPasswordEvent.java [new file with mode: 0644]
src/org/mxchange/jusercore/events/user/clear/password/ObservableClearUserPasswordEvent.java [new file with mode: 0644]
src/org/mxchange/jusercore/events/user/clear/username/ClearUserNameEvent.java [new file with mode: 0644]
src/org/mxchange/jusercore/events/user/clear/username/ObservableClearUserNameEvent.java [new file with mode: 0644]

diff --git a/src/org/mxchange/jusercore/events/user/clear/password/ClearUserPasswordEvent.java b/src/org/mxchange/jusercore/events/user/clear/password/ClearUserPasswordEvent.java
new file mode 100644 (file)
index 0000000..55cb87c
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.user.clear.password;
+
+/**
+ * An event being fired when a user password should be cleared
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public class ClearUserPasswordEvent implements ObservableClearUserPasswordEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 14_785_787_174_676_291L;
+
+       /**
+        * Default constructor
+        */
+       public ClearUserPasswordEvent () {
+       }
+
+}
diff --git a/src/org/mxchange/jusercore/events/user/clear/password/ObservableClearUserPasswordEvent.java b/src/org/mxchange/jusercore/events/user/clear/password/ObservableClearUserPasswordEvent.java
new file mode 100644 (file)
index 0000000..1a7b8d6
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.user.clear.password;
+
+import java.io.Serializable;
+
+/**
+ * An interface for events being fired when user password should be cleared.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableClearUserPasswordEvent extends Serializable {
+
+}
diff --git a/src/org/mxchange/jusercore/events/user/clear/username/ClearUserNameEvent.java b/src/org/mxchange/jusercore/events/user/clear/username/ClearUserNameEvent.java
new file mode 100644 (file)
index 0000000..007cb6a
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.user.clear.username;
+
+/**
+ * An event being fired when a user name should be cleared.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public class ClearUserNameEvent implements ObservableClearUserNameEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 14_785_787_174_676_291L;
+
+       /**
+        * Default constructor
+        */
+       public ClearUserNameEvent () {
+       }
+
+}
diff --git a/src/org/mxchange/jusercore/events/user/clear/username/ObservableClearUserNameEvent.java b/src/org/mxchange/jusercore/events/user/clear/username/ObservableClearUserNameEvent.java
new file mode 100644 (file)
index 0000000..9c941b1
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2016, 2017 Roland Häder
+ *
+ * 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.user.clear.username;
+
+import java.io.Serializable;
+
+/**
+ * An interface for events being fired when a user name should be cleared.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableClearUserNameEvent extends Serializable {
+
+}