]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/customer/PizzaCustomerWebSessionController.java
Refactured a lot:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / customer / PizzaCustomerWebSessionController.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Affero General Public License as
6  * published by the Free Software Foundation, either version 3 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Affero General Public License for more details.
13  *
14  * You should have received a copy of the GNU Affero General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.pizzaapplication.beans.customer;
18
19 import java.io.Serializable;
20 import java.util.List;
21 import org.mxchange.jcontacts.contact.Contact;
22 import org.mxchange.jcustomercore.model.customer.Customer;
23
24 /**
25  * An interface for customer beans
26  * <p>
27  * @author Roland Haeder<roland@mxchange.org>
28  */
29 public interface PizzaCustomerWebSessionController extends Serializable {
30
31         /**
32          * Adds customer instance to list. The customer should be an updated
33          * instance (with id number).
34          * <p>
35          * @param customer Customer instance
36          */
37         void addCustomer (final Customer customer);
38
39         /**
40          * Checks whether the given contact is a customer
41          * <p>
42          * @param contact Contact to check
43          *
44          * @return Whether the contact is a customer
45          */
46         boolean isContactFound (final Contact contact);
47
48         /**
49          * All customer
50          * <p>
51          * @return A list of all customer profiles
52          */
53         List<Customer> allCustomers ();
54
55         /**
56          * Checks whether customers are registered
57          * <p>
58          * @return Whether customers are registered
59          */
60         boolean hasCustomers ();
61
62 }