View Javadoc
1   /*
2    * Copyright 2005-2006 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.kuali.ole.coa.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.ole.sys.OLEConstants;
22  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  /**
26   * 
27   */
28  public class SubAccount extends PersistableBusinessObjectBase implements MutableInactivatable {
29  
30      private static final long serialVersionUID = 6853259976912014273L;
31  
32      public static final String CACHE_NAME = OLEConstants.APPLICATION_NAMESPACE_CODE + "/" + "SubAccount";
33      
34      private String chartOfAccountsCode;
35      private String accountNumber;
36      private String subAccountNumber;
37      private String subAccountName;
38      private boolean active;
39      private String financialReportChartCode;
40      private String finReportOrganizationCode;
41      private String financialReportingCode;
42  
43      private A21SubAccount a21SubAccount;
44      private Account account;
45      private ReportingCode reportingCode;
46      private Chart chart;
47      private Organization org;
48      private Chart financialReportChart;
49  
50  
51      // Several kinds of Dummy Attributes for dividing sections on Inquiry page
52      private String financialReportingCodeSectionBlank;
53      private String financialReportingCodeSection;
54      private String cgCostSharingSectionBlank;
55      private String cgCostSharingSection;
56      private String cgICRSectionBlank;
57      private String cgICRSection;
58  
59      /**
60       * Default no-arg constructor.
61       */
62      public SubAccount() {
63      }
64  
65      /**
66       * Gets the accountNumber attribute.
67       * 
68       * @return Returns the accountNumber.
69       */
70      public String getAccountNumber() {
71          return accountNumber;
72      }
73  
74      /**
75       * Sets the accountNumber attribute value.
76       */
77      public void setAccountNumber(String accountNumber) {
78          this.accountNumber = accountNumber;
79      }
80  
81      /**
82       * Gets the chartOfAccountsCode attribute.
83       * 
84       * @return Returns the chartOfAccountsCode.
85       */
86      public String getChartOfAccountsCode() {
87          return chartOfAccountsCode;
88      }
89  
90      /**
91       * Sets the chartOfAccountsCode attribute value.
92       * 
93       * @param chartOfAccountsCode The chartOfAccountsCode to set.
94       */
95      public void setChartOfAccountsCode(String chartOfAccountsCode) {
96          this.chartOfAccountsCode = chartOfAccountsCode;
97      }
98  
99      /**
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 }