]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2016 12:57:20 +0000 (14:57 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2016 12:59:47 +0000 (14:59 +0200)
- added business method for all contacts
- added business method for all registered email addresses
- added business method to update contact data

src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java

index e79c1210c6b72cb168f2b8d1d96f64e4aeed8539..d8079c1a290288a6f7f8711c308643481439cda1 100644 (file)
@@ -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
+        * <p>
+        * @param contact Contact data to update
+        */
+       void updateContactPersonalData (final Contact contact);
+
+       /**
+        * Returns a list of all found contacts
+        * <p>
+        * @return A list of call contacts
+        */
+       List<Contact> getAllContacts ();
+
+       /**
+        * Returns a list of all registered email addresses.
+        * <p>
+        * @return A list of all email addresses
+        */
+       List<String> getEmailAddressList ();
+
        /**
         * Returns a contact instance which has the given id number.
         * <p>