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