Sat, 17 May 2025 17:39:48 +0200
add "what's new" popup - resolves #670
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | /* |
180 | 2 | * Copyright 2021 Mike Becker. All rights reserved. |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
3 | * |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
4 | * Redistribution and use in source and binary forms, with or without |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
5 | * modification, are permitted provided that the following conditions are met: |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
6 | * |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
7 | * 1. Redistributions of source code must retain the above copyright |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
8 | * notice, this list of conditions and the following disclaimer. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
9 | * |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
10 | * 2. Redistributions in binary form must reproduce the above copyright |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
11 | * notice, this list of conditions and the following disclaimer in the |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
12 | * documentation and/or other materials provided with the distribution. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
13 | * |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
15 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
18 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
19 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
20 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
21 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
22 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
23 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
24 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
25 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
26 | package de.uapcore.lightpit |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
27 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
28 | object Constants { |
367
0a9065936aac
add "what's new" popup - resolves #670
Mike Becker <universe@uap-core.de>
parents:
335
diff
changeset
|
29 | const val VERSION_DATE = "2025-05-17" |
0a9065936aac
add "what's new" popup - resolves #670
Mike Becker <universe@uap-core.de>
parents:
335
diff
changeset
|
30 | |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
31 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
32 | * The path where the JSP files reside. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
33 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
34 | const val JSP_PATH_PREFIX = "/WEB-INF/jsp/" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
35 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
36 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
37 | * The name of the generic JSP page that is displayed after a successful commit. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
38 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
39 | const val JSP_COMMIT_SUCCESSFUL = "commit-successful" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
41 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
42 | * Name for the context parameter specifying the available languages. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
43 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
44 | const val CTX_ATTR_LANGUAGES = "available-languages" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
45 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
46 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
47 | * Name for the context parameter optionally specifying a database schema. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
48 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
49 | const val CTX_ATTR_DB_SCHEMA = "db-schema" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
50 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
51 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
52 | * Name for the context parameter optionally specifying a database dialect. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
53 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
54 | const val CTX_ATTR_DB_DIALECT = "db-dialect" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
55 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
56 | /** |
184
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
57 | * Key for the request attribute containing the optional navigation menu. |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
58 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
59 | const val REQ_ATTR_NAVIGATION = "navMenu" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
60 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
61 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
62 | * Key for the request attribute containing the base href. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
63 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
64 | const val REQ_ATTR_BASE_HREF = "base_href" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
65 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
66 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
67 | * Key for the request attribute containing the full path information (servlet path + path info). |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
68 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
69 | const val REQ_ATTR_PATH = "requestPath" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
70 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
71 | /** |
205
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
72 | * Key for the optional custom page title. |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
73 | */ |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
74 | const val REQ_ATTR_PAGE_TITLE = "pageTitle" |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
75 | |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
76 | /** |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
77 | * Key for the name of the page which should be rendered. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
78 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
79 | const val REQ_ATTR_CONTENT_PAGE = "contentPage" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
80 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
81 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
82 | * Key for the view model object (the type depends on the rendered site). |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
83 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
84 | const val REQ_ATTR_VIEWMODEL = "viewmodel" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
85 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
86 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
87 | * Key for the name of the additional stylesheet used by a module. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
88 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
89 | const val REQ_ATTR_STYLESHEET = "extraCss" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
90 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
91 | /** |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
92 | * Key for the name of the optional java script file. |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
93 | */ |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
94 | const val REQ_ATTR_JAVASCRIPT = "javascriptFile" |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
95 | |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
96 | /** |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
97 | * Key for a location the page shall redirect to. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
98 | * Will be used in a meta element. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
99 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
100 | const val REQ_ATTR_REDIRECT_LOCATION = "redirectLocation" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
101 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
102 | /** |
184
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
103 | * Key for the optional return link based on the referer header. |
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
104 | */ |
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
105 | const val REQ_ATTR_REFERER = "returnLink" |
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
106 | |
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
107 | /** |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
108 | * Key for the current language selection within the session. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
109 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
110 | const val SESSION_ATTR_LANGUAGE = "language" |
335
1eed60b779da
change language menu to settings menu and add timezone settings - fixes #402
Mike Becker <universe@uap-core.de>
parents:
311
diff
changeset
|
111 | |
1eed60b779da
change language menu to settings menu and add timezone settings - fixes #402
Mike Becker <universe@uap-core.de>
parents:
311
diff
changeset
|
112 | /** |
1eed60b779da
change language menu to settings menu and add timezone settings - fixes #402
Mike Becker <universe@uap-core.de>
parents:
311
diff
changeset
|
113 | * Key for the current timezone selection within the session. |
1eed60b779da
change language menu to settings menu and add timezone settings - fixes #402
Mike Becker <universe@uap-core.de>
parents:
311
diff
changeset
|
114 | */ |
1eed60b779da
change language menu to settings menu and add timezone settings - fixes #402
Mike Becker <universe@uap-core.de>
parents:
311
diff
changeset
|
115 | const val SESSION_ATTR_TIMEZONE = "timezone" |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
116 | } |