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   
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  
20  
21  
22  
23      public String getPatronLocalSeqId() {
24          return patronLocalSeqId;
25      }
26  
27      
28  
29  
30  
31  
32      public void setPatronLocalSeqId(String patronLocalSeqId) {
33          this.patronLocalSeqId = patronLocalSeqId;
34      }
35  
36      
37  
38  
39  
40  
41      public String getLocalId() {
42          return localId;
43      }
44  
45      
46  
47  
48  
49  
50      public void setLocalId(String localId) {
51          this.localId = localId;
52      }
53  
54      
55  
56  
57  
58  
59      public String getOlePatronId() {
60          return olePatronId;
61      }
62  
63      
64  
65  
66  
67  
68      public void setOlePatronId(String olePatronId) {
69          this.olePatronId = olePatronId;
70      }
71  
72      
73  
74  
75  
76  
77      public OlePatronDocument getOlePatronDocument() {
78          return olePatronDocument;
79      }
80  
81      
82  
83  
84  
85  
86      public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
87          this.olePatronDocument = olePatronDocument;
88      }
89  
90      
91  
92  
93  
94  
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 
105 
106 
107 
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 }