]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/customer/CustomerBean.java
More cleanups from TDGP towards EJB
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / customer / CustomerBean.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.pizzaapplication.beans.customer;
18
19 import org.mxchange.jcore.client.Client;
20 import org.mxchange.jcore.contact.gender.Gender;
21 import org.mxchange.jshop.beans.FrameworkBean;
22
23 /**
24  * An interface for customer beans
25  *
26  * @author Roland Haeder
27  */
28 public interface CustomerBean extends FrameworkBean {
29         /**
30          * Some "getter" for translated gender of the contact
31          *
32          * @return Translated / human-readable gender
33          */
34         public String getTranslatedGender ();
35
36         /**
37          * Gender of the contact
38          *
39          * @return the gender
40          */
41         public Gender getGender ();
42
43         /**
44          * Gender of the contact
45          *
46          * @param gender the gender to set
47          */
48         public void setGender (final Gender gender);
49
50         /**
51          * First name
52          *
53          * @return the first name
54          */
55         public String getFirstName ();
56
57         /**
58          * First name
59          *
60          * @param firstName the first name to set
61          */
62         public void setFirstName (final String firstName);
63
64         /**
65          * Family name
66          *
67          * @return the familyName
68          */
69         public String getFamilyName ();
70
71         /**
72          * Family name
73          *
74          * @param familyName the familyName to set
75          */
76         public void setFamilyName (final String familyName);
77
78         /**
79          * Companyname
80          *
81          * @return the companyName
82          */
83         public String getCompanyName ();
84
85         /**
86          * Companyname
87          *
88          * @param companyName the companyName to set
89          */
90         public void setCompanyName (final String companyName);
91
92         /**
93          * Street
94          *
95          * @return the street
96          */
97         public String getStreet ();
98
99         /**
100          * Street
101          *
102          * @param street the street to set
103          */
104         public void setStreet (final String street);
105
106         /**
107          * House number
108          *
109          * @return the houseNumber
110          */
111         public Long getHouseNumber ();
112
113         /**
114          * House number
115          *
116          * @param houseNumber the houseNumber to set
117          */
118         public void setHouseNumber (final Long houseNumber);
119
120         /**
121          * ZIP code
122          *
123          * @return the zipCode
124          */
125         public Long getZipCode ();
126
127         /**
128          * ZIP code
129          *
130          * @param zipCode the zipCode to set
131          */
132         public void setZipCode (final Long zipCode);
133
134         /**
135          * City
136          *
137          * @return the city
138          */
139         public String getCity ();
140
141         /**
142          * City
143          *
144          * @param city the city to set
145          */
146         public void setCity (final String city);
147
148         /**
149          * Country code
150          *
151          * @return the countryCode
152          */
153         public String getCountryCode ();
154
155         /**
156          * Country code
157          *
158          * @param countryCode the countryCode to set
159          */
160         public void setCountryCode (final String countryCode);
161
162         /**
163          * Email address
164          *
165          * @return the emailAddress
166          */
167         public String getEmailAddress ();
168
169         /**
170          * Email address
171          *
172          * @param emailAddress the emailAddress to set
173          */
174         public void setEmailAddress (final String emailAddress);
175
176         /**
177          * Phone number
178          *
179          * @return the phoneNumber
180          */
181         public String getPhoneNumber ();
182
183         /**
184          * Phone number
185          *
186          * @param phoneNumber the phoneNumber to set
187          */
188         public void setPhoneNumber (final String phoneNumber);
189
190         /**
191          * Fax number
192          *
193          * @return the faxNumber
194          */
195         public String getFaxNumber ();
196
197         /**
198          * Fax number
199          *
200          * @param faxNumber the faxNumber to set
201          */
202         public void setFaxNumber (final String faxNumber);
203
204         /**
205          * Cellphone number
206          *
207          * @return the cellphoneNumber
208          */
209         public String getCellphoneNumber ();
210
211         /**
212          * Cellphone number
213          *
214          * @param cellphoneNumber the cellphoneNumber to set
215          */
216         public void setCellphoneNumber (final String cellphoneNumber);
217
218         /**
219          * Birth day
220          *
221          * @return the birthday
222          */
223         public String getBirthday ();
224
225         /**
226          * Birth day
227          *
228          * @param birthday the birthday to set
229          */
230         public void setBirthday (final String birthday);
231
232         /**
233          * Comments
234          *
235          * @return the comment
236          */
237         public String getComment ();
238
239         /**
240          * Comments
241          *
242          * @param comment the comment to set
243          */
244         public void setComment (final String comment);
245
246         /**
247          * Checks whether the contact is user's own data
248          *
249          * @return Own data?
250          */
251         public boolean isOwnContact ();
252
253         /**
254          * Shows the contact to the user
255          *
256          * @param client Client instance to call back
257          */
258         public void show (final Client client);
259 }