From: Roland Häder Date: Wed, 20 Apr 2016 12:57:20 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ee02dd712629a1858864f227b8f0b1264403e2d;p=jcontacts-lib.git Continued a bit: - added business method for all contacts - added business method for all registered email addresses - added business method to update contact data --- 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. *