From 88e105acf3c56dad27c69ca0d610fcbfa4d2f713 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 10 May 2016 20:57:46 +0200 Subject: [PATCH] removed no longer used method + added contact EJB --- .../contact/PizzaContactWebSessionController.java | 7 ------- .../beans/user/PizzaUserWebSessionBean.java | 11 ++++++++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java index ece29023..71ad1741 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java @@ -71,13 +71,6 @@ public interface PizzaContactWebSessionController extends Serializable { */ void updateContactDataFromController (final Contact userContact); - /** - * Adds given email address to list - *

- * @param contactEmailAddress Email address to add - */ - void addEmailAddress (final String contactEmailAddress); - /** * Tries to lookup contact by given id number. If the user is not found a * proper exceptions are thrown. diff --git a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java index d1eb853c..1e95d03e 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java @@ -33,9 +33,6 @@ import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import org.mxchange.jcontacts.contact.Contact; -import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber; -import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; -import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; import org.mxchange.jcontacts.contact.ContactSessionBeanRemote; import org.mxchange.jusercore.events.login.UserLoggedInEvent; import org.mxchange.jusercore.events.registration.UserRegisteredEvent; @@ -66,6 +63,11 @@ public class PizzaUserWebSessionBean implements PizzaUserWebSessionController { */ private static final long serialVersionUID = 542_145_347_916L; + /** + * Contact EJB + */ + private ContactSessionBeanRemote contactBean; + /** * General contact controller */ @@ -152,6 +154,9 @@ public class PizzaUserWebSessionBean implements PizzaUserWebSessionController { // Try to lookup this.userBean = (UserSessionBeanRemote) context.lookup("java:global/PizzaService-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N + + // Try to lookup + this.contactBean = (ContactSessionBeanRemote) context.lookup("java:global/PizzaService-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote"); //NOI18N } catch (final NamingException e) { // Throw again throw new FaceletException(e); -- 2.39.5