View Javadoc
1   package org.kuali.ole.deliver.bo;
2   
3   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
4   
5   /**
6    * Created with IntelliJ IDEA.
7    * User: ?
8    * Date: 10/11/12
9    * Time: 12:30 PM
10   * To change this template use File | Settings | File Templates.
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       * Gets the value of checkSurvivor property
24       *
25       * @return checkSurvivor
26       */
27      public boolean isCheckSurvivor() {
28          return checkSurvivor;
29      }
30  
31      public void setCheckSurvivor(boolean checkSurvivor) {
32          this.checkSurvivor = checkSurvivor;
33      }
34  
35      /**
36       * Gets the value of checkDuplicatePatron property
37       *
38       * @return checkDuplicatePatron
39       */
40      public boolean isCheckDuplicatePatron() {
41          return checkDuplicatePatron;
42      }
43  
44      /**
45       * Sets the value for documents property
46       *
47       * @param checkDuplicatePatron
48       */
49      public void setCheckDuplicatePatron(boolean checkDuplicatePatron) {
50          this.checkDuplicatePatron = checkDuplicatePatron;
51      }
52  
53      /**
54       * Gets the value of barcode property
55       *
56       * @return barcode
57       */
58      public String getBarcode() {
59          return barcode;
60      }
61  
62      /**
63       * Sets the value for documents property
64       *
65       * @param barcode
66       */
67      public void setBarcode(String barcode) {
68          this.barcode = barcode;
69      }
70  
71      /**
72       * Gets the value of firstName property
73       *
74       * @return firstName
75       */
76      public String getFirstName() {
77          return firstName;
78      }
79  
80      /**
81       * Sets the value for documents property
82       *
83       * @param firstName
84       */
85      public void setFirstName(String firstName) {
86          this.firstName = firstName;
87      }
88  
89      /**
90       * Gets the value of lastName property
91       *
92       * @return lastName
93       */
94      public String getLastName() {
95          return lastName;
96      }
97  
98      /**
99       * Sets the value for documents property
100      *
101      * @param lastName
102      */
103     public void setLastName(String lastName) {
104         this.lastName = lastName;
105     }
106 
107     /**
108      * Gets the value of patronType property
109      *
110      * @return patronType
111      */
112     public String getPatronType() {
113         return patronType;
114     }
115 
116     /**
117      * Sets the value for documents property
118      *
119      * @param patronType
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      * Gets the value of olePatronDocument property
138      *
139      * @return olePatronDocument
140      */
141     public OlePatronDocument getOlePatronDocument() {
142         return olePatronDocument;
143     }
144 
145     /**
146      * Sets the value for documents property
147      *
148      * @param olePatronDocument
149      */
150     public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
151         this.olePatronDocument = olePatronDocument;
152     }
153 
154     public OlePatronMergeDocument() {
155     }
156 }