]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/faces-config.xml
added navigation cases (really lazy) for admin pages
[addressbook-war.git] / web / WEB-INF / faces-config.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <faces-config version="2.2"
3                           xmlns="http://xmlns.jcp.org/xml/ns/javaee"
4                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5                           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
6         <application>
7                 <locale-config>
8                         <default-locale>de_DE</default-locale>
9                         <supported-locale>en_US</supported-locale>
10                 </locale-config>
11         </application>
12         <validator>
13                 <validator-id>PrivacyTermsCheckboxValidator</validator-id>
14                 <validator-class>org.mxchange.jcoreee.validator.bool.privacy_terms.PrivacyTermsCheckboxValidator</validator-class>
15         </validator>
16         <validator>
17                 <validator-id>NameValidator</validator-id>
18                 <validator-class>org.mxchange.jcoreee.validator.string.names.NameValidator</validator-class>
19         </validator>
20         <validator>
21                 <validator-id>AddressbookNameValidator</validator-id>
22                 <validator-class>org.mxchange.addressbook.validator.names.AddressbookNameValidator</validator-class>
23         </validator>
24         <validator>
25                 <validator-id>PhoneNumberValidator</validator-id>
26                 <validator-class>org.mxchange.jphone.validators.PhoneNumberValidator</validator-class>
27         </validator>
28         <validator>
29                 <validator-id>AddressbookIdValidator</validator-id>
30                 <validator-class>org.mxchange.addressbook.validator.addressbook.AddressbookIdValidator</validator-class>
31         </validator>
32         <validator>
33                 <validator-id>UserProfileVisibilityValidator</validator-id>
34                 <validator-class>org.mxchange.addressbook.validator.booleans.UserProfileVisibilityValidator</validator-class>
35         </validator>
36         <validator>
37                 <validator-id>UserIdValidator</validator-id>
38                 <validator-class>org.mxchange.addressbook.validator.user.UserIdValidator</validator-class>
39         </validator>
40         <validator>
41                 <validator-id>AddressbookUserPasswordValidator</validator-id>
42                 <validator-class>org.mxchange.addressbook.validators.password.AddressbookUserPasswordValidator</validator-class>
43         </validator>
44         <navigation-rule>
45                 <from-view-id>*</from-view-id>
46                 <navigation-case>
47                         <from-outcome>index</from-outcome>
48                         <to-view-id>/index.xhtml</to-view-id>
49                 </navigation-case>
50                 <navigation-case>
51                         <from-outcome>user_register</from-outcome>
52                         <to-view-id>/user/register.xhtml</to-view-id>
53                 </navigation-case>
54                 <navigation-case>
55                         <from-outcome>user_login</from-outcome>
56                         <to-view-id>/user/login.xhtml</to-view-id>
57                 </navigation-case>
58                 <navigation-case>
59                         <from-outcome>user_lost_passwd</from-outcome>
60                         <to-view-id>/user/lost_passwd.xhtml</to-view-id>
61                 </navigation-case>
62                 <navigation-case>
63                         <from-outcome>terms</from-outcome>
64                         <to-view-id>/terms.xhtml</to-view-id>
65                 </navigation-case>
66                 <navigation-case>
67                         <from-outcome>privacy</from-outcome>
68                         <to-view-id>/privacy.xhtml</to-view-id>
69                 </navigation-case>
70                 <navigation-case>
71                         <from-outcome>imprint</from-outcome>
72                         <to-view-id>/imprint.xhtml</to-view-id>
73                 </navigation-case>
74                 <navigation-case>
75                         <from-outcome>logout</from-outcome>
76                         <to-view-id>/logout.xhtml</to-view-id>
77                 </navigation-case>
78                 <navigation-case>
79                         <from-outcome>admin_index</from-outcome>
80                         <to-view-id>/admin/index.xhtml</to-view-id>
81                 </navigation-case>
82                 <navigation-case>
83                         <from-outcome>login_index</from-outcome>
84                         <to-view-id>/login/login_index.xhtml</to-view-id>
85                 </navigation-case>
86                 <navigation-case>
87                         <from-outcome>user_resend_link</from-outcome>
88                         <to-view-id>/user/resend_link.xhtml</to-view-id>
89                 </navigation-case>
90                 <navigation-case>
91                         <from-outcome>login_own_addressbooks</from-outcome>
92                         <to-view-id>/login/login_own_addressbooks.xhtml</to-view-id>
93                 </navigation-case>
94                 <navigation-case>
95                         <from-outcome>login_other_addressbooks</from-outcome>
96                         <to-view-id>/login/login_other_addressbooks.xhtml</to-view-id>
97                 </navigation-case>
98                 <navigation-case>
99                         <from-outcome>user_list</from-outcome>
100                         <to-view-id>/user/user_list.xhtml</to-view-id>
101                 </navigation-case>
102                 <navigation-case>
103                         <from-outcome>admin_logout</from-outcome>
104                         <to-view-id>/admin/admin_logout.xhtml</to-view-id>
105                 </navigation-case>
106                 <navigation-case>
107                         <from-outcome>login_edit_user_data</from-outcome>
108                         <to-view-id>/login/login_edit_user_data.xhtml</to-view-id>
109                 </navigation-case>
110                 <navigation-case>
111                         <from-outcome>login_shared_addressbooks</from-outcome>
112                         <to-view-id>/login/login_shared_addressbooks.xhtml</to-view-id>
113                 </navigation-case>
114                 <navigation-case>
115                         <from-outcome>user_profile</from-outcome>
116                         <to-view-id>/user/user_profile.xhtml</to-view-id>
117                 </navigation-case>
118                 <navigation-case>
119                         <from-outcome>admin_delete_user</from-outcome>
120                         <to-view-id>/admin/admin_user_delete.xhtml</to-view-id>
121                 </navigation-case>
122                 <navigation-case>
123                         <from-outcome>admin_list_user</from-outcome>
124                         <to-view-id>/admin/admin_user_list.xhtml</to-view-id>
125                 </navigation-case>
126                 <navigation-case>
127                         <from-outcome>admin_edit_user</from-outcome>
128                         <to-view-id>/admin/admin_user_edit.xhtml</to-view-id>
129                 </navigation-case>
130                 <navigation-case>
131                         <from-outcome>admin_unlock_user</from-outcome>
132                         <to-view-id>/admin/admin_user_unlock.xhtml</to-view-id>
133                 </navigation-case>
134         </navigation-rule>
135         <navigation-rule>
136                 <from-view-id>/user/login.xhtml</from-view-id>
137                 <navigation-case>
138                         <from-outcome>login</from-outcome>
139                         <to-view-id>/login/login_index.xhtml</to-view-id>
140                 </navigation-case>
141         </navigation-rule>
142         <navigation-rule>
143                 <from-view-id>/user/register.xhtml</from-view-id>
144                 <navigation-case>
145                         <from-outcome>register_done</from-outcome>
146                         <to-view-id>/user/register_done.xhtml</to-view-id>
147                 </navigation-case>
148         </navigation-rule>
149         <navigation-rule>
150                 <from-view-id>/admin/admin_logout.xhtml</from-view-id>
151                 <navigation-case>
152                         <from-outcome>index</from-outcome>
153                         <to-view-id>/index.xhtml</to-view-id>
154                 </navigation-case>
155         </navigation-rule>
156         <navigation-rule>
157                 <from-view-id>/login/login_own_addressbooks.xhtml</from-view-id>
158                 <navigation-case>
159                         <from-outcome>login_add_addressbook</from-outcome>
160                         <to-view-id>/login/login_add_addressbook.xhtml</to-view-id>
161                 </navigation-case>
162                 <navigation-case>
163                         <from-outcome>user_show_addressbook</from-outcome>
164                         <to-view-id>/user/show_addressbook.xhtml</to-view-id>
165                 </navigation-case>
166                 <navigation-case>
167                         <from-outcome>show_addressbook_entries</from-outcome>
168                         <to-view-id>/user/show_addressbook_entries.xhtml</to-view-id>
169                 </navigation-case>
170         </navigation-rule>
171         <navigation-rule>
172                 <from-view-id>/user/user_list.xhtml</from-view-id>
173                 <navigation-case>
174                         <from-outcome>login_list_sharing_addressbooks</from-outcome>
175                         <to-view-id>/login/login_list_sharing_addressbooks.xhtml</to-view-id>
176                 </navigation-case>
177         </navigation-rule>
178         <navigation-rule>
179                 <from-view-id>/user/show_addressbook.xhtml</from-view-id>
180                 <navigation-case>
181                         <from-outcome>login_start_sharing_addressbook</from-outcome>
182                         <to-view-id>/login/login_start_sharing_addressbook.xhtml</to-view-id>
183                 </navigation-case>
184         </navigation-rule>
185         <navigation-rule>
186                 <from-view-id>/login/login_shared_addressbooks.xhtml</from-view-id>
187                 <navigation-case>
188                         <from-outcome>user_show_addressbook</from-outcome>
189                         <to-view-id>/user/show_addressbook.xhtml</to-view-id>
190                 </navigation-case>
191         </navigation-rule>
192         <navigation-rule>
193                 <from-view-id>/login/login_edit_user_data.xhtml</from-view-id>
194                 <navigation-case>
195                         <from-outcome>login_change_email_address</from-outcome>
196                         <to-view-id>/login/login_change_email_address.xhtml</to-view-id>
197                 </navigation-case>
198                 <navigation-case>
199                         <from-outcome>login_change_password</from-outcome>
200                         <to-view-id>/login/login_change_password.xhtml</to-view-id>
201                 </navigation-case>
202                 <navigation-case>
203                         <from-outcome>login_change_personal_data</from-outcome>
204                         <to-view-id>/login/login_change_personal_data.xhtml</to-view-id>
205                 </navigation-case>
206         </navigation-rule>
207         <navigation-rule>
208                 <from-view-id>/login/login_change_password.xhtml</from-view-id>
209                 <navigation-case>
210                         <from-outcome>login_data_saved</from-outcome>
211                         <to-view-id>/login/login_data_saved.xhtml</to-view-id>
212                 </navigation-case>
213         </navigation-rule>
214         <navigation-rule>
215                 <from-view-id>/login/login_change_email_address.xhtml</from-view-id>
216                 <navigation-case>
217                         <from-outcome>login_data_saved</from-outcome>
218                         <to-view-id>/login/login_data_saved.xhtml</to-view-id>
219                 </navigation-case>
220         </navigation-rule>
221         <navigation-rule>
222                 <from-view-id>/login/login_change_personal_data.xhtml</from-view-id>
223                 <navigation-case>
224                         <from-outcome>login_data_saved</from-outcome>
225                         <to-view-id>/login/login_data_saved.xhtml</to-view-id>
226                 </navigation-case>
227         </navigation-rule>
228 </faces-config>