View Javadoc
1   package org.kuali.ole.deliver.bo;
2   
3   import org.kuali.ole.deliver.api.OlePatronLocalIdentificationContract;
4   import org.kuali.ole.deliver.api.OlePatronLocalIdentificationDefinition;
5   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6   
7   /**
8    * OlePatronLocalIdentificationBo provides local id of patron through getter and setter.
9    */
10  
11  public class OlePatronLocalIdentificationBo extends PersistableBusinessObjectBase implements OlePatronLocalIdentificationContract {
12  
13      private String patronLocalSeqId;
14      private String localId;
15      private String olePatronId;
16      private OlePatronDocument olePatronDocument;
17  
18      /**
19       * Gets the value of patronLocalSeqId property
20       *
21       * @return patronLocalSeqId
22       */
23      public String getPatronLocalSeqId() {
24          return patronLocalSeqId;
25      }
26  
27      /**
28       * Sets the value for patronLocalSeqId property
29       *
30       * @param patronLocalSeqId
31       */
32      public void setPatronLocalSeqId(String patronLocalSeqId) {
33          this.patronLocalSeqId = patronLocalSeqId;
34      }
35  
36      /**
37       * Gets the value of localId property
38       *
39       * @return localId
40       */
41      public String getLocalId() {
42          return localId;
43      }
44  
45      /**
46       * Sets the value for localId property
47       *
48       * @param localId
49       */
50      public void setLocalId(String localId) {
51          this.localId = localId;
52      }
53  
54      /**
55       * Gets the value of olePatronId property
56       *
57       * @return olePatronId
58       */
59      public String getOlePatronId() {
60          return olePatronId;
61      }
62  
63      /**
64       * Sets the value for olePatronId property
65       *
66       * @param olePatronId
67       */
68      public void setOlePatronId(String olePatronId) {
69          this.olePatronId = olePatronId;
70      }
71  
72      /**
73       * Gets the value of olePatronDocument property
74       *
75       * @return olePatronDocument
76       */
77      public OlePatronDocument getOlePatronDocument() {
78          return olePatronDocument;
79      }
80  
81      /**
82       * Sets the value for olePatronDocument property
83       *
84       * @param olePatronDocument
85       */
86      public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
87          this.olePatronDocument = olePatronDocument;
88      }
89  
90      /**
91       * This method converts the PersistableBusinessObjectBase OleAddressBo into immutable object OleAddressDefinition
92       *
93       * @param bo
94       * @return OleAddressDefinition
95       */
96      public static OlePatronLocalIdentificationDefinition to(org.kuali.ole.deliver.bo.OlePatronLocalIdentificationBo bo) {
97          if (bo == null) {
98              return null;
99          }
100         return OlePatronLocalIdentificationDefinition.Builder.create(bo).build();
101     }
102 
103     /**
104      * This method converts the immutable object OleAddressDefinition into PersistableBusinessObjectBase OleAddressBo
105      *
106      * @param imOleAddressDefinition
107      * @return bo
108      */
109     public static org.kuali.ole.deliver.bo.OlePatronLocalIdentificationBo from(OlePatronLocalIdentificationDefinition imOleAddressDefinition) {
110         if (imOleAddressDefinition == null) {
111             return null;
112         }
113 
114         org.kuali.ole.deliver.bo.OlePatronLocalIdentificationBo bo = new org.kuali.ole.deliver.bo.OlePatronLocalIdentificationBo();
115         bo.patronLocalSeqId = imOleAddressDefinition.getPatronLocalSeqId();
116         bo.olePatronId = imOleAddressDefinition.getOlePatronId();
117         bo.localId = imOleAddressDefinition.getLocalId();
118         bo.versionNumber = imOleAddressDefinition.getVersionNumber();
119 
120         return bo;
121     }
122 
123     @Override
124     public String getId() {
125         return this.patronLocalSeqId;
126     }
127 }