1 package org.kuali.ole.select.bo;
2
3 import org.kuali.rice.core.api.CoreApiServiceLocator;
4 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5 import org.kuali.rice.krad.util.GlobalVariables;
6
7 import java.sql.Timestamp;
8
9
10
11
12 public class OleEventLogBo extends PersistableBusinessObjectBase {
13
14 private String oleEventLogId;
15 private String eventType;
16 private Timestamp createdDate;
17 private String createdBy;
18 private String eventDescription;
19 private String oleLicenseRequestId;
20
21 private OleLicenseRequestBo oleLicenseRequestBo = new OleLicenseRequestBo();
22
23
24
25
26
27
28 public String getOleEventLogId() {
29 return oleEventLogId;
30 }
31
32
33
34
35
36
37 public void setOleEventLogId(String oleEventLogId) {
38 this.oleEventLogId = oleEventLogId;
39 }
40
41
42
43
44
45
46 public String getEventType() {
47 return eventType;
48 }
49
50
51
52
53
54
55 public void setEventType(String eventType) {
56 this.eventType = eventType;
57 }
58
59
60
61
62
63
64 public Timestamp getCreatedDate() {
65 return createdDate;
66 }
67
68
69
70
71
72
73 public void setCreatedDate(Timestamp createdDate) {
74 this.createdDate = createdDate;
75 }
76
77
78
79
80
81
82 public String getCreatedBy() {
83 if (createdBy == null) {
84 createdBy = GlobalVariables.getUserSession().getPrincipalName();
85 }
86 return createdBy;
87 }
88
89
90
91
92
93
94 public void setCreatedBy(String createdBy) {
95 this.createdBy = createdBy;
96 }
97
98
99
100
101
102
103 public String getEventDescription() {
104 return eventDescription;
105 }
106
107
108
109
110
111
112 public void setEventDescription(String eventDescription) {
113 this.eventDescription = eventDescription;
114 }
115
116
117
118
119
120
121 public String getOleLicenseRequestId() {
122 return oleLicenseRequestId;
123 }
124
125
126
127
128
129
130 public void setOleLicenseRequestId(String oleLicenseRequestId) {
131 this.oleLicenseRequestId = oleLicenseRequestId;
132 }
133
134
135
136
137
138
139 public OleLicenseRequestBo getOleLicenseRequestBo() {
140 return oleLicenseRequestBo;
141 }
142
143
144
145
146
147
148 public void setOleLicenseRequestBo(OleLicenseRequestBo oleLicenseRequestBo) {
149 this.oleLicenseRequestBo = oleLicenseRequestBo;
150 }
151
152
153
154
155 public void setCurrentTimeStamp() {
156 final Timestamp now = CoreApiServiceLocator.getDateTimeService().getCurrentTimestamp();
157 this.setCreatedDate(now);
158 }
159 }