src/main/kotlin/de/uapcore/lightpit/Constants.kt

Thu, 13 May 2021 19:31:09 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 13 May 2021 19:31:09 +0200
changeset 198
94f174d591ab
parent 184
e8eecee6aadf
child 205
7725a79416f3
permissions
-rw-r--r--

fixes wrong handling of feeds - only one channel per feed is allowed

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

mercurial