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
017 package org.kuali.kfs.coa.businessobject;
018
019 import java.util.LinkedHashMap;
020
021 import org.kuali.rice.kns.bo.Inactivateable;
022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023
024 /**
025 *
026 */
027 public class SubAccount extends PersistableBusinessObjectBase implements Inactivateable {
028
029 private static final long serialVersionUID = 6853259976912014273L;
030
031 private String chartOfAccountsCode;
032 private String accountNumber;
033 private String subAccountNumber;
034 private String subAccountName;
035 private boolean active;
036 private String financialReportChartCode;
037 private String finReportOrganizationCode;
038 private String financialReportingCode;
039
040 private A21SubAccount a21SubAccount;
041 private Account account;
042 private ReportingCode reportingCode;
043 private Chart chart;
044 private Organization org;
045 private Chart financialReportChart;
046
047
048 // Several kinds of Dummy Attributes for dividing sections on Inquiry page
049 private String financialReportingCodeSectionBlank;
050 private String financialReportingCodeSection;
051 private String cgCostSharingSectionBlank;
052 private String cgCostSharingSection;
053 private String cgICRSectionBlank;
054 private String cgICRSection;
055
056 /**
057 * Default no-arg constructor.
058 */
059 public SubAccount() {
060 }
061
062 /**
063 * Gets the accountNumber attribute.
064 *
065 * @return Returns the accountNumber.
066 */
067 public String getAccountNumber() {
068 return accountNumber;
069 }
070
071 /**
072 * Sets the accountNumber attribute value.
073 */
074 public void setAccountNumber(String accountNumber) {
075 this.accountNumber = accountNumber;
076 }
077
078 /**
079 * Gets the chartOfAccountsCode attribute.
080 *
081 * @return Returns the chartOfAccountsCode.
082 */
083 public String getChartOfAccountsCode() {
084 return chartOfAccountsCode;
085 }
086
087 /**
088 * Sets the chartOfAccountsCode attribute value.
089 *
090 * @param chartOfAccountsCode The chartOfAccountsCode to set.
091 */
092 public void setChartOfAccountsCode(String chartOfAccountsCode) {
093 this.chartOfAccountsCode = chartOfAccountsCode;
094 }
095
096 /**
097 * Sets the financialReporting attribute value.
098 *
099 * @param reportingCode The financialReporting to set.
100 * @deprecated
101 */
102 public void setReportingCode(ReportingCode reportingCode) {
103 this.reportingCode = reportingCode;
104 }
105
106 /**
107 * Gets the subAccountName attribute.
108 *
109 * @return Returns the subAccountName
110 */
111 public String getSubAccountName() {
112 return subAccountName;
113 }
114
115 /**
116 * Sets the subAccountName attribute.
117 *
118 * @param subAccountName The subAccountName to set.
119 */
120 public void setSubAccountName(String subAccountName) {
121 this.subAccountName = subAccountName;
122 }
123
124 /**
125 * Gets the active attribute.
126 *
127 * @return Returns the active
128 */
129 public boolean isActive() {
130 return active;
131 }
132
133 /**
134 * Sets the active attribute.
135 *
136 * @param active The active to set.
137 */
138 public void setActive(boolean active) {
139 this.active = active;
140 }
141
142 /**
143 * Gets the account attribute.
144 *
145 * @return Returns the account
146 */
147 public Account getAccount() {
148 return account;
149 }
150
151 /**
152 * Sets the account attribute.
153 *
154 * @param account The account to set.
155 */
156 public void setAccount(Account account) {
157 this.account = account;
158 }
159
160 /**
161 * Gets the subAccount attribute.
162 *
163 * @return Returns the subAccount
164 */
165 public String getSubAccountNumber() {
166 return subAccountNumber;
167 }
168
169 /**
170 * Sets the subAccount attribute.
171 *
172 * @param subAccount The subAccount to set.
173 */
174 public void setSubAccountNumber(String subAccountNumber) {
175 this.subAccountNumber = subAccountNumber;
176 }
177
178 /**
179 * Gets the financialReporting attribute.
180 *
181 * @return Returns the financialReporting
182 */
183 public ReportingCode getReportingCode() {
184 return reportingCode;
185 }
186
187
188 /**
189 * @return Returns the financialReportChartCode.
190 */
191 public String getFinancialReportChartCode() {
192 return financialReportChartCode;
193 }
194
195 /**
196 * @param financialReportChartCode The financialReportChartCode to set.
197 */
198 public void setFinancialReportChartCode(String financialReportChartCode) {
199 this.financialReportChartCode = financialReportChartCode;
200 }
201
202 /**
203 * @return Returns the financialReportingCode.
204 */
205 public String getFinancialReportingCode() {
206 return financialReportingCode;
207 }
208
209 /**
210 * @param financialReportingCode The financialReportingCode to set.
211 */
212 public void setFinancialReportingCode(String financialReportingCode) {
213 this.financialReportingCode = financialReportingCode;
214 }
215
216 /**
217 * @return Returns the finReportOrganizationCode.
218 */
219 public String getFinReportOrganizationCode() {
220 return finReportOrganizationCode;
221 }
222
223 /**
224 * @param finReportOrganizationCode The finReportOrganizationCode to set.
225 */
226 public void setFinReportOrganizationCode(String finReportOrganizationCode) {
227 this.finReportOrganizationCode = finReportOrganizationCode;
228 }
229
230 /**
231 * Gets the a21SubAccount attribute.
232 *
233 * @return Returns the a21SubAccount.
234 */
235 public A21SubAccount getA21SubAccount() {
236 return a21SubAccount;
237 }
238
239 /**
240 * Sets the a21SubAccount attribute value.
241 *
242 * @param subAccount The a21SubAccount to set.
243 */
244 public void setA21SubAccount(A21SubAccount subAccount) {
245 a21SubAccount = subAccount;
246 }
247
248 /**
249 * @return Returns the chart.
250 */
251 public Chart getChart() {
252 return chart;
253 }
254
255 /**
256 * @param chart The chart to set.
257 * @deprecated
258 */
259 public void setChart(Chart chart) {
260 this.chart = chart;
261 }
262
263 /**
264 * @return Returns the financialReportChart.
265 */
266 public Chart getFinancialReportChart() {
267 return financialReportChart;
268 }
269
270 /**
271 * @param financialReportChart The financialReportChart to set.
272 * @deprecated
273 */
274 public void setFinancialReportChart(Chart financialReportChart) {
275 this.financialReportChart = financialReportChart;
276 }
277
278 /**
279 * @return Returns the org.
280 */
281 public Organization getOrg() {
282 return org;
283 }
284
285 /**
286 * @param org The org to set.
287 * @deprecated
288 */
289 public void setOrg(Organization org) {
290 this.org = org;
291 }
292
293 /**
294 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
295 */
296 protected LinkedHashMap toStringMapper() {
297 LinkedHashMap m = new LinkedHashMap();
298 m.put("chartCode", this.chartOfAccountsCode);
299 m.put("account", this.accountNumber);
300 m.put("subAccountNumber", this.subAccountNumber);
301 return m;
302 }
303
304 /**
305 * Gets the cGCostSharingSectionBlank attribute.
306 *
307 * @return Returns the cGCostSharingSectionBlank.
308 */
309 public String getCgCostSharingSectionBlank() {
310 return cgCostSharingSectionBlank;
311 }
312
313 /**
314 * Gets the cGICRSectionBlank attribute.
315 *
316 * @return Returns the cGICRSectionBlank.
317 */
318 public String getCgICRSectionBlank() {
319 return cgICRSectionBlank;
320 }
321
322 /**
323 * Gets the financialReportingCodeSectionBlank attribute.
324 *
325 * @return Returns the financialReportingCodeSectionBlank.
326 */
327 public String getFinancialReportingCodeSectionBlank() {
328 return financialReportingCodeSectionBlank;
329 }
330
331 /**
332 * Gets the cGCostSharingSection attribute.
333 *
334 * @return Returns the cGCostSharingSection.
335 */
336 public String getCgCostSharingSection() {
337 return cgCostSharingSection;
338 }
339
340 /**
341 * Gets the cGICRSection attribute.
342 *
343 * @return Returns the cGICRSection.
344 */
345 public String getCgICRSection() {
346 return cgICRSection;
347 }
348
349 /**
350 * Gets the financialReportingCodeSection attribute.
351 *
352 * @return Returns the financialReportingCodeSection.
353 */
354 public String getFinancialReportingCodeSection() {
355 return financialReportingCodeSection;
356 }
357 }