]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
added parameter wether cellphone,land-line and/or fax number has been unlinked in...
authorRoland Häder <roland@mxchange.org>
Fri, 22 Apr 2016 09:01:23 +0000 (11:01 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Apr 2016 09:07:29 +0000 (11:07 +0200)
src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java

index c2c973372ab658823f8c02247252754cf2f87888..1fcd47ebe0b92bc4265cddb7e57cdeacdf75c6ce 100644 (file)
@@ -1,66 +1,69 @@
-/*
- * Copyright (C) 2016 Roland Haeder<roland@mxchange.org>
- *
- * 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontacts.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
- * <p>
- * @author Roland Haeder<roland@mxchange.org>
- */
-@Remote
-public interface ContactSessionBeanRemote extends Serializable {
-
-       /**
-        * Updates given contact data
-        * <p>
-        * @param contact Contact data to update
-        * <p>
-        * @return Updated contact instance
-        */
-       Contact 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>
-        * @param contactId Contact id
-        * <p>
-        * @return Contact instance
-        * <p>
-        * @throws ContactNotFoundException If the contact was not found
-        */
-       Contact findContactById (final Long contactId) throws ContactNotFoundException;
-
-}
+/*\r
+ * Copyright (C) 2016 Roland Haeder<roland@mxchange.org>\r
+ *\r
+ * This program is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
+ */\r
+package org.mxchange.jcontacts.contact;\r
+\r
+import java.io.Serializable;\r
+import java.util.List;\r
+import javax.ejb.Remote;\r
+import org.mxchange.jcontacts.exceptions.ContactNotFoundException;\r
+\r
+/**\r
+ * A remote interface for general contact purposes\r
+ * <p>\r
+ * @author Roland Haeder<roland@mxchange.org>\r
+ */\r
+@Remote\r
+public interface ContactSessionBeanRemote extends Serializable {\r
+\r
+       /**\r
+        * Updates given contact data\r
+        * <p>\r
+        * @param contact             Contact data to update\r
+        * @param isCellphoneUnlinked Whether a cellphone entry has been unlinked in contact instance\r
+        * @param isLandlineUnlinked  Whether a land-line entry has been unlinked in contact instance\r
+        * @param isFaxUnlinked       Whether a fax entry has been unlinked in contact instance\r
+        * <p>\r
+        * @return Updated contact instance\r
+        */\r
+       Contact updateContactPersonalData (final Contact contact, final boolean isCellphoneUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked);\r
+\r
+       /**\r
+        * Returns a list of all found contacts\r
+        * <p>\r
+        * @return A list of call contacts\r
+        */\r
+       List<Contact> getAllContacts ();\r
+\r
+       /**\r
+        * Returns a list of all registered email addresses.\r
+        * <p>\r
+        * @return A list of all email addresses\r
+        */\r
+       List<String> getEmailAddressList ();\r
+\r
+       /**\r
+        * Returns a contact instance which has the given id number.\r
+        * <p>\r
+        * @param contactId Contact id\r
+        * <p>\r
+        * @return Contact instance\r
+        * <p>\r
+        * @throws ContactNotFoundException If the contact was not found\r
+        */\r
+       Contact findContactById (final Long contactId) throws ContactNotFoundException;\r
+\r
+}\r