]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/jratecalc/beans/helper/RateCalcAdminWebRequestHelper.java
0f2f8e5278fcdeddb51be530995ec416e3a2b325
[pizzaservice-war.git] / src / java / org / mxchange / jratecalc / beans / helper / RateCalcAdminWebRequestHelper.java
1 /*\r
2  * Copyright (C) 2016 Cho-Time GmbH\r
3  *\r
4  * This program is free software: you can redistribute it and/or modify\r
5  * it under the terms of the GNU Affero General Public License as\r
6  * published by the Free Software Foundation, either version 3 of the\r
7  * License, or (at your option) any later version.\r
8  *\r
9  * This program is distributed in the hope that it will be useful,\r
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
12  * GNU Affero General Public License for more details.\r
13  *\r
14  * You should have received a copy of the GNU Affero General Public License\r
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
16  */\r
17 package org.mxchange.jratecalc.beans.helper;\r
18 \r
19 import javax.enterprise.context.RequestScoped;\r
20 import javax.inject.Named;\r
21 import org.mxchange.jusercore.model.user.User;\r
22 \r
23 /**\r
24  * A general helper for beans\r
25  * <p>\r
26  * @author Roland Haeder<roland@mxchange.org>\r
27  */\r
28 @Named ("adminHelper")\r
29 @RequestScoped\r
30 public class RateCalcAdminWebRequestHelper implements RateCalcAdminWebRequestController {\r
31 \r
32         /**\r
33          * Serial number\r
34          */\r
35         private static final long serialVersionUID = 17_258_793_567_145_701L;\r
36 \r
37         /**\r
38          * User instance\r
39          */\r
40         private User user;\r
41 \r
42         /**\r
43          * Default constructor\r
44          */\r
45         public RateCalcAdminWebRequestHelper () {\r
46         }\r
47 \r
48         @Override\r
49         public User getUser () {\r
50                 return this.user;\r
51         }\r
52 \r
53         @Override\r
54         public void setUser (final User user) {\r
55                 this.user = user;\r
56         }\r
57 \r
58 }\r