1 package org.kuali.ole.patron.merge.bo;
2
3 import org.kuali.ole.patron.bo.OlePatronDocument;
4 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5
6
7
8
9
10
11
12
13 public class OlePatronMergeDocument extends PersistableBusinessObjectBase {
14
15 private String barcode;
16 private String firstName;
17 private String lastName;
18 private String patronType;
19 private boolean checkSurvivor;
20 private boolean checkDuplicatePatron;
21 private OlePatronDocument olePatronDocument;
22
23
24
25
26 public boolean isCheckSurvivor() {
27 return checkSurvivor;
28 }
29
30 public void setCheckSurvivor(boolean checkSurvivor) {
31 this.checkSurvivor = checkSurvivor;
32 }
33
34
35
36
37 public boolean isCheckDuplicatePatron() {
38 return checkDuplicatePatron;
39 }
40
41
42
43
44
45 public void setCheckDuplicatePatron(boolean checkDuplicatePatron) {
46 this.checkDuplicatePatron = checkDuplicatePatron;
47 }
48
49
50
51
52 public String getBarcode() {
53 return barcode;
54 }
55
56
57
58
59
60 public void setBarcode(String barcode) {
61 this.barcode = barcode;
62 }
63
64
65
66
67 public String getFirstName() {
68 return firstName;
69 }
70
71
72
73
74
75 public void setFirstName(String firstName) {
76 this.firstName = firstName;
77 }
78
79
80
81
82
83 public String getLastName() {
84 return lastName;
85 }
86
87
88
89
90
91 public void setLastName(String lastName) {
92 this.lastName = lastName;
93 }
94
95
96
97
98
99 public String getPatronType() {
100 return patronType;
101 }
102
103
104
105
106
107 public void setPatronType(String patronType) {
108 this.patronType = patronType;
109 }
110
111
112 public OlePatronMergeDocument(OlePatronDocument olePatronDocument) {
113 this.setOlePatronDocument(olePatronDocument);
114 this.setFirstName(olePatronDocument.getEntity().getNames().get(0).getFirstName());
115 this.setLastName(olePatronDocument.getEntity().getNames().get(0).getLastName());
116 this.setBarcode(olePatronDocument.getBarcode());
117 this.setPatronType(olePatronDocument.getBorrowerTypeName());
118 this.setCheckSurvivor(false);
119 this.setCheckDuplicatePatron(false);
120 }
121
122
123
124
125 public OlePatronDocument getOlePatronDocument() {
126 return olePatronDocument;
127 }
128
129
130
131
132
133 public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
134 this.olePatronDocument = olePatronDocument;
135 }
136
137 public OlePatronMergeDocument() {
138 }
139 }