001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.kfs.module.endow.businessobject;
017
018 import java.math.BigDecimal;
019 import java.sql.Date;
020 import java.text.ParseException;
021 import java.util.LinkedHashMap;
022
023 import org.kuali.kfs.module.endow.EndowConstants;
024 import org.kuali.kfs.module.endow.EndowPropertyConstants;
025 import org.kuali.kfs.module.endow.document.service.KEMService;
026 import org.kuali.kfs.sys.context.SpringContext;
027 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
028 import org.kuali.rice.kns.service.DateTimeService;
029 import org.kuali.rice.kns.service.ParameterService;
030
031 public class KEMIDCurrentReportingGroup extends PersistableBusinessObjectBase {
032
033 private String kemid;
034 private String securityId;
035 private String reportingGroupCode;
036 private String registrationCode;
037 private String ipIndicator;
038 private BigDecimal units;
039 private BigDecimal carryVal;
040 private BigDecimal marketVal;
041 private BigDecimal nextFYEstimatedIncome;
042 private BigDecimal remainderOfFYEstimatedIncome;
043 private BigDecimal annualEstimatedIncome;
044
045 private KEMID kemidObj;
046 private Security security;
047 private SecurityReportingGroup reportingGroup;
048 private RegistrationCode registration;
049 private IncomePrincipalIndicator incomePrincipalIndicator;
050
051 /**
052 * Gets the incomePrincipalIndicator.
053 *
054 * @return incomePrincipalIndicator
055 */
056 public IncomePrincipalIndicator getIncomePrincipalIndicator() {
057 return incomePrincipalIndicator;
058 }
059
060 /**
061 * Sets the incomePrincipalIndicator.
062 *
063 * @param incomePrincipalIndicator
064 */
065 public void setIncomePrincipalIndicator(IncomePrincipalIndicator incomePrincipalIndicator) {
066 this.incomePrincipalIndicator = incomePrincipalIndicator;
067 }
068
069 /**
070 * Gets the registration.
071 *
072 * @return registration
073 */
074 public RegistrationCode getRegistration() {
075 return registration;
076 }
077
078 /**
079 * Sets the registration.
080 *
081 * @param registration
082 */
083 public void setRegistration(RegistrationCode registration) {
084 this.registration = registration;
085 }
086
087 /**
088 * Gets the reportingGroup.
089 *
090 * @return reportingGroup
091 */
092 public SecurityReportingGroup getReportingGroup() {
093 return reportingGroup;
094 }
095
096 /**
097 * Sets the reportingGroup.
098 *
099 * @param reportingGroup
100 */
101 public void setReportingGroup(SecurityReportingGroup reportingGroup) {
102 this.reportingGroup = reportingGroup;
103 }
104
105 /**
106 * Gets the kemidObj
107 *
108 * @return kemidObj
109 */
110 public KEMID getKemidObj() {
111 return kemidObj;
112 }
113
114 /**
115 * Sets the kemidObj.
116 *
117 * @param kemidObj
118 */
119 public void setKemidObj(KEMID kemidObj) {
120 this.kemidObj = kemidObj;
121 }
122
123 /**
124 * Gets the security.
125 *
126 * @return security
127 */
128 public Security getSecurity() {
129 return security;
130 }
131
132 /**
133 * Sets the security.
134 *
135 * @param security
136 */
137 public void setSecurity(Security security) {
138 this.security = security;
139 }
140
141 /**
142 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
143 */
144 @Override
145 protected LinkedHashMap toStringMapper() {
146 LinkedHashMap m = new LinkedHashMap();
147 m.put(EndowPropertyConstants.KEMID, this.kemid);
148 return m;
149 }
150
151 /**
152 * Gets the annualEstimatedIncome.
153 *
154 * @return annualEstimatedIncome
155 */
156 public BigDecimal getAnnualEstimatedIncome() {
157 return annualEstimatedIncome;
158 }
159
160 /**
161 * Sets the annualEstimatedIncome.
162 *
163 * @param annualEstimatedIncome
164 */
165 public void setAnnualEstimatedIncome(BigDecimal annualEstimatedIncome) {
166 this.annualEstimatedIncome = annualEstimatedIncome;
167 }
168
169 /**
170 * Gets the carryVal.
171 *
172 * @return carryVal
173 */
174 public BigDecimal getCarryVal() {
175 return carryVal;
176 }
177
178 /**
179 * Sets the carryVal.
180 *
181 * @param carryVal
182 */
183 public void setCarryVal(BigDecimal carryVal) {
184 this.carryVal = carryVal;
185 }
186
187 /**
188 * Gets the ipIndicator.
189 *
190 * @return ipIndicator
191 */
192 public String getIpIndicator() {
193 return ipIndicator;
194 }
195
196 /**
197 * Sets the ipIndicator.
198 *
199 * @param ipIndicator
200 */
201 public void setIpIndicator(String ipIndicator) {
202 this.ipIndicator = ipIndicator;
203 }
204
205 /**
206 * Gets the kemid.
207 *
208 * @return kemid
209 */
210 public String getKemid() {
211 return kemid;
212 }
213
214 /**
215 * Sets the kemid.
216 *
217 * @param kemid
218 */
219 public void setKemid(String kemid) {
220 this.kemid = kemid;
221 }
222
223 /**
224 * Gets the marketVal.
225 *
226 * @return marketVal
227 */
228 public BigDecimal getMarketVal() {
229 return marketVal;
230 }
231
232 /**
233 * Sets the marketVal
234 *
235 * @param marketVal
236 */
237 public void setMarketVal(BigDecimal marketVal) {
238 this.marketVal = marketVal;
239 }
240
241 /**
242 * Gets the nextFYEstimatedIncome.
243 *
244 * @return nextFYEstimatedIncome
245 */
246 public BigDecimal getNextFYEstimatedIncome() {
247 return nextFYEstimatedIncome;
248 }
249
250 /**
251 * Sets the nextFYEstimatedIncome.
252 *
253 * @param nextFYEstimatedIncome
254 */
255 public void setNextFYEstimatedIncome(BigDecimal nextFYEstimatedIncome) {
256 this.nextFYEstimatedIncome = nextFYEstimatedIncome;
257 }
258
259 /**
260 * Gets the registrationCode.
261 *
262 * @return registrationCode
263 */
264 public String getRegistrationCode() {
265 return registrationCode;
266 }
267
268 /**
269 * Sets the registrationCode.
270 *
271 * @param registrationCode
272 */
273 public void setRegistrationCode(String registrationCode) {
274 this.registrationCode = registrationCode;
275 }
276
277 /**
278 * Gets the remainderOfFYEstimatedIncome.
279 *
280 * @return remainderOfFYEstimatedIncome
281 */
282 public BigDecimal getRemainderOfFYEstimatedIncome() {
283 return remainderOfFYEstimatedIncome;
284 }
285
286 /**
287 * Sets the remainderOfFYEstimatedIncome.
288 *
289 * @param remainderOfFYEstimatedIncome
290 */
291 public void setRemainderOfFYEstimatedIncome(BigDecimal remainderOfFYEstimatedIncome) {
292 this.remainderOfFYEstimatedIncome = remainderOfFYEstimatedIncome;
293 }
294
295 /**
296 * Gets the reportingGroupCode.
297 *
298 * @return reportingGroupCode
299 */
300 public String getReportingGroupCode() {
301 return reportingGroupCode;
302 }
303
304 /**
305 * Sets the reportingGroupCode.
306 *
307 * @param reportingGroupCode
308 */
309 public void setReportingGroupCode(String reportingGroupCode) {
310 this.reportingGroupCode = reportingGroupCode;
311 }
312
313 /**
314 * Gets the securityId.
315 *
316 * @return securityId
317 */
318 public String getSecurityId() {
319 return securityId;
320 }
321
322 /**
323 * TSets the securityId.
324 *
325 * @param securityId
326 */
327 public void setSecurityId(String securityId) {
328 this.securityId = securityId;
329 }
330
331 /**
332 * Gets the units.
333 *
334 * @return units
335 */
336 public BigDecimal getUnits() {
337 return units;
338 }
339
340 /**
341 * Sets the units.
342 *
343 * @param units
344 */
345 public void setUnits(BigDecimal units) {
346 this.units = units;
347 }
348
349 /**
350 * Gets the Balance Date which is the Current/System Process date
351 *
352 * @return the Balance Date
353 */
354 public Date getBalanceDate() {
355
356 return SpringContext.getBean(KEMService.class).getCurrentDate();
357 }
358
359
360 }