View Javadoc

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    * Created with IntelliJ IDEA.
8    * User: ?
9    * Date: 10/11/12
10   * Time: 12:30 PM
11   * To change this template use File | Settings | File Templates.
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       * Gets the value of checkSurvivor property
24       * @return checkSurvivor
25       */
26      public boolean isCheckSurvivor() {
27          return checkSurvivor;
28      }
29  
30      public void setCheckSurvivor(boolean checkSurvivor) {
31          this.checkSurvivor = checkSurvivor;
32      }
33      /**
34       * Gets the value of checkDuplicatePatron property
35       * @return checkDuplicatePatron
36       */
37      public boolean isCheckDuplicatePatron() {
38          return checkDuplicatePatron;
39      }
40  
41      /**
42       * Sets the value for documents property
43       * @param checkDuplicatePatron
44       */
45      public void setCheckDuplicatePatron(boolean checkDuplicatePatron) {
46          this.checkDuplicatePatron = checkDuplicatePatron;
47      }
48      /**
49       * Gets the value of barcode property
50       * @return barcode
51       */
52      public String getBarcode() {
53          return barcode;
54      }
55  
56      /**
57       * Sets the value for documents property
58       * @param barcode
59       */
60      public void setBarcode(String barcode) {
61          this.barcode = barcode;
62      }
63      /**
64       * Gets the value of firstName property
65       * @return firstName
66       */
67      public String getFirstName() {
68          return firstName;
69      }
70  
71      /**
72       * Sets the value for documents property
73       * @param firstName
74       */
75      public void setFirstName(String firstName) {
76          this.firstName = firstName;
77      }
78  
79      /**
80       * Gets the value of lastName property
81       * @return lastName
82       */
83      public String getLastName() {
84          return lastName;
85      }
86  
87      /**
88       * Sets the value for documents property
89       * @param lastName
90       */
91      public void setLastName(String lastName) {
92          this.lastName = lastName;
93      }
94  
95      /**
96       * Gets the value of patronType property
97       * @return patronType
98       */
99      public String getPatronType() {
100         return patronType;
101     }
102 
103     /**
104      * Sets the value for documents property
105      * @param patronType
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      * Gets the value of olePatronDocument property
123      * @return olePatronDocument
124      */
125     public OlePatronDocument getOlePatronDocument() {
126         return olePatronDocument;
127     }
128 
129     /**
130      * Sets the value for documents property
131      * @param olePatronDocument
132      */
133     public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
134         this.olePatronDocument = olePatronDocument;
135     }
136 
137     public OlePatronMergeDocument() {
138     }
139 }