1 package org.kuali.ole.vnd.businessobject;
2
3 import org.kuali.ole.select.bo.OLEEResPltfrmEventType;
4 import org.kuali.ole.select.bo.OLELogType;
5 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6 import org.kuali.rice.krad.service.KRADServiceLocator;
7 import org.kuali.rice.krad.util.GlobalVariables;
8
9 import java.sql.Timestamp;
10 import java.util.HashMap;
11 import java.util.Map;
12
13
14
15
16 public class VendorEventLog extends PersistableBusinessObjectBase {
17
18
19 private String vendorEventLogId;
20
21 private String logTypeId;
22
23 private String logTypeName;
24
25 private OLELogType logType;
26
27 private String eventTypeId;
28
29 private String eventTypeName;
30
31 private OLEEResPltfrmEventType eventType;
32
33 private String note;
34
35 private Timestamp date;
36
37 private String userId;
38
39 private Integer vendorHeaderGeneratedIdentifier;
40
41 private Integer vendorDetailAssignedIdentifier;
42
43
44
45 public String getVendorEventLogId() {
46 return vendorEventLogId;
47 }
48
49 public void setVendorEventLogId(String vendorEventLogId) {
50 this.vendorEventLogId = vendorEventLogId;
51 }
52
53 public String getLogTypeId() {
54 return logTypeId;
55 }
56
57 public void setLogTypeId(String logTypeId) {
58 this.logTypeId = logTypeId;
59 }
60
61 public String getLogTypeName() {
62 if (this.logType != null) {
63 return logType.getLogTypeName();
64 } else if (this.logTypeId != null) {
65 Map logTypeMap = new HashMap();
66 logTypeMap.put("logTypeId", this.logTypeId);
67 OLELogType oleLogType = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OLELogType.class, logTypeMap);
68 if (oleLogType != null) {
69 return oleLogType.getLogTypeName();
70 }
71 }
72 return logTypeName;
73 }
74
75 public void setLogTypeName(String logTypeName) {
76 this.logTypeName = logTypeName;
77 }
78
79 public OLELogType getLogType() {
80 return logType;
81 }
82
83 public void setLogType(OLELogType logType) {
84 this.logType = logType;
85 }
86
87 public String getEventTypeId() {
88 return eventTypeId;
89 }
90
91 public void setEventTypeId(String eventTypeId) {
92 this.eventTypeId = eventTypeId;
93 }
94
95 public String getEventTypeName() {
96 if (this.eventType != null) {
97 return eventType.geteResPltfrmEventTypeName();
98 } else if (this.eventTypeId != null) {
99 Map eventTypeMap = new HashMap();
100 eventTypeMap.put("eResPltfrmEventTypeId", this.eventTypeId);
101 OLEEResPltfrmEventType oleEventType = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OLEEResPltfrmEventType.class, eventTypeMap);
102 if (oleEventType != null) {
103 return oleEventType.geteResPltfrmEventTypeName();
104 }
105 }
106 return eventTypeName;
107 }
108
109 public void setEventTypeName(String eventTypeName) {
110 this.eventTypeName = eventTypeName;
111 }
112
113 public OLEEResPltfrmEventType getEventType() {
114 return eventType;
115 }
116
117 public void setEventType(OLEEResPltfrmEventType eventType) {
118 this.eventType = eventType;
119 }
120
121 public String getNote() {
122 return note;
123 }
124
125 public void setNote(String note) {
126 this.note = note;
127 }
128
129 public Timestamp getDate() {
130 return date;
131 }
132
133 public void setDate(Timestamp date) {
134 this.date = date;
135 }
136
137 public String getUserId() {
138 return userId;
139 }
140
141 public void setUserId(String userId) {
142 this.userId = userId;
143 }
144
145 public Integer getVendorHeaderGeneratedIdentifier() {
146 return vendorHeaderGeneratedIdentifier;
147 }
148
149 public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
150 this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
151 }
152
153 public Integer getVendorDetailAssignedIdentifier() {
154 return vendorDetailAssignedIdentifier;
155 }
156
157 public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) {
158 this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
159 }
160
161 }