]> git.mxchange.org Git - jfinancials-war.git/blob - src/java/org/mxchange/jfinancials/beans/data/FinancialsDataWebApplicationBean.java
Updated copyright year
[jfinancials-war.git] / src / java / org / mxchange / jfinancials / beans / data / FinancialsDataWebApplicationBean.java
1 /*
2  * Copyright (C) 2017 - 2022 Free Software Foundation
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.jfinancials.beans.data;
18
19 import javax.enterprise.context.ApplicationScoped;
20 import javax.inject.Named;
21 import org.mxchange.jcontacts.model.contact.title.PersonalTitle;
22 import org.mxchange.jcoreee.dates.DayOfTheWeek;
23 import org.mxchange.jfinancials.beans.BaseFinancialsBean;
24 import org.mxchange.jproduct.model.payment.PaymentType;
25 import org.mxchange.jproduct.model.product.agegroup.AgeGroup;
26 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
27 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
28
29 /**
30  * An application-scoped data bean for any kind of static data
31  * <p>
32  * @author Roland Haeder<roland@mxchange.org>
33  */
34 @Named ("dataController")
35 @ApplicationScoped
36 public class FinancialsDataWebApplicationBean extends BaseFinancialsBean {
37
38         /**
39          * Serial number
40          */
41         private static final long serialVersionUID = 34_869_872_672_641L;
42
43         /**
44          * Default constructor
45          */
46         public FinancialsDataWebApplicationBean () {
47                 // Call super constructor
48                 super();
49         }
50
51         /**
52          * Returns an array with all age groups
53          * <p>
54          * @return An array with all age groups
55          */
56         public AgeGroup[] getAgeGroups () {
57                 return AgeGroup.values();
58         }
59
60         /**
61          * Returns an array of all days of the week
62          * <p>
63          * @return An array of all days of the week
64          */
65         public DayOfTheWeek[] getDayOfTheWeek () {
66                 return DayOfTheWeek.values();
67         }
68
69         /**
70          * Returns an array of all payment types
71          * <p>
72          * @return An array of all payment types
73          */
74         public PaymentType[] getPaymentTypes () {
75                 return PaymentType.values();
76         }
77
78         /**
79          * Returns an array of all personal titles
80          * <p>
81          * @return An array of all personal titles
82          */
83         public PersonalTitle[] getPersonalTitles () {
84                 return PersonalTitle.values();
85         }
86
87         /**
88          * Returns an array of all profile modes
89          * <p>
90          * @return An array of all profile modes
91          */
92         public ProfileMode[] getProfileModes () {
93                 return ProfileMode.values();
94         }
95
96         /**
97          * Returns an array of all user account statuses
98          * <p>
99          * @return An array of all user account statuses
100          */
101         public UserAccountStatus[] getUserAccountStatuses () {
102                 return UserAccountStatus.values();
103         }
104
105 }