]> git.mxchange.org Git - jjobs-war.git/commitdiff
added parameter 'createContactData'
authorRoland Häder <roland@mxchange.org>
Fri, 13 May 2016 12:57:58 +0000 (14:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 7 Aug 2016 11:06:37 +0000 (13:06 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/register/JobsUserRegisterWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java

index c2456e700528ac184f58dc13eeb96e5d741a0d59..0f1310794deee81d3a82e5ccfad52db05416fd35 100644 (file)
@@ -119,7 +119,7 @@ public class JobsUserRegisterWebSessionBean extends BaseJobsController implement
                }
 
                // Get user instance
-               User user = this.userController.createUserInstance();
+               User user = this.userController.createUserInstance(true);
 
                // Is the user already used?
                if (null == user) {
@@ -193,7 +193,7 @@ public class JobsUserRegisterWebSessionBean extends BaseJobsController implement
                }
 
                // Get user instance
-               User user = this.userController.createUserInstance();
+               User user = this.userController.createUserInstance(false);
 
                // First check if user is not null and user name is not used + if same email address is entered
                if (null == user) {
index 81f5d7b0c22c8b09ff6d9fcae230c2a4dd055414..c36b44781c5ff901d4d34ac897d11d89e8e78806 100644 (file)
@@ -423,7 +423,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public User createUserInstance () {
+       public User createUserInstance (final boolean createContactData) {
                // Trace message
                //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("{0}.createUserInstance: CALLED!", this.getClass().getSimpleName()));
 
index c004b24d82e972a88adfc7969a27153a2939bb5e..f77c20ccb10c2111c0de494c01fa39ec03115c1c 100644 (file)
@@ -19,7 +19,6 @@ package org.mxchange.jjobs.beans.user;
 import java.io.Serializable;
 import java.util.List;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
 import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
 import org.mxchange.jusercore.events.login.UserLoggedInEvent;
 import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
@@ -44,14 +43,6 @@ public interface JobsUserWebSessionController extends Serializable {
         */
        public static final Integer MINIMUM_PASSWORD_LENGTH = 5;
 
-       /**
-        * Observes events being fired when an administrator has added a new
-        * contact.
-        * <p>
-        * @param event Event being fired
-        */
-       void afterAdminAddedContact (final AdminAddedContactEvent event);
-
        /**
         * Event observer for newly added users by adminstrator
         * <p>
@@ -184,9 +175,11 @@ public interface JobsUserWebSessionController extends Serializable {
        /**
         * Creates an instance from all properties
         * <p>
+        * @param createContactData Whether contact data should be created
+        * <p>
         * @return A user instance
         */
-       User createUserInstance ();
+       User createUserInstance (final boolean createContactData);
 
        /**
         * Creates a user instance for login phase