From: Roland Haeder Date: Sun, 7 Aug 2016 11:45:35 +0000 (+0200) Subject: Where are these commits? Well, removed it ... again. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a7c5c61316e3e9250cfe11d1e49233dfba90d963;p=jjobs-war.git Where are these commits? Well, removed it ... again. Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java index c36b4478..c962011b 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java @@ -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 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, diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java index f77c20cc..b64268aa 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java @@ -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. - *

- * @return A list of all selectable contacts - */ - List selectableContacts (); - /** * Creates an instance from all properties *