]> git.mxchange.org Git - jcontacts-lib.git/blobdiff - src/org/mxchange/jcontacts/model/contact/ContactSessionBeanRemote.java
Updated copyright year
[jcontacts-lib.git] / src / org / mxchange / jcontacts / model / contact / ContactSessionBeanRemote.java
index 6fdc026c05f9726da1bbfb86f8ecd96738fe6b6c..e9a0d64417896d44e6b4ad73cfa412295ddde5ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 - 2020 Free Software Foundation
+ * Copyright (C) 2016 - 2024 Free Software Foundation
  *
  * 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,6 +19,7 @@ package org.mxchange.jcontacts.model.contact;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
+import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
 
 /**
  * A remote interface for general contact purposes
@@ -40,8 +41,10 @@ public interface ContactSessionBeanRemote extends Serializable {
         *                           contact instance
         * <p>
         * @return Updated contact instance
+        * <p>
+        * @throws ContactNotFoundException If the given contact is not found
         */
-       Contact updateContactData (final Contact contact, final boolean isMobileUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked);
+       Contact updateContactData (final Contact contact, final boolean isMobileUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked) throws ContactNotFoundException;
 
        /**
         * Updates given contact in database. Please note that the id number must be
@@ -51,8 +54,10 @@ public interface ContactSessionBeanRemote extends Serializable {
         * @param contact Contact to update
         * <p>
         * @return Updated contact instance
+        * <p>
+        * @throws ContactNotFoundException If the given contact is not found
         */
-       Contact updateContactData (final Contact contact);
+       Contact updateContactData (final Contact contact) throws ContactNotFoundException;
 
        /**
         * Returns a list of all found contacts