From 0ee02dd712629a1858864f227b8f0b1264403e2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 Apr 2016 14:57:20 +0200 Subject: [PATCH] Continued a bit: - added business method for all contacts - added business method for all registered email addresses - added business method to update contact data --- .../contact/ContactSessionBeanRemote.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java b/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java index e79c121..d8079c1 100644 --- a/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java @@ -17,6 +17,7 @@ package org.mxchange.jcontacts.contact; import java.io.Serializable; +import java.util.List; import javax.ejb.Remote; import org.mxchange.jcontacts.exceptions.ContactNotFoundException; @@ -28,6 +29,27 @@ import org.mxchange.jcontacts.exceptions.ContactNotFoundException; @Remote public interface ContactSessionBeanRemote extends Serializable { + /** + * Updates given contact data + *

+ * @param contact Contact data to update + */ + void updateContactPersonalData (final Contact contact); + + /** + * Returns a list of all found contacts + *

+ * @return A list of call contacts + */ + List getAllContacts (); + + /** + * Returns a list of all registered email addresses. + *

+ * @return A list of all email addresses + */ + List getEmailAddressList (); + /** * Returns a contact instance which has the given id number. *

-- 2.39.2