From 289968e5f692708378dc0541d10f8e4387a638f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Apr 2016 11:01:23 +0200 Subject: [PATCH] added parameter wether cellphone,land-line and/or fax number has been unlinked in contact instance --- .../contact/ContactSessionBeanRemote.java | 135 +++++++++--------- 1 file changed, 69 insertions(+), 66 deletions(-) diff --git a/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java b/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java index c2c9733..1fcd47e 100644 --- a/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/contact/ContactSessionBeanRemote.java @@ -1,66 +1,69 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * 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 . - */ -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 - *

- * @author Roland Haeder - */ -@Remote -public interface ContactSessionBeanRemote extends Serializable { - - /** - * Updates given contact data - *

- * @param contact Contact data to update - *

- * @return Updated contact instance - */ - Contact updateContactPersonalData (final Contact contact); - - /** - * Returns a list of all found contacts - *

- * @return A list of call contacts - */ - List getAllContacts (); - - /** - * Returns a list of all registered email addresses. - *

- * @return A list of all email addresses - */ - List getEmailAddressList (); - - /** - * Returns a contact instance which has the given id number. - *

- * @param contactId Contact id - *

- * @return Contact instance - *

- * @throws ContactNotFoundException If the contact was not found - */ - Contact findContactById (final Long contactId) throws ContactNotFoundException; - -} +/* + * Copyright (C) 2016 Roland Haeder + * + * 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 . + */ +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 + *

+ * @author Roland Haeder + */ +@Remote +public interface ContactSessionBeanRemote extends Serializable { + + /** + * Updates given contact data + *

+ * @param contact Contact data to update + * @param isCellphoneUnlinked Whether a cellphone entry has been unlinked in contact instance + * @param isLandlineUnlinked Whether a land-line entry has been unlinked in contact instance + * @param isFaxUnlinked Whether a fax entry has been unlinked in contact instance + *

+ * @return Updated contact instance + */ + Contact updateContactPersonalData (final Contact contact, final boolean isCellphoneUnlinked, final boolean isLandlineUnlinked, final boolean isFaxUnlinked); + + /** + * Returns a list of all found contacts + *

+ * @return A list of call contacts + */ + List getAllContacts (); + + /** + * Returns a list of all registered email addresses. + *

+ * @return A list of all email addresses + */ + List getEmailAddressList (); + + /** + * Returns a contact instance which has the given id number. + *

+ * @param contactId Contact id + *

+ * @return Contact instance + *

+ * @throws ContactNotFoundException If the contact was not found + */ + Contact findContactById (final Long contactId) throws ContactNotFoundException; + +} -- 2.39.5