]> git.mxchange.org Git - jcontacts-lib.git/blobdiff - src/org/mxchange/jcontacts/model/contact/ContactSessionBeanRemote.java
Changed copyright notice to the FSF, so after my death they will continue my
[jcontacts-lib.git] / src / org / mxchange / jcontacts / model / contact / ContactSessionBeanRemote.java
index dd82f0080576e4b9a3a66d4df318062e6cfb9b61..eb3b10d0b2f17b23d42d8ec446e9e5c49a2fad65 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016, 2017 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,7 +19,6 @@ 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
@@ -29,17 +28,6 @@ import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
 @Remote
 public interface ContactSessionBeanRemote extends Serializable {
 
-       /**
-        * Checks whether the given email address is already registered. The email
-        * address should be validated by EmailAddressValidator before calling this
-        * method.
-        * <p>
-        * @param emailAddress Email address to check
-        * <p>
-        * @return Whether the email address is already registered
-        */
-       boolean isEmailAddressRegistered (final String emailAddress);
-
        /**
         * Checks if the given contact can be found by checking the whole list.
         * <p>
@@ -89,26 +77,4 @@ public interface ContactSessionBeanRemote extends Serializable {
         */
        List<String> allEmailAddresses ();
 
-       /**
-        * Returns a contact instance which has the given id number.
-        * <p>
-        * @param contactId Contact id
-        * <p>
-        * @return Contact instance
-        * <p>
-        * @throws ContactNotFoundException If the contact was not found
-        */
-       Contact findContactById (final Long contactId) throws ContactNotFoundException;
-
-       /**
-        * Returns a contact instance which has the given email address.
-        * <p>
-        * @param emailAddress Email address
-        * <p>
-        * @return Contact instance
-        * <p>
-        * @throws ContactNotFoundException If the contact was not found
-        */
-       Contact findContactByEmailAddress (final String emailAddress) throws ContactNotFoundException;
-
 }