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.module.bc.businessobject;
018    
019    import java.util.LinkedHashMap;
020    import java.util.List;
021    
022    import org.kuali.kfs.coa.businessobject.Account;
023    import org.kuali.kfs.coa.businessobject.Chart;
024    import org.kuali.kfs.coa.businessobject.Organization;
025    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
026    
027    /**
028     * 
029     */
030    public class BudgetConstructionAccountReports extends PersistableBusinessObjectBase {
031    
032        private String chartOfAccountsCode;
033        private String accountNumber;
034        private String reportsToChartOfAccountsCode;
035        private String reportsToOrganizationCode;
036    
037        private Account account;
038        private Chart chartOfAccounts;
039        private Chart reportsToChartOfAccounts;
040        private BudgetConstructionOrganizationReports budgetConstructionOrganizationReports;
041    
042        private List budgetConstructionAccountOrganizationHierarchy;
043    
044        /**
045         * Default constructor.
046         */
047        public BudgetConstructionAccountReports() {
048    
049        }
050    
051        /**
052         * Gets the chartOfAccountsCode attribute.
053         * 
054         * @return Returns the chartOfAccountsCode
055         */
056        public String getChartOfAccountsCode() {
057            return chartOfAccountsCode;
058        }
059    
060        /**
061         * Sets the chartOfAccountsCode attribute.
062         * 
063         * @param chartOfAccountsCode The chartOfAccountsCode to set.
064         */
065        public void setChartOfAccountsCode(String chartOfAccountsCode) {
066            this.chartOfAccountsCode = chartOfAccountsCode;
067        }
068    
069    
070        /**
071         * Gets the accountNumber attribute.
072         * 
073         * @return Returns the accountNumber
074         */
075        public String getAccountNumber() {
076            return accountNumber;
077        }
078    
079        /**
080         * Sets the accountNumber attribute.
081         * 
082         * @param accountNumber The accountNumber to set.
083         */
084        public void setAccountNumber(String accountNumber) {
085            this.accountNumber = accountNumber;
086        }
087    
088    
089        /**
090         * Gets the reportsToChartOfAccountsCode attribute.
091         * 
092         * @return Returns the reportsToChartOfAccountsCode
093         */
094        public String getReportsToChartOfAccountsCode() {
095            return reportsToChartOfAccountsCode;
096        }
097    
098        /**
099         * Sets the reportsToChartOfAccountsCode attribute.
100         * 
101         * @param reportsToChartOfAccountsCode The reportsToChartOfAccountsCode to set.
102         */
103        public void setReportsToChartOfAccountsCode(String reportsToChartOfAccountsCode) {
104            this.reportsToChartOfAccountsCode = reportsToChartOfAccountsCode;
105        }
106    
107    
108        /**
109         * Gets the reportsToOrganizationCode attribute.
110         * 
111         * @return Returns the reportsToOrganizationCode
112         */
113        public String getReportsToOrganizationCode() {
114            return reportsToOrganizationCode;
115        }
116    
117        /**
118         * Sets the reportsToOrganizationCode attribute.
119         * 
120         * @param reportsToOrganizationCode The reportsToOrganizationCode to set.
121         */
122        public void setReportsToOrganizationCode(String reportsToOrganizationCode) {
123            this.reportsToOrganizationCode = reportsToOrganizationCode;
124        }
125    
126    
127        /**
128         * Gets the account attribute.
129         * 
130         * @return Returns the account
131         */
132        public Account getAccount() {
133            return account;
134        }
135    
136        /**
137         * Sets the account attribute.
138         * 
139         * @param account The account to set.
140         * @deprecated
141         */
142        public void setAccount(Account account) {
143            this.account = account;
144        }
145    
146        /**
147         * Gets the chartOfAccounts attribute.
148         * 
149         * @return Returns the chartOfAccounts
150         */
151        public Chart getChartOfAccounts() {
152            return chartOfAccounts;
153        }
154    
155        /**
156         * Sets the chartOfAccounts attribute.
157         * 
158         * @param chartOfAccounts The chartOfAccounts to set.
159         * @deprecated
160         */
161        public void setChartOfAccounts(Chart chartOfAccounts) {
162            this.chartOfAccounts = chartOfAccounts;
163        }
164    
165        /**
166         * Gets the reportsToChartOfAccounts attribute.
167         * 
168         * @return Returns the reportsToChartOfAccounts
169         */
170        public Chart getReportsToChartOfAccounts() {
171            return reportsToChartOfAccounts;
172        }
173    
174        /**
175         * Sets the reportsToChartOfAccounts attribute.
176         * 
177         * @param reportsToChartOfAccounts The reportsToChartOfAccounts to set.
178         * @deprecated
179         */
180        public void setReportsToChartOfAccounts(Chart reportsToChartOfAccounts) {
181            this.reportsToChartOfAccounts = reportsToChartOfAccounts;
182        }
183    
184        /**
185         * Gets the budgetConstructionOrganizationReports attribute.
186         * 
187         * @return Returns the budgetConstructionOrganizationReports.
188         */
189        public BudgetConstructionOrganizationReports getBudgetConstructionOrganizationReports() {
190            return budgetConstructionOrganizationReports;
191        }
192    
193        /**
194         * Sets the budgetConstructionOrganizationReports attribute value.
195         * 
196         * @param budgetConstructionOrganizationReports The budgetConstructionOrganizationReports to set.
197         * @deprecated
198         */
199        public void setBudgetConstructionOrganizationReports(BudgetConstructionOrganizationReports budgetConstructionOrganizationReports) {
200            this.budgetConstructionOrganizationReports = budgetConstructionOrganizationReports;
201        }
202    
203        /**
204         * Gets the budgetConstructionAccountOrganizationHierarchy attribute.
205         * 
206         * @return Returns the budgetConstructionAccountOrganizationHierarchy.
207         */
208        public List<BudgetConstructionAccountOrganizationHierarchy> getBudgetConstructionAccountOrganizationHierarchy() {
209            return budgetConstructionAccountOrganizationHierarchy;
210        }
211    
212        /**
213         * Sets the budgetConstructionAccountOrganizationHierarchy attribute value.
214         * 
215         * @param budgetConstructionAccountOrganizationHierarchy The budgetConstructionAccountOrganizationHierarchy to set.
216         */
217        public void setBudgetConstructionAccountOrganizationHierarchy(List<BudgetConstructionAccountOrganizationHierarchy> budgetConstructionAccountOrganizationHierarchy) {
218            this.budgetConstructionAccountOrganizationHierarchy = budgetConstructionAccountOrganizationHierarchy;
219        }
220    
221        /**
222         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
223         */
224        protected LinkedHashMap toStringMapper() {
225            LinkedHashMap m = new LinkedHashMap();
226            m.put("chartOfAccountsCode", this.chartOfAccountsCode);
227            m.put("accountNumber", this.accountNumber);
228            return m;
229        }
230    }