]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/web.xml
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
3         <description>An application to handle all your receipts and do some calculation with it.</description>
4         <display-name>JJobs Application v1.0</display-name>
5         <context-param>
6                 <description>Name of this project.</description>
7                 <param-name>project_title</param-name>
8                 <param-value>JJobs</param-value>
9         </context-param>
10         <context-param>
11                 <description>PrimeFaces theme</description>
12                 <param-name>primefaces.THEME</param-name>
13                 <param-value>bootstrap</param-value>
14         </context-param>
15         <context-param>
16                 <description>Whether PrimeFaces should collect all scripts and bundle it automatically.</description>
17                 <param-name>primefaces.COLLECT_SCRIPTS</param-name>
18                 <param-value>true</param-value>
19         </context-param>
20         <context-param>
21                 <description>Refresh period of facelets.</description>
22                 <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
23                 <param-value>-1</param-value>
24         </context-param>
25         <context-param>
26                 <description>Development mode for WELD, keep disabled unless really needed. Currently it messes up the website.</description>
27                 <param-name>org.jboss.weld.development</param-name>
28                 <param-value>false</param-value>
29         </context-param>
30         <context-param>
31                 <description>Generic custom JSF tags library</description>
32                 <param-name>javax.faces.FACELETS_LIBRARIES</param-name>
33                 <param-value>/WEB-INF/widgets.jsf.taglib.xml;/WEB-INF/validators.jsf.taglib.xml;/WEB-INF/links.jsf.taglib.xml;/WEB-INF/project-links.jsf.taglib.xml;;/WEB-INF/product-links.jsf.taglib.xml</param-value>
34         </context-param>
35         <context-param>
36                 <description>Project stage</description>
37                 <param-name>javax.faces.PROJECT_STAGE</param-name>
38                 <param-value>Development</param-value>
39         </context-param>
40         <context-param>
41                 <description>Whether the date converter's default timezone is system's timezone.</description>
42                 <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
43                 <param-value>true</param-value>
44         </context-param>
45         <context-param>
46                 <description>All empty strings should be converted to null.</description>
47                 <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
48                 <param-value>true</param-value>
49         </context-param>
50         <context-param>
51                 <description>Bar-code type for products</description>
52                 <param-name>product_barcode_type</param-name>
53                 <param-value>ean13</param-value>
54         </context-param>
55         <context-param>
56                 <description>Whether the multi-page registration page or a single registration page is active</description>
57                 <param-name>is_feature_user_register_multiple_page_enabled</param-name>
58                 <param-value>true</param-value>
59         </context-param>
60         <context-param>
61                 <description>Whether a user name is required for this application.</description>
62                 <param-name>is_feature_user_login_require_user_name_enabled</param-name>
63                 <param-value>true</param-value>
64         </context-param>
65         <context-param>
66                 <description>Whether "resend confirmation link" is enabled.</description>
67                 <param-name>is_feature_user_resend_confirmation_link_enabled</param-name>
68                 <param-value>true</param-value>
69         </context-param>
70         <context-param>
71                 <description>Whether registration page is enabled.</description>
72                 <param-name>is_feature_user_registration_enabled</param-name>
73                 <param-value>true</param-value>
74         </context-param>
75         <context-param>
76                 <description>Whether the guest menu is enabled/shown to the user.</description>
77                 <param-name>is_feature_guest_menu_enabled</param-name>
78                 <param-value>true</param-value>
79         </context-param>
80         <context-param>
81                 <description>Whether the guest's index content is shown</description>
82                 <param-name>is_feature_guest_index_content_enabled</param-name>
83                 <param-value>true</param-value>
84         </context-param>
85         <context-param>
86                 <description>Whether recovery of user passwords is enabled.</description>
87                 <param-name>is_feature_user_password_recovery_enabled</param-name>
88                 <param-value>true</param-value>
89         </context-param>
90         <context-param>
91                 <description>Whether the personal title is required for using the general contact controller.</description>
92                 <param-name>is_feature_general_personal_title_enabled</param-name>
93                 <param-value>true</param-value>
94         </context-param>
95         <context-param>
96                 <description>Whether personal title is required for administrative contact controller.</description>
97                 <param-name>is_feature_admin_personal_title_enabled</param-name>
98                 <param-value>true</param-value>
99         </context-param>
100         <context-param>
101                 <description>Whether users are allowed to edit their user data.</description>
102                 <param-name>is_feature_user_edit_data_enabled</param-name>
103                 <param-value>true</param-value>
104         </context-param>
105         <context-param>
106                 <description>Whether the user list is accessible and visible.</description>
107                 <param-name>is_feature_user_list_enabled</param-name>
108                 <param-value>true</param-value>
109         </context-param>
110         <context-param>
111                 <description>Whether imprint page is enabled.</description>
112                 <param-name>is_feature_imprint_enabled</param-name>
113                 <param-value>true</param-value>
114         </context-param>
115         <context-param>
116                 <description>Whether terms page is enabled.</description>
117                 <param-name>is_feature_terms_enabled</param-name>
118                 <param-value>true</param-value>
119         </context-param>
120         <context-param>
121                 <description>Whether privacy page is enabled.</description>
122                 <param-name>is_feature_privacy_enabled</param-name>
123                 <param-value>true</param-value>
124         </context-param>
125         <context-param>
126                 <description>Feature: Users must change password after login (with current password). Administrators can enforce this.</description>
127                 <param-name>is_feature_user_must_change_password_enabled</param-name>
128                 <param-value>true</param-value>
129         </context-param>
130         <context-param>
131                 <description>Whether users are allowed to change their login password.</description>
132                 <param-name>is_feature_change_user_password_enabled</param-name>
133                 <param-value>true</param-value>
134         </context-param>
135         <context-param>
136                 <description>Whether users can change their email address.</description>
137                 <param-name>is_feature_user_must_change_email_address_enabled</param-name>
138                 <param-value>true</param-value>
139         </context-param>
140         <context-param>
141                 <description>Whether user registration page is in index or own page.</description>
142                 <param-name>is_feature_user_registration_in_index_enabled</param-name>
143                 <param-value>false</param-value>
144         </context-param>
145         <context-param>
146                 <description>Whether user can leave both passwords empty on registration. Then a random password will be created.</description>
147                 <param-name>is_feature_allow_user_registration_empty_password_enabled</param-name>
148                 <param-value>false</param-value>
149         </context-param>
150         <context-param>
151                 <description>Whether business contacts are used in this project.</description>
152                 <param-name>is_feature_basic_data_enabled</param-name>
153                 <param-value>true</param-value>
154         </context-param>
155         <context-param>
156                 <description>Whether company employees are used in this project. Maybe used in conjuction with business contacts only.</description>
157                 <param-name>is_feature_company_employee_enabled</param-name>
158                 <param-value>true</param-value>
159         </context-param>
160         <context-param>
161                 <description>Whether the public user profile is enabled. If this option is enabled, the setting "is_feature_user_login_require_username_enabled" must also be enabled as it is mandadory.</description>
162                 <param-name>is_feature_public_user_profile_enabled</param-name>
163                 <param-value>true</param-value>
164         </context-param>
165         <context-param>
166                 <description>Whether user names are required for completing registration.</description>
167                 <param-name>is_feature_user_login_require_username_enabled</param-name>
168                 <param-value>true</param-value>
169         </context-param>
170         <context-param>
171                 <description>Maximum passwords that must be different.</description>
172                 <param-name>max_user_password_history</param-name>
173                 <param-value>5</param-value>
174         </context-param>
175         <context-param>
176                 <description>Whether debugging of registration form is enabled.</description>
177                 <param-name>is_debug_register_enabled</param-name>
178                 <param-value>false</param-value>
179         </context-param>
180         <context-param>
181                 <description>Minimum password score (default 50 may be to low)</description>
182                 <param-name>min_user_password_score</param-name>
183                 <param-value>50</param-value>
184         </context-param>
185         <context-param>
186                 <description>Type of receipt barcode (see p:barcode)</description>
187                 <param-name>receipt_barcode_type</param-name>
188                 <param-value>codabar</param-value>
189         </context-param>
190         <context-param>
191                 <description>Ignore menu items with only comments in it.</description>
192                 <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
193                 <param-value>true</param-value>
194         </context-param>
195         <servlet>
196                 <servlet-name>Faces Servlet</servlet-name>
197                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
198                 <load-on-startup>1</load-on-startup>
199         </servlet>
200         <servlet>
201                 <servlet-name>pdf</servlet-name>
202                 <servlet-class>org.mxchange.pizzaapplication.servlet.receipt.PizzaPdfReceiptServlet</servlet-class>
203         </servlet>
204         <servlet-mapping>
205                 <servlet-name>Faces Servlet</servlet-name>
206                 <url-pattern>/faces/*</url-pattern>
207         </servlet-mapping>
208         <mime-mapping>
209                 <extension>tpl</extension>
210                 <mime-type>text/plain</mime-type>
211         </mime-mapping>
212         <servlet-mapping>
213                 <servlet-name>pdf</servlet-name>
214                 <url-pattern>/customer/recipt.pdf</url-pattern>
215         </servlet-mapping>
216         <session-config>
217                 <session-timeout>
218                         30
219                 </session-timeout>
220         </session-config>
221         <welcome-file-list>
222                 <welcome-file>faces/index.xhtml</welcome-file>
223         </welcome-file-list>
224         <security-constraint>
225                 <display-name>AdminConstraint</display-name>
226                 <web-resource-collection>
227                         <web-resource-name>admin</web-resource-name>
228                         <description>Administrative Area</description>
229                         <url-pattern>/faces/admin/*</url-pattern>
230                 </web-resource-collection>
231                 <auth-constraint>
232                         <description>Administrative Area Login</description>
233                         <role-name>admin</role-name>
234                 </auth-constraint>
235         </security-constraint>
236         <login-config>
237                 <auth-method>BASIC</auth-method>
238                 <realm-name>file</realm-name>
239         </login-config>
240         <security-role>
241                 <description>Administrative role</description>
242                 <role-name>admin</role-name>
243         </security-role>
244 </web-app>