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