]> git.mxchange.org Git - jjobs-war.git/commitdiff
Where are these commits? Well, removed it ... again.
authorRoland Haeder <roland@mxchange.org>
Sun, 7 Aug 2016 11:45:35 +0000 (13:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 7 Aug 2016 11:45:35 +0000 (13:45 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java

index c36b44781c5ff901d4d34ac897d11d89e8e78806..c962011be1af3da38a0edef00a4b40d969b0a601 100644 (file)
@@ -35,7 +35,6 @@ import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.ContactSessionBeanRemote;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
 import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController;
@@ -176,27 +175,6 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
                }
        }
 
-       @Override
-       public void afterAdminAddedContact (@Observes final AdminAddedContactEvent event) {
-               // The event must be valid
-               if (null == event) {
-                       // Throw NPE
-                       throw new NullPointerException("event is null"); //NOI18N
-               } else if (event.getAddedContact() == null) {
-                       // Throw again ...
-                       throw new NullPointerException("event.addedContact is null"); //NOI18N
-               } else if (event.getAddedContact().getContactId() == null) {
-                       // ... and again
-                       throw new NullPointerException("event.addedContact.customerId is null"); //NOI18N
-               } else if (event.getAddedContact().getContactId() < 1) {
-                       // Not valid
-                       throw new IllegalArgumentException(MessageFormat.format("event.addedContact.customerId={0} is not valid", event.getAddedContact().getContactId())); //NOI18N //NOI18N
-               }
-
-               // Call other method
-               this.selectableContacts.add(event.getAddedContact());
-       }
-
        @Override
        public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
                // Trace message
@@ -650,9 +628,6 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
                                }
                        }
                }
-
-               // Set contact list
-               this.selectableContacts = allContacts;
        }
 
        @Override
@@ -847,11 +822,6 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
                return user;
        }
 
-       @Override
-       public List<Contact> selectableContacts () {
-               return Collections.unmodifiableList(this.selectableContacts);
-       }
-
        /**
         * Adds user's name to bean's internal list. It also updates the public user
         * list if the user has decided to have a public account,
index f77c20ccb10c2111c0de494c01fa39ec03115c1c..b64268aa82b7e17420fc2e8bc563aa3ef6b23066 100644 (file)
@@ -164,14 +164,6 @@ public interface JobsUserWebSessionController extends Serializable {
         */
        User lookupUserByEmailAddress (final String emailAddress) throws UserEmailAddressNotFoundException;
 
-       /**
-        * Returns a list of all selectable contacts for user creation. Contacts
-        * from already existing users are excluded in this list.
-        * <p>
-        * @return A list of all selectable contacts
-        */
-       List<Contact> selectableContacts ();
-
        /**
         * Creates an instance from all properties
         * <p>