1 package org.kuali.ole.deliver.bo;
2
3 import org.kuali.ole.deliver.api.OleEntityAddressContract;
4 import org.kuali.ole.deliver.api.OleEntityAddressDefinition;
5 import org.kuali.rice.kim.impl.identity.address.EntityAddressBo;
6 import org.kuali.rice.krad.bo.BusinessObjectBase;
7
8
9
10
11 public class OleEntityAddressBo extends BusinessObjectBase implements OleEntityAddressContract {
12
13 private OleAddressBo oleAddressBo;
14
15 private EntityAddressBo entityAddressBo;
16
17
18
19
20
21
22 public EntityAddressBo getEntityAddressBo() {
23 return entityAddressBo;
24 }
25
26
27
28
29
30
31 public void setEntityAddressBo(EntityAddressBo entityAddressBo) {
32 this.entityAddressBo = entityAddressBo;
33 }
34
35
36
37
38
39
40 public OleAddressBo getOleAddressBo() {
41 return oleAddressBo;
42 }
43
44
45
46
47
48
49 public void setOleAddressBo(OleAddressBo oleAddressBo) {
50 this.oleAddressBo = oleAddressBo;
51 }
52
53
54
55
56
57
58
59 public static OleEntityAddressDefinition to(org.kuali.ole.deliver.bo.OleEntityAddressBo bo) {
60 if (bo == null) {
61 return null;
62 }
63 return OleEntityAddressDefinition.Builder.create(bo).build();
64 }
65
66
67
68
69
70
71
72 public static org.kuali.ole.deliver.bo.OleEntityAddressBo from(OleEntityAddressDefinition im) {
73 if (im == null) {
74 return null;
75 }
76
77 org.kuali.ole.deliver.bo.OleEntityAddressBo bo = new org.kuali.ole.deliver.bo.OleEntityAddressBo();
78
79 if (im.getOleAddressBo() != null) {
80 bo.oleAddressBo = OleAddressBo.from(im.getOleAddressBo());
81 }
82
83 if (im.getEntityAddressBo() != null) {
84 bo.entityAddressBo = EntityAddressBo.from(im.getEntityAddressBo());
85 }
86
87 return bo;
88 }
89
90
91 @Override
92 public void refresh() {
93
94 }
95 }