001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.chart.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021: import org.kuali.core.bo.Summarizable;
022: import org.kuali.core.bo.user.UniversalUser;
023: import org.kuali.core.service.UniversalUserService;
024: import org.kuali.kfs.context.SpringContext;
025:
026: /**
027: *
028: */
029: public class Chart extends PersistableBusinessObjectBase implements
030: Summarizable {
031:
032: private static final long serialVersionUID = 4129020803214027609L;
033:
034: private String finChartOfAccountDescription;
035: private boolean finChartOfAccountActiveIndicator;
036: private String finCoaManagerUniversalId;
037: private String reportsToChartOfAccountsCode;
038: private String chartOfAccountsCode;
039: private String finAccountsPayableObjectCode;
040: private String finExternalEncumbranceObjCd;
041: private String finPreEncumbranceObjectCode;
042: private String financialCashObjectCode;
043: private String icrIncomeFinancialObjectCode;
044: private String finAccountsReceivableObjCode;
045: private String finInternalEncumbranceObjCd;
046: private String icrExpenseFinancialObjectCd;
047: private String incBdgtEliminationsFinObjCd;
048: private String expBdgtEliminationsFinObjCd;
049: private String fundBalanceObjectCode;
050:
051: private ObjectCode incBdgtEliminationsFinObj;
052: private ObjectCode expBdgtEliminationsFinObj;
053: private ObjectCode finAccountsPayableObject;
054: private ObjectCode finExternalEncumbranceObj;
055: private ObjectCode finPreEncumbranceObject;
056: private ObjectCode financialCashObject;
057: private ObjectCode icrIncomeFinancialObject;
058: private ObjectCode finAccountsReceivableObj;
059: private ObjectCode finInternalEncumbranceObj;
060: private ObjectCode icrExpenseFinancialObject;
061: private ObjectCode fundBalanceObject;
062: private UniversalUser finCoaManagerUniversal;
063: private Chart reportsToChartOfAccounts;
064:
065: /**
066: * Default no-arg constructor.
067: */
068: public Chart() {
069: }
070:
071: /**
072: * Gets the finChartOfAccountDescription attribute.
073: *
074: * @return Returns the finChartOfAccountDescription
075: */
076: public String getFinChartOfAccountDescription() {
077: return finChartOfAccountDescription;
078: }
079:
080: /**
081: * Sets the finChartOfAccountDescription attribute.
082: *
083: * @param finChartOfAccountDescription The finChartOfAccountDescription to set.
084: */
085: public void setFinChartOfAccountDescription(
086: String finChartOfAccountDescription) {
087: this .finChartOfAccountDescription = finChartOfAccountDescription;
088: }
089:
090: /**
091: * Gets the finChartOfAccountActiveIndicator attribute.
092: *
093: * @return Returns the finChartOfAccountActiveIndicator
094: */
095: public boolean isFinChartOfAccountActiveIndicator() {
096: return finChartOfAccountActiveIndicator;
097: }
098:
099: /**
100: * Sets the finChartOfAccountActiveIndicator attribute.
101: *
102: * @param finChartOfAccountActiveIndicator The finChartOfAccountActiveIndicator to set.
103: */
104: public void setFinChartOfAccountActiveIndicator(
105: boolean finChartOfAccountActiveIndicator) {
106: this .finChartOfAccountActiveIndicator = finChartOfAccountActiveIndicator;
107: }
108:
109: /**
110: * Gets the finAccountsPayableObject attribute.
111: *
112: * @return Returns the finAccountsPayableObject
113: */
114: public ObjectCode getFinAccountsPayableObject() {
115: return finAccountsPayableObject;
116: }
117:
118: /**
119: * Sets the finAccountsPayableObject attribute.
120: *
121: * @param finAccountsPayableObject The finAccountsPayableObject to set.
122: * @deprecated
123: */
124: public void setFinAccountsPayableObject(
125: ObjectCode finAccountsPayableObject) {
126: this .finAccountsPayableObject = finAccountsPayableObject;
127: }
128:
129: /**
130: * Gets the finExternalEncumbranceObj attribute.
131: *
132: * @return Returns the finExternalEncumbranceObj.
133: */
134: public ObjectCode getFinExternalEncumbranceObj() {
135: return finExternalEncumbranceObj;
136: }
137:
138: /**
139: * Sets the finExternalEncumbranceObj attribute value.
140: *
141: * @param finExternalEncumbranceObj The finExternalEncumbranceObj to set.
142: * @deprecated
143: */
144: public void setFinExternalEncumbranceObj(
145: ObjectCode finExternalEncumbranceObj) {
146: this .finExternalEncumbranceObj = finExternalEncumbranceObj;
147: }
148:
149: /**
150: * Gets the finPreEncumbranceObject attribute.
151: *
152: * @return Returns the finPreEncumbranceObject
153: */
154: public ObjectCode getFinPreEncumbranceObject() {
155: return finPreEncumbranceObject;
156: }
157:
158: /**
159: * Sets the finPreEncumbranceObject attribute.
160: *
161: * @param finPreEncumbranceObject The finPreEncumbranceObject to set.
162: * @deprecated
163: */
164: public void setFinPreEncumbranceObject(
165: ObjectCode finPreEncumbranceObject) {
166: this .finPreEncumbranceObject = finPreEncumbranceObject;
167: }
168:
169: /**
170: * Gets the financialCashObject attribute.
171: *
172: * @return Returns the financialCashObject
173: */
174: public ObjectCode getFinancialCashObject() {
175: return financialCashObject;
176: }
177:
178: /**
179: * Sets the financialCashObject attribute.
180: *
181: * @param financialCashObject The financialCashObject to set.
182: * @deprecated
183: */
184: public void setFinancialCashObject(ObjectCode financialCashObject) {
185: this .financialCashObject = financialCashObject;
186: }
187:
188: /**
189: * Gets the icrIncomeFinancialObject attribute.
190: *
191: * @return Returns the icrIncomeFinancialObject
192: */
193: public ObjectCode getIcrIncomeFinancialObject() {
194: return icrIncomeFinancialObject;
195: }
196:
197: /**
198: * Sets the icrIncomeFinancialObject attribute.
199: *
200: * @param icrIncomeFinancialObject The icrIncomeFinancialObject to set.
201: * @deprecated
202: */
203: public void setIcrIncomeFinancialObject(
204: ObjectCode icrIncomeFinancialObject) {
205: this .icrIncomeFinancialObject = icrIncomeFinancialObject;
206: }
207:
208: /**
209: * Gets the finAccountsReceivableObj attribute.
210: *
211: * @return Returns the finAccountsReceivableObj
212: */
213: public ObjectCode getFinAccountsReceivableObj() {
214: return finAccountsReceivableObj;
215: }
216:
217: /**
218: * Sets the finAccountsReceivableObj attribute.
219: *
220: * @param finAccountsReceivableObj The finAccountsReceivableObj to set.
221: * @deprecated
222: */
223: public void setFinAccountsReceivableObj(
224: ObjectCode finAccountsReceivableObj) {
225: this .finAccountsReceivableObj = finAccountsReceivableObj;
226: }
227:
228: public UniversalUser getFinCoaManagerUniversal() {
229: finCoaManagerUniversal = SpringContext.getBean(
230: UniversalUserService.class)
231: .updateUniversalUserIfNecessary(
232: finCoaManagerUniversalId,
233: finCoaManagerUniversal);
234: return finCoaManagerUniversal;
235: }
236:
237: /**
238: * Sets the finCoaManagerUniversal attribute.
239: *
240: * @param finCoaManagerUniversal The finCoaManagerUniversal to set.
241: * @deprecated
242: */
243: public void setFinCoaManagerUniversal(
244: UniversalUser finCoaManagerUniversal) {
245: this .finCoaManagerUniversal = finCoaManagerUniversal;
246: }
247:
248: /**
249: * Gets the reportsToChartOfAccounts attribute.
250: *
251: * @return Returns the reportsToChartOfAccounts
252: */
253: public Chart getReportsToChartOfAccounts() {
254: return reportsToChartOfAccounts;
255: }
256:
257: /**
258: * Sets the reportsToChartOfAccounts attribute.
259: *
260: * @param reportsToChartOfAccounts The reportsToChartOfAccounts to set.
261: * @deprecated
262: */
263: public void setReportsToChartOfAccounts(
264: Chart reportsToChartOfAccounts) {
265: this .reportsToChartOfAccounts = reportsToChartOfAccounts;
266: }
267:
268: /**
269: * Gets the finInternalEncumbranceObj attribute.
270: *
271: * @return Returns the finInternalEncumbranceObj.
272: */
273: public ObjectCode getFinInternalEncumbranceObj() {
274: return finInternalEncumbranceObj;
275: }
276:
277: /**
278: * Sets the finInternalEncumbranceObj attribute value.
279: *
280: * @param finInternalEncumbranceObj The finInternalEncumbranceObj to set.
281: * @deprecated
282: */
283: public void setFinInternalEncumbranceObj(
284: ObjectCode finInternalEncumbranceObj) {
285: this .finInternalEncumbranceObj = finInternalEncumbranceObj;
286: }
287:
288: /**
289: * Gets the icrExpenseFinancialObject attribute.
290: *
291: * @return Returns the icrExpenseFinancialObject.
292: */
293: public ObjectCode getIcrExpenseFinancialObject() {
294: return icrExpenseFinancialObject;
295: }
296:
297: /**
298: * Sets the icrExpenseFinancialObject attribute value.
299: *
300: * @param icrExpenseFinancialObject The icrExpenseFinancialObject to set.
301: * @deprecated
302: */
303: public void setIcrExpenseFinancialObject(
304: ObjectCode icrExpenseFinancialObject) {
305: this .icrExpenseFinancialObject = icrExpenseFinancialObject;
306: }
307:
308: /**
309: * Gets the chartOfAccountsCode attribute.
310: *
311: * @return Returns the chartOfAccountsCode.
312: */
313: public String getChartOfAccountsCode() {
314: return chartOfAccountsCode;
315: }
316:
317: /**
318: * Sets the chartOfAccountsCode attribute value.
319: *
320: * @param chartOfAccountsCode The chartOfAccountsCode to set.
321: */
322: public void setChartOfAccountsCode(String chartOfAccountsCode) {
323: this .chartOfAccountsCode = chartOfAccountsCode;
324: }
325:
326: /**
327: * Gets the expBdgtEliminationsFinObj attribute.
328: *
329: * @return Returns the expBdgtEliminationsFinObj.
330: */
331: public ObjectCode getExpBdgtEliminationsFinObj() {
332: return expBdgtEliminationsFinObj;
333: }
334:
335: /**
336: * Sets the expBdgtEliminationsFinObj attribute value.
337: *
338: * @param expBdgtEliminationsFinObj The expBdgtEliminationsFinObj to set.
339: * @deprecated
340: */
341: public void setExpBdgtEliminationsFinObj(
342: ObjectCode expBdgtEliminationsFinObj) {
343: this .expBdgtEliminationsFinObj = expBdgtEliminationsFinObj;
344: }
345:
346: /**
347: * Gets the incBdgtEliminationsFinObj attribute.
348: *
349: * @return Returns the incBdgtEliminationsFinObj.
350: */
351: public ObjectCode getIncBdgtEliminationsFinObj() {
352: return incBdgtEliminationsFinObj;
353: }
354:
355: /**
356: * Sets the incBdgtEliminationsFinObj attribute value.
357: *
358: * @param incBdgtEliminationsFinObj The incBdgtEliminationsFinObj to set.
359: * @deprecated
360: */
361: public void setIncBdgtEliminationsFinObj(
362: ObjectCode incBdgtEliminationsFinObj) {
363: this .incBdgtEliminationsFinObj = incBdgtEliminationsFinObj;
364: }
365:
366: /**
367: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
368: */
369: protected LinkedHashMap toStringMapper() {
370: LinkedHashMap m = new LinkedHashMap();
371:
372: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
373:
374: return m;
375: }
376:
377: /**
378: * Gets the finAccountsPayableObjectCode attribute.
379: *
380: * @return Returns the finAccountsPayableObjectCode.
381: */
382: public String getFinAccountsPayableObjectCode() {
383: return finAccountsPayableObjectCode;
384: }
385:
386: /**
387: * Sets the finAccountsPayableObjectCode attribute value.
388: *
389: * @param finAccountsPayableObjectCode The finAccountsPayableObjectCode to set.
390: */
391: public void setFinAccountsPayableObjectCode(
392: String finAccountsPayableObjectCode) {
393: this .finAccountsPayableObjectCode = finAccountsPayableObjectCode;
394: }
395:
396: /**
397: * Gets the finAccountsReceivableObjCode attribute.
398: *
399: * @return Returns the finAccountsReceivableObjCode.
400: */
401: public String getFinAccountsReceivableObjCode() {
402: return finAccountsReceivableObjCode;
403: }
404:
405: /**
406: * Sets the finAccountsReceivableObjCode attribute value.
407: *
408: * @param finAccountsReceivableObjCode The finAccountsReceivableObjCode to set.
409: */
410: public void setFinAccountsReceivableObjCode(
411: String finAccountsReceivableObjCode) {
412: this .finAccountsReceivableObjCode = finAccountsReceivableObjCode;
413: }
414:
415: /**
416: * Gets the financialCashObjectCode attribute.
417: *
418: * @return Returns the financialCashObjectCode.
419: */
420: public String getFinancialCashObjectCode() {
421: return financialCashObjectCode;
422: }
423:
424: /**
425: * Sets the financialCashObjectCode attribute value.
426: *
427: * @param financialCashObjectCode The financialCashObjectCode to set.
428: */
429: public void setFinancialCashObjectCode(
430: String financialCashObjectCode) {
431: this .financialCashObjectCode = financialCashObjectCode;
432: }
433:
434: /**
435: * Gets the finExternalEncumbranceObjCd attribute.
436: *
437: * @return Returns the finExternalEncumbranceObjCd.
438: */
439: public String getFinExternalEncumbranceObjCd() {
440: return finExternalEncumbranceObjCd;
441: }
442:
443: /**
444: * Sets the finExternalEncumbranceObjCd attribute value.
445: *
446: * @param finExternalEncumbranceObjCd The finExternalEncumbranceObjCd to set.
447: */
448: public void setFinExternalEncumbranceObjCd(
449: String finExternalEncumbranceObjCd) {
450: this .finExternalEncumbranceObjCd = finExternalEncumbranceObjCd;
451: }
452:
453: /**
454: * Gets the finInternalEncumbranceObjCd attribute.
455: *
456: * @return Returns the finInternalEncumbranceObjCd.
457: */
458: public String getFinInternalEncumbranceObjCd() {
459: return finInternalEncumbranceObjCd;
460: }
461:
462: /**
463: * Sets the finInternalEncumbranceObjCd attribute value.
464: *
465: * @param finInternalEncumbranceObjCd The finInternalEncumbranceObjCd to set.
466: */
467: public void setFinInternalEncumbranceObjCd(
468: String finInternalEncumbranceObjCd) {
469: this .finInternalEncumbranceObjCd = finInternalEncumbranceObjCd;
470: }
471:
472: /**
473: * Gets the finPreEncumbranceObjectCode attribute.
474: *
475: * @return Returns the finPreEncumbranceObjectCode.
476: */
477: public String getFinPreEncumbranceObjectCode() {
478: return finPreEncumbranceObjectCode;
479: }
480:
481: /**
482: * Sets the finPreEncumbranceObjectCode attribute value.
483: *
484: * @param finPreEncumbranceObjectCode The finPreEncumbranceObjectCode to set.
485: */
486: public void setFinPreEncumbranceObjectCode(
487: String finPreEncumbranceObjectCode) {
488: this .finPreEncumbranceObjectCode = finPreEncumbranceObjectCode;
489: }
490:
491: /**
492: * Gets the icrExpenseFinancialObjectCd attribute.
493: *
494: * @return Returns the icrExpenseFinancialObjectCd.
495: */
496: public String getIcrExpenseFinancialObjectCd() {
497: return icrExpenseFinancialObjectCd;
498: }
499:
500: /**
501: * Sets the icrExpenseFinancialObjectCd attribute value.
502: *
503: * @param icrExpenseFinancialObjectCd The icrExpenseFinancialObjectCd to set.
504: */
505: public void setIcrExpenseFinancialObjectCd(
506: String icrExpenseFinancialObjectCd) {
507: this .icrExpenseFinancialObjectCd = icrExpenseFinancialObjectCd;
508: }
509:
510: /**
511: * Gets the icrIncomeFinancialObjectCode attribute.
512: *
513: * @return Returns the icrIncomeFinancialObjectCode.
514: */
515: public String getIcrIncomeFinancialObjectCode() {
516: return icrIncomeFinancialObjectCode;
517: }
518:
519: /**
520: * Sets the icrIncomeFinancialObjectCode attribute value.
521: *
522: * @param icrIncomeFinancialObjectCode The icrIncomeFinancialObjectCode to set.
523: */
524: public void setIcrIncomeFinancialObjectCode(
525: String icrIncomeFinancialObjectCode) {
526: this .icrIncomeFinancialObjectCode = icrIncomeFinancialObjectCode;
527: }
528:
529: /**
530: * Gets the expBdgtEliminationsFinObjCd attribute.
531: *
532: * @return Returns the expBdgtEliminationsFinObjCd
533: */
534: public String getExpBdgtEliminationsFinObjCd() {
535: return expBdgtEliminationsFinObjCd;
536: }
537:
538: /**
539: * Sets the expBdgtEliminationsFinObjCd attribute.
540: *
541: * @param expBdgtEliminationsFinObjCd The expBdgtEliminationsFinObjCd to set.
542: */
543: public void setExpBdgtEliminationsFinObjCd(
544: String expBdgtEliminationsFinObjCd) {
545: this .expBdgtEliminationsFinObjCd = expBdgtEliminationsFinObjCd;
546: }
547:
548: /**
549: * Gets the incBdgtEliminationsFinObjCd attribute.
550: *
551: * @return Returns the incBdgtEliminationsFinObjCd
552: */
553: public String getIncBdgtEliminationsFinObjCd() {
554: return incBdgtEliminationsFinObjCd;
555: }
556:
557: /**
558: * Sets the incBdgtEliminationsFinObjCd attribute.
559: *
560: * @param incBdgtEliminationsFinObjCd The incBdgtEliminationsFinObjCd to set.
561: */
562: public void setIncBdgtEliminationsFinObjCd(
563: String incBdgtEliminationsFinObjCd) {
564: this .incBdgtEliminationsFinObjCd = incBdgtEliminationsFinObjCd;
565: }
566:
567: /**
568: * @return Returns the finCoaManagerUniversalId.
569: */
570: public String getFinCoaManagerUniversalId() {
571: return finCoaManagerUniversalId;
572: }
573:
574: /**
575: * @param finCoaManagerUniversalId The finCoaManagerUniversalId to set.
576: */
577: public void setFinCoaManagerUniversalId(
578: String finCoaManagerUniversalId) {
579: this .finCoaManagerUniversalId = finCoaManagerUniversalId;
580: }
581:
582: /**
583: * @return Returns the reportsToChartOfAccountsCode.
584: */
585: public String getReportsToChartOfAccountsCode() {
586: return reportsToChartOfAccountsCode;
587: }
588:
589: /**
590: * @param reportsToChartOfAccountsCode The reportsToChartOfAccountsCode to set.
591: */
592: public void setReportsToChartOfAccountsCode(
593: String reportsToChartOfAccountsCode) {
594: this .reportsToChartOfAccountsCode = reportsToChartOfAccountsCode;
595: }
596:
597: /**
598: * Gets the fundBalanceObject attribute.
599: *
600: * @return Returns the fundBalanceObject.
601: */
602: public ObjectCode getFundBalanceObject() {
603: return fundBalanceObject;
604: }
605:
606: /**
607: * Sets the fundBalanceObject attribute value.
608: *
609: * @param fundBalanceObject The fundBalanceObject to set.
610: * @deprecated
611: */
612: public void setFundBalanceObject(ObjectCode fundBalanceObject) {
613: this .fundBalanceObject = fundBalanceObject;
614: }
615:
616: /**
617: * Gets the fundBalanceObjectCode attribute.
618: *
619: * @return Returns the fundBalanceObjectCode.
620: */
621: public String getFundBalanceObjectCode() {
622: return fundBalanceObjectCode;
623: }
624:
625: /**
626: * Sets the fundBalanceObjectCode attribute value.
627: *
628: * @param fundBalanceObjectCode The fundBalanceObjectCode to set.
629: */
630: public void setFundBalanceObjectCode(String fundBalanceObjectCode) {
631: this .fundBalanceObjectCode = fundBalanceObjectCode;
632: }
633:
634: /**
635: * @return Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
636: */
637: public String getCodeAndDescription() {
638: String theString = getChartOfAccountsCode() + " - "
639: + getFinChartOfAccountDescription();
640: return theString;
641: }
642:
643: public String getCode() {
644: return this .chartOfAccountsCode;
645: }
646:
647: public String getName() {
648: return this.finChartOfAccountDescription;
649: }
650:
651: }
|