]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
removed no longer used method + added contact EJB
authorRoland Haeder <roland@mxchange.org>
Tue, 10 May 2016 18:57:46 +0000 (20:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 10 May 2016 18:57:46 +0000 (20:57 +0200)
src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java
src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java

index ece29023b729248c12e827ff016843075f53d3e6..71ad174170840e79c931efb0cceb59d26158219b 100644 (file)
@@ -71,13 +71,6 @@ public interface PizzaContactWebSessionController extends Serializable {
         */
        void updateContactDataFromController (final Contact userContact);
 
-       /**
-        * Adds given email address to list
-        * <p>
-        * @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.
index d1eb853cebff4ff4e2c8f0d64d32ec09fb69d5e9..1e95d03ee4a7d52421c54437df15619ad1b78eca 100644 (file)
@@ -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);