import java.io.Serializable;
import java.util.Date;
+import java.util.List;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcontacts.contact.gender.Gender;
import org.mxchange.jcountry.data.Country;
*/
public interface AddressbookAdminContactWebRequestController extends Serializable {
+ /**
+ * Adds contact data to database and redirects on success. If the contact is
+ * already found, a proper exception is thrown.
+ * <p>
+ * @return Redirect outcome
+ */
+ String addContact ();
+
+ /**
+ * Returns a list of all found contacts
+ * <p>
+ * @return A list of all contacts.
+ */
+ List<Contact> allContacts ();
+
+ /**
+ * Checks whether there are contacts.
+ * <p>
+ * @return Whether contacts are there
+ */
+ boolean hasContacts ();
+
+ /**
+ * Creates an instance from contact data
+ * <p>
+ * @return New contact instance
+ */
+ Contact createContactInstance ();
+
/**
* Copies given contact's data to this controller
* <p>
*/
void copyContactToController (final Contact contact);
+ /**
+ * Edits cuirrently loaded contact's data in database.
+ * <p>
+ * @return Redirect outcome
+ */
+ String editContactData ();
+
/**
* Getter for cellphone id
* <p>