From: Roland Häder Date: Sun, 30 Jul 2017 20:13:02 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=52d5a12b3b6149339baf735b92c70c09c3fb5339;p=juser-core.git Continued a bit: - 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 --- 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 index 0000000..55cb87c --- /dev/null +++ b/src/org/mxchange/jusercore/events/user/clear/password/ClearUserPasswordEvent.java @@ -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 . + */ +package org.mxchange.jusercore.events.user.clear.password; + +/** + * An event being fired when a user password should be cleared + *

+ * @author Roland Häder + */ +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 index 0000000..1a7b8d6 --- /dev/null +++ b/src/org/mxchange/jusercore/events/user/clear/password/ObservableClearUserPasswordEvent.java @@ -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 . + */ +package org.mxchange.jusercore.events.user.clear.password; + +import java.io.Serializable; + +/** + * An interface for events being fired when user password should be cleared. + *

+ * @author Roland Häder + */ +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 index 0000000..007cb6a --- /dev/null +++ b/src/org/mxchange/jusercore/events/user/clear/username/ClearUserNameEvent.java @@ -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 . + */ +package org.mxchange.jusercore.events.user.clear.username; + +/** + * An event being fired when a user name should be cleared. + *

+ * @author Roland Häder + */ +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 index 0000000..9c941b1 --- /dev/null +++ b/src/org/mxchange/jusercore/events/user/clear/username/ObservableClearUserNameEvent.java @@ -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 . + */ +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. + *

+ * @author Roland Häder + */ +public interface ObservableClearUserNameEvent extends Serializable { + +}