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    
021    import org.kuali.kfs.coa.businessobject.Account;
022    import org.kuali.kfs.coa.businessobject.Chart;
023    import org.kuali.kfs.coa.businessobject.Organization;
024    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
025    
026    /**
027     * 
028     */
029    public class BudgetConstructionAccountOrganizationHierarchy extends PersistableBusinessObjectBase {
030    
031        private Integer universityFiscalYear;
032        private String chartOfAccountsCode;
033        private String accountNumber;
034        private Integer organizationLevelCode;
035        private String organizationChartOfAccountsCode;
036        private String organizationCode;
037        private Chart chartOfAccounts;
038        private Account account;
039        private Organization organization;
040        private Chart organizationChartOfAccounts;
041    
042        /**
043         * Default constructor.
044         */
045        public BudgetConstructionAccountOrganizationHierarchy() {
046    
047        }
048    
049        /**
050         * Gets the universityFiscalYear attribute.
051         * 
052         * @return Returns the universityFiscalYear
053         */
054        public Integer getUniversityFiscalYear() {
055            return universityFiscalYear;
056        }
057    
058        /**
059         * Sets the universityFiscalYear attribute.
060         * 
061         * @param universityFiscalYear The universityFiscalYear to set.
062         */
063        public void setUniversityFiscalYear(Integer universityFiscalYear) {
064            this.universityFiscalYear = universityFiscalYear;
065        }
066    
067    
068        /**
069         * Gets the chartOfAccountsCode attribute.
070         * 
071         * @return Returns the chartOfAccountsCode
072         */
073        public String getChartOfAccountsCode() {
074            return chartOfAccountsCode;
075        }
076    
077        /**
078         * Sets the chartOfAccountsCode attribute.
079         * 
080         * @param chartOfAccountsCode The chartOfAccountsCode to set.
081         */
082        public void setChartOfAccountsCode(String chartOfAccountsCode) {
083            this.chartOfAccountsCode = chartOfAccountsCode;
084        }
085    
086    
087        /**
088         * Gets the accountNumber attribute.
089         * 
090         * @return Returns the accountNumber
091         */
092        public String getAccountNumber() {
093            return accountNumber;
094        }
095    
096        /**
097         * Sets the accountNumber attribute.
098         * 
099         * @param accountNumber The accountNumber to set.
100         */
101        public void setAccountNumber(String accountNumber) {
102            this.accountNumber = accountNumber;
103        }
104    
105    
106        /**
107         * Gets the organizationLevelCode attribute.
108         * 
109         * @return Returns the organizationLevelCode
110         */
111        public Integer getOrganizationLevelCode() {
112            return organizationLevelCode;
113        }
114    
115        /**
116         * Sets the organizationLevelCode attribute.
117         * 
118         * @param organizationLevelCode The organizationLevelCode to set.
119         */
120        public void setOrganizationLevelCode(Integer organizationLevelCode) {
121            this.organizationLevelCode = organizationLevelCode;
122        }
123    
124    
125        /**
126         * Gets the organizationChartOfAccountsCode attribute.
127         * 
128         * @return Returns the organizationChartOfAccountsCode
129         */
130        public String getOrganizationChartOfAccountsCode() {
131            return organizationChartOfAccountsCode;
132        }
133    
134        /**
135         * Sets the organizationChartOfAccountsCode attribute.
136         * 
137         * @param organizationChartOfAccountsCode The organizationChartOfAccountsCode to set.
138         */
139        public void setOrganizationChartOfAccountsCode(String organizationChartOfAccountsCode) {
140            this.organizationChartOfAccountsCode = organizationChartOfAccountsCode;
141        }
142    
143    
144        /**
145         * Gets the organizationCode attribute.
146         * 
147         * @return Returns the organizationCode
148         */
149        public String getOrganizationCode() {
150            return organizationCode;
151        }
152    
153        /**
154         * Sets the organizationCode attribute.
155         * 
156         * @param organizationCode The organizationCode to set.
157         */
158        public void setOrganizationCode(String organizationCode) {
159            this.organizationCode = organizationCode;
160        }
161    
162    
163        /**
164         * Gets the chartOfAccounts attribute.
165         * 
166         * @return Returns the chartOfAccounts
167         */
168        public Chart getChartOfAccounts() {
169            return chartOfAccounts;
170        }
171    
172        /**
173         * Sets the chartOfAccounts attribute.
174         * 
175         * @param chartOfAccounts The chartOfAccounts to set.
176         * @deprecated
177         */
178        public void setChartOfAccounts(Chart chartOfAccounts) {
179            this.chartOfAccounts = chartOfAccounts;
180        }
181    
182        /**
183         * Gets the account attribute.
184         * 
185         * @return Returns the account
186         */
187        public Account getAccount() {
188            return account;
189        }
190    
191        /**
192         * Sets the account attribute.
193         * 
194         * @param account The account to set.
195         * @deprecated
196         */
197        public void setAccount(Account account) {
198            this.account = account;
199        }
200    
201        /**
202         * Gets the organization attribute.
203         * 
204         * @return Returns the organization
205         */
206        public Organization getOrganization() {
207            return organization;
208        }
209    
210        /**
211         * Sets the organization attribute.
212         * 
213         * @param organization The organization to set.
214         * @deprecated
215         */
216        public void setOrganization(Organization organization) {
217            this.organization = organization;
218        }
219    
220        /**
221         * Gets the organizationChartOfAccounts attribute.
222         * 
223         * @return Returns the organizationChartOfAccounts
224         */
225        public Chart getOrganizationChartOfAccounts() {
226            return organizationChartOfAccounts;
227        }
228    
229        /**
230         * Sets the organizationChartOfAccounts attribute.
231         * 
232         * @param organizationChartOfAccounts The organizationChartOfAccounts to set.
233         * @deprecated
234         */
235        public void setOrganizationChartOfAccounts(Chart organizationChartOfAccounts) {
236            this.organizationChartOfAccounts = organizationChartOfAccounts;
237        }
238    
239        /**
240         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
241         */
242        protected LinkedHashMap toStringMapper() {
243            LinkedHashMap m = new LinkedHashMap();
244            if (this.universityFiscalYear != null) {
245                m.put("universityFiscalYear", this.universityFiscalYear.toString());
246            }
247            m.put("chartOfAccountsCode", this.chartOfAccountsCode);
248            m.put("accountNumber", this.accountNumber);
249            if (this.organizationLevelCode != null) {
250                m.put("organizationLevelCode", this.organizationLevelCode.toString());
251            }
252            return m;
253        }
254    }