]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/data/JobsDataWebApplicationBean.java
741988e04d0467977d9bc24e4e6a9f5b9bbe08b7
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / data / JobsDataWebApplicationBean.java
1 /*
2  * Copyright (C) 2017, 2018 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.jjobs.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.jcontactsbusiness.model.opening_time.dayofweek.DayOfTheWeek;
23 import org.mxchange.jjobs.beans.BaseJobsBean;
24 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
25 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
26
27 /**
28  * An application-scoped data bean for any kind of static data
29  * <p>
30  * @author Roland Haeder<roland@mxchange.org>
31  */
32 @Named ("dataController")
33 @ApplicationScoped
34 public class JobsDataWebApplicationBean extends BaseJobsBean {
35
36         /**
37          * Serial number
38          */
39         private static final long serialVersionUID = 34_869_872_672_641L;
40
41         /**
42          * Default constructor
43          */
44         public JobsDataWebApplicationBean () {
45                 // Call super constructor
46                 super();
47         }
48
49         /**
50          * Returns an array of all days of the week
51          * <p>
52          * @return An array of all days of the week
53          */
54         public DayOfTheWeek[] getDayOfTheWeek () {
55                 return DayOfTheWeek.values();
56         }
57
58         /**
59          * Returns an array of all personal titles
60          * <p>
61          * @return An array of all personal titles
62          */
63         public PersonalTitle[] getPersonalTitles () {
64                 return PersonalTitle.values();
65         }
66
67         /**
68          * Returns an array of all profile modes <p
69          * <p>
70          * @return An array of all profile modes
71          */
72         public ProfileMode[] getProfileModes () {
73                 return ProfileMode.values();
74         }
75
76         /**
77          * Returns an array of all user account statuses
78          * <p>
79          * @return An array of all user account statuses
80          */
81         public UserAccountStatus[] getUserAccountStatuses () {
82                 return UserAccountStatus.values();
83         }
84 }