--- /dev/null
+/*
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontacts.contact;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
+
+/**
+ * A remote interface for administrative contact purposes
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+@Remote
+public interface AdminContactSessionBeanRemote extends Serializable {
+
+ /**
+ * Deletes given contact instance
+ * <p>
+ * @param contact Contact instance being deleted
+ */
+ void deleteContactData (final Contact contact);
+
+ /**
+ * 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;
+
+}
import java.io.Serializable;
import java.util.List;
import javax.ejb.Remote;
-import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
/**
@Remote
public interface ContactSessionBeanRemote extends Serializable {
- /**
- * Deletes given contact instance
- * <p>
- * @param contact Contact instance being deleted
- */
- void deleteContactData (final Contact contact);
-
/**
* Checks whether the given email address is already registered. The email
* address should be validated by EmailAddressValidator before calling this
*/
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>