From fbe7df83d2418907de58c77d91db93674d87e5eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 3 May 2016 13:33:38 +0200 Subject: [PATCH] Contined a bit: - sorted imports - first @Observes then final MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../JobsAddressbookWebSessionBean.java | 4 ++-- .../contact/JobsContactWebSessionBean.java | 4 ++-- .../helper/JobsAdminWebRequestHelper.java | 20 +++++++++---------- .../password/JobsUserPasswordValidator.java | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/java/org/mxchange/jjobs/beans/addressbook/JobsAddressbookWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/addressbook/JobsAddressbookWebSessionBean.java index e232ee8d..1a441914 100644 --- a/src/java/org/mxchange/jjobs/beans/addressbook/JobsAddressbookWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/addressbook/JobsAddressbookWebSessionBean.java @@ -163,7 +163,7 @@ public class JobsAddressbookWebSessionBean implements JobsAddressbookWebSessionC } @Override - public void afterAddressbookLoadedEvent (final @Observes AddressbookLoadedEvent event) { + public void afterAddressbookLoadedEvent (@Observes final AddressbookLoadedEvent event) { // event should not be null if (null == event) { // Throw NPE @@ -196,7 +196,7 @@ public class JobsAddressbookWebSessionBean implements JobsAddressbookWebSessionC } @Override - public void afterLoginEvent (final @Observes UserLoggedInEvent event) { + public void afterLoginEvent (@Observes final UserLoggedInEvent event) { // Is the user logged in? if (null == event) { // Is null diff --git a/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java index e9a8badf..be0be4d9 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java @@ -273,7 +273,7 @@ public class JobsContactWebSessionBean implements JobsContactWebSessionControlle } @Override - public void afterRegistrationEvent (final @Observes UserRegisteredEvent event) { + public void afterRegistrationEvent (@Observes final UserRegisteredEvent event) { // Trace message //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("ContactWebBean:afterRegistration: event={0} - CALLED!", event)); //NOI18N @@ -312,7 +312,7 @@ public class JobsContactWebSessionBean implements JobsContactWebSessionControlle } @Override - public void afterUserLogin (final @Observes UserLoggedInEvent event) { + public void afterUserLogin (@Observes final UserLoggedInEvent event) { // Trace message //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("ContactWebBean:afterUserLogin: event={0} - CALLED!", event)); //NOI18N diff --git a/src/java/org/mxchange/jjobs/beans/helper/JobsAdminWebRequestHelper.java b/src/java/org/mxchange/jjobs/beans/helper/JobsAdminWebRequestHelper.java index fafd21db..50c12e66 100644 --- a/src/java/org/mxchange/jjobs/beans/helper/JobsAdminWebRequestHelper.java +++ b/src/java/org/mxchange/jjobs/beans/helper/JobsAdminWebRequestHelper.java @@ -125,16 +125,6 @@ public class JobsAdminWebRequestHelper implements JobsAdminWebRequestController this.contact = contact; } - @Override - public User getUser () { - return this.user; - } - - @Override - public void setUser (final User user) { - this.user = user; - } - @Override public String getContactUsageMessageKey (final Contact contact) { // The contact must be valid @@ -165,4 +155,14 @@ public class JobsAdminWebRequestHelper implements JobsAdminWebRequestController return messageKey; } + @Override + public User getUser () { + return this.user; + } + + @Override + public void setUser (final User user) { + this.user = user; + } + } diff --git a/src/java/org/mxchange/jjobs/validators/password/JobsUserPasswordValidator.java b/src/java/org/mxchange/jjobs/validators/password/JobsUserPasswordValidator.java index f0187239..636136e5 100644 --- a/src/java/org/mxchange/jjobs/validators/password/JobsUserPasswordValidator.java +++ b/src/java/org/mxchange/jjobs/validators/password/JobsUserPasswordValidator.java @@ -29,17 +29,17 @@ import javax.naming.NamingException; import org.mxchange.jcoreee.validator.string.BaseStringValidator; import org.mxchange.jcoreeelogger.beans.local.logger.Log; import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal; +import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController; import org.mxchange.jusercore.container.login.LoginContainer; import org.mxchange.jusercore.container.login.UserLoginContainer; import org.mxchange.jusercore.model.user.UserUtils; -import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController; /** * A validator for validating passwords (if they match with stored) *

* @author Roland Haeder */ -@FacesValidator (value = "JobsUserPasswordValidator") +@FacesValidator (value = "UserPasswordValidator") public class JobsUserPasswordValidator extends BaseStringValidator implements Validator { /** -- 2.39.5