]> git.mxchange.org Git - jshop-core.git/blob - src/org/mxchange/jshopcore/model/customer/Customer.java
Continued:
[jshop-core.git] / src / org / mxchange / jshopcore / model / customer / Customer.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
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.
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 General Public License for more details.
13  *
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/>.
16  */
17 package org.mxchange.jshopcore.model.customer;
18
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jcore.model.contact.Contact;
22
23 /**
24  * A customer interface
25  *
26  * @author Roland Haeder<roland@mxchange.org>
27  */
28 public interface Customer extends Serializable {
29
30         /**
31          * Copies all attributes from other customer object to this
32          *
33          * @param customer Source instance
34          */
35         public void copyAll (final Customer customer);
36
37         /**
38          * Getter for contact instance
39          *
40          * @return Contact id number
41          */
42         public Contact getContact ();
43
44         /**
45          * Setter for contact instance
46          *
47          * @param contact Contact instance
48          */
49         public void setContact (final Contact contact);
50
51         /**
52          * Getter for confirmation key
53          *
54          * @return Confirmation key
55          */
56         public String getCustomerConfirmKey ();
57
58         /**
59          * Setter for confirmation key
60          *
61          * @param customerConfirmKey Confirmation key
62          */
63         public void setCustomerConfirmKey (final String customerConfirmKey);
64
65         /**
66          * Getter for "created" timestamp
67          *
68          * @return "created" timestamp
69          */
70         public Calendar getCustomerCreated ();
71
72         /**
73          * Setter for "created" timestamp
74          *
75          * @param customerCreated "created" timestamp
76          */
77         public void setCustomerCreated (final Calendar customerCreated);
78
79         /**
80          * Getter for customer id number
81          *
82          * @return Customer id number
83          */
84         public Long getCustomerId ();
85
86         /**
87          * Settte for customer id number
88          *
89          * @param customerId Customer id number
90          */
91         public void setCustomerId (final Long customerId);
92
93         /**
94          * Getter for "locked" timestamp
95          *
96          * @return "locked" timestamp
97          */
98         public Calendar getCustomerLocked ();
99
100         /**
101          * Getter for "locked" timestamp
102          *
103          * @param customerLocked "locked" timestamp
104          */
105         public void setCustomerLocked (final Calendar customerLocked);
106
107         /**
108          * Getter for customer number
109          *
110          * @return Customer number
111          */
112         public String getCustomerNumber ();
113
114         /**
115          * Setter for customer number
116          *
117          * @param customerNumber Customer number
118          */
119         public void setCustomerNumber (final String customerNumber);
120
121         /**
122          * Getter for password hash
123          *
124          * @return Password hash
125          */
126         public String getCustomerPasswordHash ();
127
128         /**
129          * Setter for password hash
130          *
131          * @param customerPasswordHash Password hash
132          */
133         public void setCustomerPasswordHash (final String customerPasswordHash);
134
135         /**
136          * Getter for account status
137          *
138          * @return Account status
139          */
140         public String getCustomerStatus ();
141
142         /**
143          * Setter for account status
144          *
145          * @param customerStatus Account status
146          */
147         public void setCustomerStatus (final String customerStatus);
148 }