1 package org.kuali.ole.location.bo;
2
3 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
4
5 import java.util.LinkedHashMap;
6
7
8
9
10
11 public class OleLocation extends PersistableBusinessObjectBase {
12
13 private String locationId;
14 private String locationCode;
15 private String locationName;
16 private String parentLocationId;
17 private String levelId;
18 private String levelCode;
19 private OleLocation oleLocation;
20 private OleLocationLevel oleLocationLevel;
21
22
23
24
25
26 public String getLevelCode() {
27 return oleLocationLevel.getLevelCode();
28 }
29
30
31
32
33
34 public void setLevelCode(String levelCode) {
35 this.levelCode = levelCode;
36 }
37
38
39
40
41
42 public String getParentLocationId() {
43 return parentLocationId;
44 }
45
46
47
48
49
50 public void setParentLocationId(String parentLocationId) {
51 if(parentLocationId != null && parentLocationId.equals(""))
52 this.parentLocationId = null;
53 else
54 this.parentLocationId = parentLocationId;
55 }
56
57
58
59
60
61 public String getLocationName() {
62 return locationName;
63 }
64
65
66
67
68
69 public void setLocationName(String locationName) {
70 this.locationName = locationName;
71 }
72
73
74
75
76
77 public String getLocationCode() {
78 return locationCode;
79 }
80
81
82
83
84
85 public void setLocationCode(String locationCode) {
86 this.locationCode = locationCode;
87 }
88
89
90
91
92
93 public String getLocationId() {
94 return locationId;
95 }
96
97
98
99
100
101 public void setLocationId(String locationId) {
102 this.locationId = locationId;
103 }
104
105
106
107
108
109 public OleLocation getOleLocation() {
110 return oleLocation;
111 }
112
113
114
115
116
117 public void setOleLocation(OleLocation oleLocation) {
118 this.oleLocation = oleLocation;
119 }
120
121
122
123
124
125 public String getLevelId() {
126 return levelId;
127 }
128
129
130
131
132
133 public void setLevelId(String levelId) {
134 this.levelId = levelId;
135 }
136
137
138
139
140
141 public OleLocationLevel getOleLocationLevel() {
142 return oleLocationLevel;
143 }
144
145
146
147
148
149 public void setOleLocationLevel(OleLocationLevel oleLocationLevel) {
150 this.oleLocationLevel = oleLocationLevel;
151 }
152
153
154
155
156
157 protected LinkedHashMap toStringMapper() {
158 LinkedHashMap toStringMap = new LinkedHashMap();
159 toStringMap.put("locationId", locationId);
160 return toStringMap;
161 }
162 }