2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
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 General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jshopcore.model.customer;
19 import java.io.Serializable;
20 import org.mxchange.jcore.model.contact.Contact;
23 * A customer interface
25 * @author Roland Haeder<roland@mxchange.org>
27 public interface Customer extends Serializable {
30 * Copies all attributes from other customer object to this
32 * @param customer Source instance
34 public void copyAll (final Customer customer);
37 * Setter for contact instance
39 * @param contact Contact instance
41 public void setContact (final Contact contact);
44 * Getter for contact instance
46 * @return Contact id number
48 public Contact getContact();
51 * Getter for confirmation key
53 * @return Confirmation key
55 public String getCustomerConfirmKey ();
58 * Setter for confirmation key
60 * @param customerConfirmKey Confirmation key
62 public void setCustomerConfirmKey (final String customerConfirmKey);
65 * Getter for "created" timestamp
67 * @return "created" timestamp
69 public String getCustomerCreated ();
72 * Setter for "created" timestamp
74 * @param customerCreated "created" timestamp
76 public void setCustomerCreated (final String customerCreated);
79 * Getter for "locked" timestamp
81 * @return "locked" timestamp
83 public String getCustomerLocked ();
86 * Getter for "locked" timestamp
88 * @param customerLocked "locked" timestamp
90 public void setCustomerLocked (final String customerLocked);
93 * Setter for customer number
95 * @param customerNumber Customer number
97 public void setCustomerNumber (final String customerNumber);
100 * Getter for customer number
102 * @return Customer number
104 public String getCustomerNumber ();
107 * Getter for password hash
109 * @return Password hash
111 public String getCustomerPasswordHash ();
114 * Setter for password hash
116 * @param customerPasswordHash Password hash
118 public void setCustomerPasswordHash (final String customerPasswordHash);
121 * Getter for account status
123 * @return Account status
125 public String getCustomerStatus ();
128 * Setter for account status
130 * @param customerStatus Account status
132 public void setCustomerStatus (final String customerStatus);
135 * Getter for customer id number
137 * @return Customer id number
139 public Long getCustomerId ();
142 * Settte for customer id number
144 * @param customerId Customer id number
146 public void setCustomerId (final Long customerId);