1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.module.purap.businessobject;
17
18 import org.kuali.ole.sys.businessobject.Building;
19 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
20
21 import java.util.LinkedHashMap;
22
23 public class DefaultPrincipalAddress extends PersistableBusinessObjectBase {
24
25 private String principalId;
26 private String campusCode;
27 private String buildingCode;
28 private String buildingRoomNumber;
29
30 private Building building;
31
32 public DefaultPrincipalAddress() {
33 super();
34 }
35
36 public DefaultPrincipalAddress(String principalId) {
37 super();
38 setPrincipalId(principalId);
39 }
40
41 public DefaultPrincipalAddress(String principalId, String campusCode, String buildingCode, String buildingRoomNumber) {
42 super();
43 setPrincipalId(principalId);
44 setCampusCode(campusCode);
45 setBuildingCode(buildingCode);
46 setBuildingRoomNumber(buildingRoomNumber);
47 }
48
49 public void setDefaultBuilding(String campusCode, String buildingCode, String buildingRoomNumber) {
50 setCampusCode(campusCode);
51 setBuildingCode(buildingCode);
52 setBuildingRoomNumber(buildingRoomNumber);
53 }
54
55 public String getBuildingCode() {
56 return buildingCode;
57 }
58
59
60 public void setBuildingCode(String buildingCode) {
61 this.buildingCode = buildingCode;
62 }
63
64
65 public String getBuildingRoomNumber() {
66 return buildingRoomNumber;
67 }
68
69
70 public void setBuildingRoomNumber(String buildingRoomNumber) {
71 this.buildingRoomNumber = buildingRoomNumber;
72 }
73
74
75 public String getCampusCode() {
76 return campusCode;
77 }
78
79
80 public void setCampusCode(String campusCode) {
81 this.campusCode = campusCode;
82 }
83
84
85 public String getPrincipalId() {
86 return principalId;
87 }
88
89
90 public void setPrincipalId(String principleId) {
91 this.principalId = principleId;
92 }
93
94
95 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
96 LinkedHashMap m = new LinkedHashMap();
97 m.put("principalId", this.principalId);
98 return m;
99 }
100
101
102 public Building getBuilding() {
103 return building;
104 }
105
106
107 public void setBuilding(Building building) {
108 this.building = building;
109 }
110 }