001package org.kuali.ole.deliver.bo;
002
003import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
004
005/**
006 * Created with IntelliJ IDEA.
007 * User: ?
008 * Date: 10/11/12
009 * Time: 12:30 PM
010 * To change this template use File | Settings | File Templates.
011 */
012public class OlePatronMergeDocument extends PersistableBusinessObjectBase {
013
014    private String barcode;
015    private String firstName;
016    private String lastName;
017    private String patronType;
018    private boolean checkSurvivor;
019    private boolean checkDuplicatePatron;
020    private OlePatronDocument olePatronDocument;
021
022    /**
023     * Gets the value of checkSurvivor property
024     *
025     * @return checkSurvivor
026     */
027    public boolean isCheckSurvivor() {
028        return checkSurvivor;
029    }
030
031    public void setCheckSurvivor(boolean checkSurvivor) {
032        this.checkSurvivor = checkSurvivor;
033    }
034
035    /**
036     * Gets the value of checkDuplicatePatron property
037     *
038     * @return checkDuplicatePatron
039     */
040    public boolean isCheckDuplicatePatron() {
041        return checkDuplicatePatron;
042    }
043
044    /**
045     * Sets the value for documents property
046     *
047     * @param checkDuplicatePatron
048     */
049    public void setCheckDuplicatePatron(boolean checkDuplicatePatron) {
050        this.checkDuplicatePatron = checkDuplicatePatron;
051    }
052
053    /**
054     * Gets the value of barcode property
055     *
056     * @return barcode
057     */
058    public String getBarcode() {
059        return barcode;
060    }
061
062    /**
063     * Sets the value for documents property
064     *
065     * @param barcode
066     */
067    public void setBarcode(String barcode) {
068        this.barcode = barcode;
069    }
070
071    /**
072     * Gets the value of firstName property
073     *
074     * @return firstName
075     */
076    public String getFirstName() {
077        return firstName;
078    }
079
080    /**
081     * Sets the value for documents property
082     *
083     * @param firstName
084     */
085    public void setFirstName(String firstName) {
086        this.firstName = firstName;
087    }
088
089    /**
090     * Gets the value of lastName property
091     *
092     * @return lastName
093     */
094    public String getLastName() {
095        return lastName;
096    }
097
098    /**
099     * 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}