]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/profilemode/PizzaProfileModeWebApplicationBean.java
Please cherry-pick:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / profilemode / PizzaProfileModeWebApplicationBean.java
1 /*
2  * Copyright (C) 2016 Roland Häder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Affero General Public License as
6  * published by the Free Software Foundation, either version 3 of the
7  * License, or (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 Affero General Public License for more details.
13  *
14  * You should have received a copy of the GNU Affero General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.pizzaapplication.beans.profilemode;
18
19 import javax.annotation.PostConstruct;
20 import javax.enterprise.context.ApplicationScoped;
21 import javax.inject.Named;
22 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
23 import org.mxchange.pizzaapplication.beans.BasePizzaController;
24
25 /**
26  * A profile mode bean
27  * <p>
28  * @author Roland Häder<roland@mxchange.org>
29  */
30 @Named ("profileModeController")
31 @ApplicationScoped
32 public class PizzaProfileModeWebApplicationBean extends BasePizzaController implements PizzaProfileModeWebApplicationController {
33
34         /**
35          * Serial number
36          */
37         private static final long serialVersionUID = 835_482_364_189L;
38
39         /**
40          * Default constructor
41          */
42         public PizzaProfileModeWebApplicationBean () {
43                 // Call super constructor
44                 super();
45         }
46
47         @Override
48         public ProfileMode[] getAllProfileModes () {
49                 // Return it
50                 return ProfileMode.values();
51         }
52
53         /**
54          * Post-construction method
55          */
56         @PostConstruct
57         public void init () {
58         }
59
60 }