- deleteContactData() does now throw ContactNotFoundException, if the given
contact was not found but method was invoked
- renamed getAllContacts() -> allContacts() as this is no pure getter
- renamed getEmailAddressList() -> allEmailAddresses() to follow naming
convention: no getter and no need for "List" suffix, "all" prefix says it
Signed-off-by: Roland Häder <roland@mxchange.org>
import java.io.Serializable;
import javax.ejb.Remote;
import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
+import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
/**
* A remote interface for administrative contact purposes
* Deletes given contact instance
* <p>
* @param contact Contact instance being deleted
+ * <p>
+ * @throws ContactNotFoundException If the contact is not found
*/
- void deleteContactData (final Contact contact);
+ void deleteContactData (final Contact contact) throws ContactNotFoundException;
/**
* Adds (persists) given contact instance, if not found. If successfull, the
* <p>
* @return A list of call contacts
*/
- List<Contact> getAllContacts ();
+ List<Contact> allContacts ();
/**
* Returns a list of all registered email addresses.
* <p>
* @return A list of all email addresses
*/
- List<String> getEmailAddressList ();
+ List<String> allEmailAddresses ();
/**
* Returns a contact instance which has the given id number.