1 package com.srv4pos.server.api;
2
3 import com.srv4pos.server.api.activation.ActivationService;
4 import com.srv4pos.server.api.activation.DeviceService;
5 import com.srv4pos.server.api.activation.SignatureHelper;
6 import com.srv4pos.server.api.auth.AuthService;
7 import com.srv4pos.server.api.booking.BookingService;
8 import com.srv4pos.server.api.buildinfo.BuildInfoService;
9 import com.srv4pos.server.api.category.CategoryService;
10 import com.srv4pos.server.api.commodity.CommodityService;
11 import com.srv4pos.server.api.customization.CustomizationGroupService;
12 import com.srv4pos.server.api.customization.CustomizationItemService;
13 import com.srv4pos.server.api.day.DayService;
14 import com.srv4pos.server.api.ejournal.EJournalService;
15 import com.srv4pos.server.api.email.EmailService;
16 import com.srv4pos.server.api.hairdresser.HairdresserService;
17 import com.srv4pos.server.api.infrastructure.credentials.Credentials;
18 import com.srv4pos.server.api.infrastructure.http.Transport;
19 import com.srv4pos.server.api.integration.dibs.DibsIntegrationService;
20 import com.srv4pos.server.api.kdfacet.KdFacetService;
21 import com.srv4pos.server.api.keyboard.KeyboardService;
22 import com.srv4pos.server.api.keyboardentry.KeyboardEntryService;
23 import com.srv4pos.server.api.order.OrderService;
24 import com.srv4pos.server.api.posplus.PosPlusService;
25 import com.srv4pos.server.api.precept.PreceptService;
26 import com.srv4pos.server.api.product.ProductService;
27 import com.srv4pos.server.api.receiptSettings.ReceiptSettingsService;
28 import com.srv4pos.server.api.registration.RegistrationService;
29 import com.srv4pos.server.api.restaurant.RestaurantService;
30 import com.srv4pos.server.api.sale.SaleService;
31 import com.srv4pos.server.api.sale.SaleSlotService;
32 import com.srv4pos.server.api.seller.SellerService;
33 import com.srv4pos.server.api.seller.UserService;
34 import com.srv4pos.server.api.server.ServerService;
35 import com.srv4pos.server.api.softwareVendor.SoftwareVendorService;
36 import com.srv4pos.server.api.tax.TaxService;
37 import com.srv4pos.server.api.treasurer.TreasurerService;
38
39 import java.net.URL;
40
41
42
43
44
45
46 public class ServiceFactory {
47 private final ServerService serverService;
48 private final ActivationService activationService;
49 private AuthService authService;
50 private SellerService sellerService;
51 private TaxService taxService;
52 private ProductService productService;
53 private OrderService orderService;
54 private CategoryService categoryService;
55 private CommodityService commodityService;
56 private PosPlusService posPlusService;
57 private KeyboardService keyboardService;
58 private KeyboardEntryService keyboardEntryService;
59 private RegistrationService registrationService;
60 private TreasurerService treasurerService;
61 private RestaurantService restaurantService;
62 private SignatureHelper signatureHelper;
63 private BookingService bookingService;
64 private SaleService saleService;
65 private CustomizationItemService customizationItemService;
66 private CustomizationGroupService customizationGroupService;
67 private SaleSlotService saleSlotService;
68 private SoftwareVendorService softwareVendorService;
69 private BuildInfoService buildInfoService;
70 private KdFacetService kdFacetService;
71 private UserService userService;
72 private ReceiptSettingsService receiptSettingsService;
73 private PreceptService preceptService;
74 private DeviceService deviceService;
75 private HairdresserService hairdresserService;
76 private DayService dayService;
77 private EmailService emailService;
78 private EJournalService eJournalService;
79 private DibsIntegrationService dibsIntegrationService;
80
81
82
83
84
85
86
87
88 public ServiceFactory(URL url, Credentials credentials, Transport transport) {
89 authService = new AuthService(url, credentials, transport);
90 sellerService = new SellerService(url, credentials, transport);
91 taxService = new TaxService(url, credentials, transport);
92 productService = new ProductService(url, credentials, transport);
93 orderService = new OrderService(url, credentials, transport);
94 categoryService = new CategoryService(url, credentials, transport);
95 commodityService = new CommodityService(url, credentials, transport);
96 serverService = new ServerService(url, credentials, transport);
97 activationService = new ActivationService(url, credentials, transport);
98 posPlusService = new PosPlusService(url, credentials, transport);
99 keyboardService = new KeyboardService(url, credentials, transport);
100 keyboardEntryService = new KeyboardEntryService(url, credentials, transport);
101 registrationService = new RegistrationService(url, credentials, transport);
102 treasurerService = new TreasurerService(url, credentials, transport);
103 restaurantService = new RestaurantService(url, credentials, transport);
104 bookingService = new BookingService(url, credentials, transport);
105 saleService = new SaleService(url, credentials, transport);
106 signatureHelper = new SignatureHelper();
107 customizationItemService = new CustomizationItemService(url, credentials, transport);
108 customizationGroupService = new CustomizationGroupService(url, credentials, transport);
109 saleSlotService = new SaleSlotService(url, credentials, transport);
110 softwareVendorService = new SoftwareVendorService(url, credentials, transport);
111 buildInfoService = new BuildInfoService(url, credentials, transport);
112 kdFacetService = new KdFacetService(url, credentials, transport);
113 userService = new UserService(url, credentials, transport);
114 receiptSettingsService = new ReceiptSettingsService(url, credentials, transport);
115 preceptService = new PreceptService(url, credentials, transport);
116 deviceService = new DeviceService(url, credentials, transport);
117 hairdresserService = new HairdresserService(url, credentials, transport);
118 dayService = new DayService(url, credentials, transport);
119 emailService = new EmailService(url, credentials, transport);
120 eJournalService = new EJournalService(url, credentials, transport);
121 dibsIntegrationService = new DibsIntegrationService(url, credentials, transport);
122 }
123
124
125
126
127
128
129 public AuthService getAuthService() {
130 return authService;
131 }
132
133
134
135
136
137
138 public SellerService getSellerService() {
139 return sellerService;
140 }
141
142
143
144
145
146
147 public TaxService getTaxService() {
148 return taxService;
149 }
150
151
152
153
154
155
156 public ProductService getProductService() {
157 return productService;
158 }
159
160
161
162
163
164
165 public OrderService getOrderService() {
166 return orderService;
167 }
168
169
170
171
172
173
174 public CategoryService getCategoryService() {
175 return categoryService;
176 }
177
178
179
180
181
182
183 public CommodityService getCommodityService() {
184 return commodityService;
185 }
186
187
188
189
190
191
192 public ServerService getServerService() {
193 return serverService;
194 }
195
196
197
198
199
200
201 public ActivationService getActivationService() {
202 return activationService;
203 }
204
205
206
207
208
209
210 public PosPlusService getPosPlusService() {
211 return posPlusService;
212 }
213
214
215
216
217
218
219 public KeyboardService getKeyboardService() {
220 return keyboardService;
221 }
222
223
224
225
226
227
228 public KeyboardEntryService getKeyboardEntryService() {
229 return keyboardEntryService;
230 }
231
232
233
234
235
236
237 public RegistrationService getRegistrationService() {
238 return registrationService;
239 }
240
241
242
243
244
245
246 public TreasurerService getTreasurerService() {
247 return treasurerService;
248 }
249
250
251
252
253
254
255 public RestaurantService getRestaurantService() {
256 return restaurantService;
257 }
258
259
260
261
262
263
264 public SignatureHelper getSignatureHelper() {
265 return signatureHelper;
266 }
267
268
269
270
271
272
273 public BookingService getBookingService() {
274 return bookingService;
275 }
276
277
278
279
280
281
282 public SaleService getSaleService() {
283 return saleService;
284 }
285
286
287
288
289
290
291 public CustomizationItemService getCustomizationItemService() {
292 return customizationItemService;
293 }
294
295
296
297
298
299
300 public CustomizationGroupService getCustomizationGroupService() {
301 return customizationGroupService;
302 }
303
304
305
306
307
308
309 public SaleSlotService getSaleSlotService() {
310 return saleSlotService;
311 }
312
313
314
315
316
317 public SoftwareVendorService getSoftwareVendorService() {
318 return softwareVendorService;
319 }
320
321
322
323
324
325 public BuildInfoService getBuildInfoService() {
326 return buildInfoService;
327 }
328
329
330
331
332
333
334 public KdFacetService getKdFacetService() {
335 return kdFacetService;
336 }
337
338
339
340
341
342
343 public UserService getUserService() {
344 return userService;
345 }
346
347
348
349
350
351
352 public ReceiptSettingsService getReceiptSettingsService() {
353 return receiptSettingsService;
354 }
355
356
357
358
359
360
361 public PreceptService getPreceptService() {
362 return preceptService;
363 }
364
365
366
367
368
369
370 public DeviceService getDeviceService() {
371 return deviceService;
372 }
373
374
375
376
377
378
379 public HairdresserService getHairdresserService() {
380 return hairdresserService;
381 }
382
383
384
385
386
387
388 public DayService getDayService() {
389 return dayService;
390 }
391
392
393
394
395
396
397 public EmailService getEmailService() {
398 return emailService;
399 }
400
401
402 public EJournalService getEJournalService() {
403 return eJournalService;
404 }
405
406
407
408
409 public DibsIntegrationService getDibsIntegrationService() {
410 return dibsIntegrationService;
411 }
412 }