+++ /dev/null
-/*
- * Copyright (C) 2016, 2017 Roland Häder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.pizzaapplication.beans.contact;
-
-import java.io.Serializable;
-import java.util.List;
-import org.mxchange.jcontacts.model.contact.Contact;
-
-/**
- * An interface for user beans
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public interface PizzaContactWebSessionController extends Serializable {
-
- /**
- * Minimum password length
- */
- public static final Integer MINIMUM_PASSWORD_LENGTH = 5;
-
- /**
- * Getter for email address
- * <p>
- * @return Email address
- */
- String getEmailAddress ();
-
- /**
- * Clears both email address field
- */
- void clearEmailAddresses ();
-
- /**
- * Returns a list of all found contacts
- * <p>
- * @return A list of all contacts.
- */
- List<Contact> allContacts ();
-
- /**
- * Updates all data from bean in given contact instance
- * <p>
- * @param userContact Contact instance to update
- */
- void updateContactDataFromController (final Contact userContact);
-
- /**
- * Creates an instance from all properties
- * <p>
- * @return A contact instance
- */
- Contact createContactInstance ();
-
- /**
- * Getter for controller type
- * <p>
- * @return controller type
- */
- String getControllerType ();
-
- /**
- * Setter for controller type
- * <p>
- * @param controllerType Controller type
- * <p>
- * @deprecated Don't use this method.
- */
- @Deprecated
- void setControllerType (final String controllerType);
-
- /**
- * Checks whether contact instance's email address is used
- * <p>
- * @param contact Contact instance's email address to check
- * <p>
- * @return Whether it is already used
- */
- boolean isEmailAddressRegistered (final Contact contact);
-
- /**
- * Checks whether all required personal data is set
- * <p>
- * @return Whether the required personal data is set
- */
- boolean isRequiredPersonalDataSet ();
-
- /**
- * Checks whether all required personal data is set for changing them
- * <p>
- * @return Whether the required personal data is set
- */
- boolean isRequiredChangePersonalDataSet ();
-
- /**
- * Checks whether same email addresses have been entered
- * <p>
- * @return Whether same email addresses have been entered
- */
- boolean isSameEmailAddressEntered ();
-
- /**
- * Changes logged-in user's personal data if the current password matches
- * and TAC + privacy statement has been accepted.
- * <p>
- * @return New target page
- */
- String doChangePersonalContactData ();
-
-}