src/main/kotlin/de/uapcore/lightpit/entities/IssueHistoryEntry.kt

Mon, 05 Aug 2024 18:40:47 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 05 Aug 2024 18:40:47 +0200
changeset 311
bf67e0ff7131
parent 242
b7f3e972b13c
permissions
-rw-r--r--

add new global issues page - fixes #404

235
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 /*
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 * Copyright 2021 Mike Becker. All rights reserved.
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 *
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 * Redistribution and use in source and binary forms, with or without
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 * modification, are permitted provided that the following conditions are met:
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 *
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 * 1. Redistributions of source code must retain the above copyright
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 * notice, this list of conditions and the following disclaimer.
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 *
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 * 2. Redistributions in binary form must reproduce the above copyright
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 * notice, this list of conditions and the following disclaimer in the
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 * documentation and/or other materials provided with the distribution.
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 *
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 */
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 package de.uapcore.lightpit.entities
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 import de.uapcore.lightpit.types.IssueCategory
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 import de.uapcore.lightpit.types.IssueHistoryType
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 import de.uapcore.lightpit.types.IssueStatus
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 import java.sql.Date
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 import java.sql.Timestamp
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33
242
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
34 class IssueHistoryEntry(
311
bf67e0ff7131 add new global issues page - fixes #404
Mike Becker <universe@uap-core.de>
parents: 242
diff changeset
35 val project: String,
242
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
36 val subject: String,
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
37 val time: Timestamp,
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
38 val type: IssueHistoryType,
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
39 val currentAssignee: String?,
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
40 val issueid: Int,
235
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 val component: String,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 val status: IssueStatus,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 val category: IssueCategory,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 val description: String,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 val assignee: String,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 val eta: Date?,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 val affected: String,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 val resolved: String,
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 )
4258b9e010ae change rss feed to display the issue history
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50
242
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
51 class IssueCommentHistoryEntry(
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
52 val subject: String,
241
1ca4f27cefe8 #109 changes assignee filter
Mike Becker <universe@uap-core.de>
parents: 239
diff changeset
53 val time: Timestamp,
1ca4f27cefe8 #109 changes assignee filter
Mike Becker <universe@uap-core.de>
parents: 239
diff changeset
54 val type: IssueHistoryType,
1ca4f27cefe8 #109 changes assignee filter
Mike Becker <universe@uap-core.de>
parents: 239
diff changeset
55 val currentAssignee: String?,
242
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
56 val issueid: Int,
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
57 val commentid: Int,
b7f3e972b13c #109 add comment history
Mike Becker <universe@uap-core.de>
parents: 241
diff changeset
58 val comment: String,
241
1ca4f27cefe8 #109 changes assignee filter
Mike Becker <universe@uap-core.de>
parents: 239
diff changeset
59 )

mercurial