1 package org.kuali.ole.deliver.bo;
2
3 import org.kuali.ole.deliver.api.OlePatronLostBarcodeContract;
4 import org.kuali.ole.deliver.api.OlePatronLostBarcodeDefinition;
5 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6
7 import java.sql.Date;
8
9
10
11
12 public class OlePatronLostBarcode extends PersistableBusinessObjectBase implements OlePatronLostBarcodeContract {
13
14 private String olePatronLostBarcodeId;
15 private String olePatronId;
16 private Date invalidOrLostBarcodeEffDate;
17 private String invalidOrLostBarcodeNumber;
18 private OlePatronDocument olePatronDocument;
19 private boolean revertBarcode;
20 private String status;
21 private String description;
22 private boolean active;
23 public String getOlePatronLostBarcodeId() {
24 return olePatronLostBarcodeId;
25 }
26
27 public void setOlePatronLostBarcodeId(String olePatronLostBarcodeId) {
28 this.olePatronLostBarcodeId = olePatronLostBarcodeId;
29 }
30
31 public String getOlePatronId() {
32 return olePatronId;
33 }
34
35 public void setOlePatronId(String olePatronId) {
36 this.olePatronId = olePatronId;
37 }
38
39 public Date getInvalidOrLostBarcodeEffDate() {
40 return invalidOrLostBarcodeEffDate;
41 }
42
43 public void setInvalidOrLostBarcodeEffDate(Date invalidOrLostBarcodeEffDate) {
44 this.invalidOrLostBarcodeEffDate = invalidOrLostBarcodeEffDate;
45 }
46
47 public String getInvalidOrLostBarcodeNumber() {
48 return invalidOrLostBarcodeNumber;
49 }
50
51 public void setInvalidOrLostBarcodeNumber(String invalidOrLostBarcodeNumber) {
52 this.invalidOrLostBarcodeNumber = invalidOrLostBarcodeNumber;
53 }
54
55 public OlePatronDocument getOlePatronDocument() {
56 return olePatronDocument;
57 }
58
59 public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
60 this.olePatronDocument = olePatronDocument;
61 }
62
63
64
65
66
67
68
69 public static OlePatronLostBarcodeDefinition to(org.kuali.ole.deliver.bo.OlePatronLostBarcode bo) {
70 if (bo == null) {
71 return null;
72 }
73 return OlePatronLostBarcodeDefinition.Builder.create(bo).build();
74 }
75
76
77
78
79
80
81
82 public static org.kuali.ole.deliver.bo.OlePatronLostBarcode from(OlePatronLostBarcodeDefinition im) {
83 if (im == null) {
84 return null;
85 }
86
87 org.kuali.ole.deliver.bo.OlePatronLostBarcode bo = new org.kuali.ole.deliver.bo.OlePatronLostBarcode();
88 bo.olePatronLostBarcodeId = im.getOlePatronLostBarcodeId();
89 bo.olePatronId = im.getOlePatronId();
90
91 bo.invalidOrLostBarcodeEffDate = im.getInvalidOrLostBarcodeEffDate();
92 bo.invalidOrLostBarcodeNumber = im.getInvalidOrLostBarcodeNumber();
93 bo.versionNumber = im.getVersionNumber();
94
95 return bo;
96 }
97
98 public boolean isRevertBarcode() {
99 return revertBarcode;
100 }
101
102 public void setRevertBarcode(boolean revertBarcode) {
103 this.revertBarcode = revertBarcode;
104 }
105
106 @Override
107 public String getId() {
108 return this.olePatronLostBarcodeId;
109 }
110
111 public String getStatus() {
112 return status;
113 }
114
115 public void setStatus(String status) {
116 this.status = status;
117 }
118
119 public String getDescription() {
120 return description;
121 }
122
123 public void setDescription(String description) {
124 this.description = description;
125 }
126
127 public boolean isActive() {
128 return active;
129 }
130
131 public void setActive(boolean active) {
132 this.active = active;
133 }
134 }