Mon, 05 Aug 2024 17:41:56 +0200
fix regression after log string format change
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 { |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
29 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
30 | * The path where the JSP files reside. |
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 | const val JSP_PATH_PREFIX = "/WEB-INF/jsp/" |
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 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
35 | * 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
|
36 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
37 | const val JSP_COMMIT_SUCCESSFUL = "commit-successful" |
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 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | * 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
|
41 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
42 | const val CTX_ATTR_LANGUAGES = "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 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
45 | * 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
|
46 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
47 | const val CTX_ATTR_DB_SCHEMA = "db-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 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
50 | * 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
|
51 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
52 | const val CTX_ATTR_DB_DIALECT = "db-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 | /** |
184
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
55 | * 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
|
56 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
57 | const val REQ_ATTR_NAVIGATION = "navMenu" |
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 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
60 | * 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
|
61 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
62 | const val REQ_ATTR_BASE_HREF = "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 | /** |
198
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
65 | * Key for the request attribute containing the RSS feed href. |
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
66 | */ |
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
67 | const val REQ_ATTR_FEED_HREF = "feed_href" |
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
68 | |
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
69 | /** |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
70 | * 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
|
71 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
72 | const val REQ_ATTR_PATH = "requestPath" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
73 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
74 | /** |
205
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
75 | * Key for the optional custom page title. |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
76 | */ |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
77 | const val REQ_ATTR_PAGE_TITLE = "pageTitle" |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
78 | |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
79 | /** |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
80 | * 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
|
81 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
82 | const val REQ_ATTR_CONTENT_PAGE = "contentPage" |
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 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
85 | * 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
|
86 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
87 | const val REQ_ATTR_VIEWMODEL = "viewmodel" |
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 | /** |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
90 | * 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
|
91 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
92 | const val REQ_ATTR_STYLESHEET = "extraCss" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
93 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
94 | /** |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
95 | * 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
|
96 | */ |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
97 | const val REQ_ATTR_JAVASCRIPT = "javascriptFile" |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
98 | |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
99 | /** |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
100 | * 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
|
101 | * Will be used in a meta element. |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
102 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
103 | const val REQ_ATTR_REDIRECT_LOCATION = "redirectLocation" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
104 | |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
105 | /** |
184
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
106 | * 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
|
107 | */ |
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
108 | const val REQ_ATTR_REFERER = "returnLink" |
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
109 | |
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
110 | /** |
158
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
111 | * 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
|
112 | */ |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
113 | const val SESSION_ATTR_LANGUAGE = "language" |
4f912cd42876
migrates constants and removes global functions
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
114 | } |