1 /*
2 * Copyright 2018-2022 Medical Information Systems Research Group (https://medical.zcu.cz),
3 * Department of Computer Science and Engineering, University of West Bohemia.
4 * Address: Univerzitni 8, 306 14 Plzen, Czech Republic.
5 *
6 * Author Petr Vcelak (vcelak@kiv.zcu.cz).
7 *
8 * This file is part of MRECore project.
9 *
10 * MRECore is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License.
13 *
14 * MRECore is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with MRECore. If not, see <http://www.gnu.org/licenses/>.
21 */
22 package cz.zcu.mre.data.support;
23
24 import java.util.Date;
25 import jakarta.validation.constraints.NotNull;
26 import jakarta.validation.constraints.Size;
27
28 /**
29 *
30 * @author Petr Vcelak (vcelak@kiv.zcu.cz)
31 */
32 public class IssueTicket {
33
34 @NotNull
35 private String from;
36
37 @NotNull
38 @Size(min = 10, max = 10000)
39 private String detail;
40
41 @NotNull
42 private Date date;
43
44 public IssueTicket() {
45 date = new Date();
46 }
47
48 public String getFrom() {
49 return from;
50 }
51
52 public void setFrom(String from) {
53 this.from = from;
54 }
55
56 public String getDetail() {
57 return detail;
58 }
59
60 public void setDetail(String detail) {
61 this.detail = detail;
62 }
63
64 public Date getDate() {
65 return (Date)date.clone();
66 }
67
68 public void setDate(Date date) {
69 this.date = (Date)date.clone();
70 }
71
72 @Override
73 public String toString() {
74 return "IssueTicket{" + "from=" + from + ", date=" + date + ", detail=" + detail + '}';
75 }
76
77 }