]> git.mxchange.org Git - jcontacts-lib.git/blobdiff - src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java
updated own name and resources
[jcontacts-lib.git] / src / org / mxchange / jcontacts / contact / ContactSessionBeanRemote.java
index d16b40ef05d7d64bba48c728d7e83f4a2d75a04b..8203cc3313f5daf21d11421bd179d48f0c4314f5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Roland Haeder
+ * Copyright (C) 2016 Roland Häder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,13 +19,12 @@ package org.mxchange.jcontacts.contact;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
 import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
 
 /**
  * A remote interface for general contact purposes
  * <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Häder<roland@mxchange.org>
  */
 @Remote
 public interface ContactSessionBeanRemote extends Serializable {
@@ -41,20 +40,6 @@ public interface ContactSessionBeanRemote extends Serializable {
         */
        boolean isEmailAddressRegistered (final String emailAddress);
 
-       /**
-        * Adds (persists) given contact instance, if not found. If successfull, the
-        * field contactId contains the running number, otherwise an exception is
-        * thrown.
-        *
-        * @param contact Contact to be added
-        * <p>
-        * @return Updated contact instance
-        * <p>
-        * @throws org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException
-        * Contact already found
-        */
-       Contact addContact (final Contact contact) throws ContactAlreadyAddedException;
-
        /**
         * Checks if the given contact can be found by checking the whole list.
         * <p>
@@ -68,7 +53,7 @@ public interface ContactSessionBeanRemote extends Serializable {
         * Updates given contact data
         * <p>
         * @param contact Contact data to update
-        * @param isCellphoneUnlinked Whether a cellphone entry has been unlinked in
+        * @param isMobileUnlinked Whether a mobile entry has been unlinked in
         * contact instance
         * @param isLandlineUnlinked Whether a land-line entry has been unlinked in
         * contact instance
@@ -77,11 +62,11 @@ public interface ContactSessionBeanRemote extends Serializable {
         * <p>
         * @return Updated contact instance
         */
-       Contact updateContactData (final Contact contact, final boolean isCellphoneUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked);
+       Contact updateContactData (final Contact contact, final boolean isMobileUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked);
 
        /**
         * Updates given contact in database. Please note that the id number must be
-        * set. This method should also make sure that cellphone, land-line and fix
+        * set. This method should also make sure that mobile, land-line and fix
         * numbers are updated, too.
         * <p>
         * @param contact Contact to update