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.user.UniversalUser;
022: import org.kuali.core.service.UniversalUserService;
023: import org.kuali.kfs.context.SpringContext;
024:
025: /**
026: * Reporting Codes Business Object
027: */
028: public class ReportingCodes extends PersistableBusinessObjectBase {
029:
030: private static final long serialVersionUID = -1585612121519839488L;
031: private String chartOfAccountsCode;
032: private String organizationCode;
033: private String financialReportingCode;
034: private String financialReportingCodeDescription;
035: private String financialReportingCodeMgrId;
036: private String financialReportsToReportingCode;
037:
038: private Chart chart;
039: private Org org;
040: private UniversalUser universalUser;
041: private ReportingCodes reportingCodes;
042:
043: /**
044: * @return Returns the chartOfAccountsCode.
045: */
046: public String getChartOfAccountsCode() {
047: return chartOfAccountsCode;
048: }
049:
050: /**
051: * @param chartOfAccountsCode The chartOfAccountsCode to set.
052: */
053: public void setChartOfAccountsCode(String chartOfAccountsCode) {
054: this .chartOfAccountsCode = chartOfAccountsCode;
055: }
056:
057: /**
058: * @return Returns the financialReportingCode.
059: */
060: public String getFinancialReportingCode() {
061: return financialReportingCode;
062: }
063:
064: /**
065: * @param financialReportingCode The financialReportingCode to set.
066: */
067: public void setFinancialReportingCode(String financialReportingCode) {
068: this .financialReportingCode = financialReportingCode;
069: }
070:
071: /**
072: * @return Returns the financialReportingCodeDescription.
073: */
074: public String getFinancialReportingCodeDescription() {
075: return financialReportingCodeDescription;
076: }
077:
078: /**
079: * @param financialReportingCodeDescription The financialReportingCodeDescription to set.
080: */
081: public void setFinancialReportingCodeDescription(
082: String financialReportingCodeDescription) {
083: this .financialReportingCodeDescription = financialReportingCodeDescription;
084: }
085:
086: /**
087: * @return Returns the financialReportingCodeMgrId.
088: */
089: public String getFinancialReportingCodeMgrId() {
090: return financialReportingCodeMgrId;
091: }
092:
093: /**
094: * @param financialReportingCodeMgrId The financialReportingCodeMgrId to set.
095: */
096: public void setFinancialReportingCodeMgrId(
097: String financialReportingCodeMgrId) {
098: this .financialReportingCodeMgrId = financialReportingCodeMgrId;
099: }
100:
101: /**
102: * @return Returns the organizationCode.
103: */
104: public String getOrganizationCode() {
105: return organizationCode;
106: }
107:
108: /**
109: * @param organizationCode The organizationCode to set.
110: */
111: public void setOrganizationCode(String organizationCode) {
112: this .organizationCode = organizationCode;
113: }
114:
115: /**
116: * @return Returns the financialReportsToReportingCode.
117: */
118: public String getFinancialReportsToReportingCode() {
119: return financialReportsToReportingCode;
120: }
121:
122: /**
123: * @param financialReportsToReportingCode The financialReportsToReportingCode to set.
124: */
125: public void setFinancialReportsToReportingCode(
126: String financialReportsToReportingCode) {
127: this .financialReportsToReportingCode = financialReportsToReportingCode;
128: }
129:
130: /**
131: * @return Returns the chart.
132: */
133: public Chart getChart() {
134: return chart;
135: }
136:
137: /**
138: * @param chart The chart to set.
139: * @deprecated
140: */
141: public void setChart(Chart chart) {
142: this .chart = chart;
143: }
144:
145: /**
146: * @return Returns the org.
147: */
148: public Org getOrg() {
149: return org;
150: }
151:
152: /**
153: * @param org The org to set.
154: * @deprecated
155: */
156: public void setOrg(Org org) {
157: this .org = org;
158: }
159:
160: public UniversalUser getUniversalUser() {
161: universalUser = SpringContext.getBean(
162: UniversalUserService.class)
163: .updateUniversalUserIfNecessary(
164: financialReportingCodeMgrId, universalUser);
165: return universalUser;
166: }
167:
168: /**
169: * @param universalUser The universalUser to set.
170: * @deprecated
171: */
172: public void setUniversalUser(UniversalUser universalUser) {
173: this .universalUser = universalUser;
174: }
175:
176: /**
177: * @return Returns the reportingCodes.
178: */
179: public ReportingCodes getReportingCodes() {
180: return reportingCodes;
181: }
182:
183: /**
184: * @param reportingCodes The reportingCodes to set.
185: * @deprecated
186: */
187: public void setReportingCodes(ReportingCodes reportingCodes) {
188: this .reportingCodes = reportingCodes;
189: }
190:
191: /**
192: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
193: */
194: protected LinkedHashMap toStringMapper() {
195: LinkedHashMap m = new LinkedHashMap();
196: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
197: m.put("organizationCode", this .organizationCode);
198: m.put("financialReportingCode", this .financialReportingCode);
199: m.put("financialReportingCodeDescription",
200: this .financialReportingCodeDescription);
201: m.put("financialReportingCodeMgrId",
202: this .financialReportingCodeMgrId);
203: m.put("financialReportsToReportingCode",
204: this.financialReportsToReportingCode);
205: return m;
206: }
207:
208: }
|