2 * Copyright (C) 2017 - 2024 Free Software Foundation
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.
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.
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/>.
17 package org.mxchange.jjobs.beans.data;
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.jjobs.beans.BaseJobsBean;
24 import org.mxchange.jjobs.model.skill.status.SkillStatus;
25 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
26 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
29 * An application-scoped data bean for any kind of static data
31 * @author Roland Haeder<roland@mxchange.org>
33 @Named ("dataController")
35 public class JobsDataWebApplicationBean extends BaseJobsBean {
40 private static final long serialVersionUID = 34_869_872_672_641L;
45 public JobsDataWebApplicationBean () {
46 // Call super constructor
51 * Returns an array of all days of the week
53 * @return An array of all days of the week
55 public DayOfTheWeek[] getDayOfTheWeek () {
56 return DayOfTheWeek.values();
60 * Returns an array of all personal titles
62 * @return An array of all personal titles
64 public PersonalTitle[] getPersonalTitles () {
65 return PersonalTitle.values();
69 * Returns an array of all profile modes
71 * @return An array of all profile modes
73 public ProfileMode[] getProfileModes () {
74 return ProfileMode.values();
78 * Returns an array of all skill statuses
80 * @return An array of all skill statuses
82 public SkillStatus[] getSkillStatuses () {
83 return SkillStatus.values();
87 * Returns an array of all user account statuses
89 * @return An array of all user account statuses
91 public UserAccountStatus[] getUserAccountStatuses () {
92 return UserAccountStatus.values();