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.ObjectCode;
024    import org.kuali.kfs.coa.businessobject.Organization;
025    import org.kuali.kfs.coa.businessobject.SubAccount;
026    import org.kuali.kfs.coa.businessobject.SubObjectCode;
027    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
028    
029    /**
030     * 
031     */
032    public class BudgetConstructionPositionFunding extends PersistableBusinessObjectBase {
033    
034        private String principalId;
035        private String selectedOrganizationChartOfAccountsCode;
036        private String selectedOrganizationCode;
037        private String name;
038        private String emplid;
039        private String positionNumber;
040        private Integer universityFiscalYear;
041        private String chartOfAccountsCode;
042        private String accountNumber;
043        private String subAccountNumber;
044        private String financialObjectCode;
045        private String financialSubObjectCode;
046    
047        private Chart selectedOrganizationChartOfAccounts;
048        private Organization selectedOrganization;
049        private ObjectCode financialObject;
050        private SubObjectCode financialSubObject;
051        private Account account;
052        private Chart chartOfAccounts;
053        private SubAccount subAccount;
054        private PendingBudgetConstructionAppointmentFunding pendingAppointmentFunding;
055    
056        /**
057         * Default constructor.
058         */
059        public BudgetConstructionPositionFunding() {
060    
061        }
062    
063        /**
064         * Gets the principalId attribute.
065         * 
066         * @return Returns the principalId
067         */
068        public String getPrincipalId() {
069            return principalId;
070        }
071    
072        /**
073         * Sets the principalId attribute.
074         * 
075         * @param principalId The principalId to set.
076         */
077        public void setPrincipalId(String principalId) {
078            this.principalId = principalId;
079        }
080    
081    
082        /**
083         * Gets the selectedOrganizationChartOfAccountsCode attribute.
084         * 
085         * @return Returns the selectedOrganizationChartOfAccountsCode
086         */
087        public String getSelectedOrganizationChartOfAccountsCode() {
088            return selectedOrganizationChartOfAccountsCode;
089        }
090    
091        /**
092         * Sets the selectedOrganizationChartOfAccountsCode attribute.
093         * 
094         * @param selectedOrganizationChartOfAccountsCode The selectedOrganizationChartOfAccountsCode to set.
095         */
096        public void setSelectedOrganizationChartOfAccountsCode(String selectedOrganizationChartOfAccountsCode) {
097            this.selectedOrganizationChartOfAccountsCode = selectedOrganizationChartOfAccountsCode;
098        }
099    
100    
101        /**
102         * Gets the selectedOrganizationCode attribute.
103         * 
104         * @return Returns the selectedOrganizationCode
105         */
106        public String getSelectedOrganizationCode() {
107            return selectedOrganizationCode;
108        }
109    
110        /**
111         * Sets the selectedOrganizationCode attribute.
112         * 
113         * @param selectedOrganizationCode The selectedOrganizationCode to set.
114         */
115        public void setSelectedOrganizationCode(String selectedOrganizationCode) {
116            this.selectedOrganizationCode = selectedOrganizationCode;
117        }
118    
119    
120        /**
121         * Gets the name attribute.
122         * 
123         * @return Returns the name
124         */
125        public String getName() {
126            return name;
127        }
128    
129        /**
130         * Sets the name attribute.
131         * 
132         * @param name The name to set.
133         */
134        public void setName(String name) {
135            this.name = name;
136        }
137    
138    
139        /**
140         * Gets the emplid attribute.
141         * 
142         * @return Returns the emplid
143         */
144        public String getEmplid() {
145            return emplid;
146        }
147    
148        /**
149         * Sets the emplid attribute.
150         * 
151         * @param emplid The emplid to set.
152         */
153        public void setEmplid(String emplid) {
154            this.emplid = emplid;
155        }
156    
157    
158        /**
159         * Gets the positionNumber attribute.
160         * 
161         * @return Returns the positionNumber
162         */
163        public String getPositionNumber() {
164            return positionNumber;
165        }
166    
167        /**
168         * Sets the positionNumber attribute.
169         * 
170         * @param positionNumber The positionNumber to set.
171         */
172        public void setPositionNumber(String positionNumber) {
173            this.positionNumber = positionNumber;
174        }
175    
176    
177        /**
178         * Gets the universityFiscalYear attribute.
179         * 
180         * @return Returns the universityFiscalYear
181         */
182        public Integer getUniversityFiscalYear() {
183            return universityFiscalYear;
184        }
185    
186        /**
187         * Sets the universityFiscalYear attribute.
188         * 
189         * @param universityFiscalYear The universityFiscalYear to set.
190         */
191        public void setUniversityFiscalYear(Integer universityFiscalYear) {
192            this.universityFiscalYear = universityFiscalYear;
193        }
194    
195    
196        /**
197         * Gets the chartOfAccountsCode attribute.
198         * 
199         * @return Returns the chartOfAccountsCode
200         */
201        public String getChartOfAccountsCode() {
202            return chartOfAccountsCode;
203        }
204    
205        /**
206         * Sets the chartOfAccountsCode attribute.
207         * 
208         * @param chartOfAccountsCode The chartOfAccountsCode to set.
209         */
210        public void setChartOfAccountsCode(String chartOfAccountsCode) {
211            this.chartOfAccountsCode = chartOfAccountsCode;
212        }
213    
214    
215        /**
216         * Gets the accountNumber attribute.
217         * 
218         * @return Returns the accountNumber
219         */
220        public String getAccountNumber() {
221            return accountNumber;
222        }
223    
224        /**
225         * Sets the accountNumber attribute.
226         * 
227         * @param accountNumber The accountNumber to set.
228         */
229        public void setAccountNumber(String accountNumber) {
230            this.accountNumber = accountNumber;
231        }
232    
233    
234        /**
235         * Gets the subAccountNumber attribute.
236         * 
237         * @return Returns the subAccountNumber
238         */
239        public String getSubAccountNumber() {
240            return subAccountNumber;
241        }
242    
243        /**
244         * Sets the subAccountNumber attribute.
245         * 
246         * @param subAccountNumber The subAccountNumber to set.
247         */
248        public void setSubAccountNumber(String subAccountNumber) {
249            this.subAccountNumber = subAccountNumber;
250        }
251    
252    
253        /**
254         * Gets the financialObjectCode attribute.
255         * 
256         * @return Returns the financialObjectCode
257         */
258        public String getFinancialObjectCode() {
259            return financialObjectCode;
260        }
261    
262        /**
263         * Sets the financialObjectCode attribute.
264         * 
265         * @param financialObjectCode The financialObjectCode to set.
266         */
267        public void setFinancialObjectCode(String financialObjectCode) {
268            this.financialObjectCode = financialObjectCode;
269        }
270    
271    
272        /**
273         * Gets the financialSubObjectCode attribute.
274         * 
275         * @return Returns the financialSubObjectCode
276         */
277        public String getFinancialSubObjectCode() {
278            return financialSubObjectCode;
279        }
280    
281        /**
282         * Sets the financialSubObjectCode attribute.
283         * 
284         * @param financialSubObjectCode The financialSubObjectCode to set.
285         */
286        public void setFinancialSubObjectCode(String financialSubObjectCode) {
287            this.financialSubObjectCode = financialSubObjectCode;
288        }
289    
290    
291        /**
292         * Gets the selectedOrganizationChartOfAccounts attribute.
293         * 
294         * @return Returns the selectedOrganizationChartOfAccounts
295         */
296        public Chart getSelectedOrganizationChartOfAccounts() {
297            return selectedOrganizationChartOfAccounts;
298        }
299    
300        /**
301         * Sets the selectedOrganizationChartOfAccounts attribute.
302         * 
303         * @param selectedOrganizationChartOfAccounts The selectedOrganizationChartOfAccounts to set.
304         * @deprecated
305         */
306        public void setSelectedOrganizationChartOfAccounts(Chart selectedOrganizationChartOfAccounts) {
307            this.selectedOrganizationChartOfAccounts = selectedOrganizationChartOfAccounts;
308        }
309    
310        /**
311         * Gets the selectedOrganization attribute.
312         * 
313         * @return Returns the selectedOrganization
314         */
315        public Organization getSelectedOrganization() {
316            return selectedOrganization;
317        }
318    
319        /**
320         * Sets the selectedOrganization attribute.
321         * 
322         * @param selectedOrganization The selectedOrganization to set.
323         * @deprecated
324         */
325        public void setSelectedOrganization(Organization selectedOrganization) {
326            this.selectedOrganization = selectedOrganization;
327        }
328    
329        /**
330         * Gets the financialObject attribute.
331         * 
332         * @return Returns the financialObject
333         */
334        public ObjectCode getFinancialObject() {
335            return financialObject;
336        }
337    
338        /**
339         * Sets the financialObject attribute.
340         * 
341         * @param financialObject The financialObject to set.
342         * @deprecated
343         */
344        public void setFinancialObject(ObjectCode financialObject) {
345            this.financialObject = financialObject;
346        }
347    
348        /**
349         * Gets the account attribute.
350         * 
351         * @return Returns the account
352         */
353        public Account getAccount() {
354            return account;
355        }
356    
357        /**
358         * Sets the account attribute.
359         * 
360         * @param account The account to set.
361         * @deprecated
362         */
363        public void setAccount(Account account) {
364            this.account = account;
365        }
366    
367        /**
368         * Gets the chartOfAccounts attribute.
369         * 
370         * @return Returns the chartOfAccounts
371         */
372        public Chart getChartOfAccounts() {
373            return chartOfAccounts;
374        }
375    
376        /**
377         * Sets the chartOfAccounts attribute.
378         * 
379         * @param chartOfAccounts The chartOfAccounts to set.
380         * @deprecated
381         */
382        public void setChartOfAccounts(Chart chartOfAccounts) {
383            this.chartOfAccounts = chartOfAccounts;
384        }
385    
386        /**
387         * Gets the pendingAppointmentFunding attribute.
388         * 
389         * @return Returns the pendingAppointmentFunding.
390         */
391        public PendingBudgetConstructionAppointmentFunding getPendingAppointmentFunding() {
392            return pendingAppointmentFunding;
393        }
394    
395        /**
396         * Sets the pendingAppointmentFunding attribute value.
397         * 
398         * @param pendingAppointmentFunding The pendingAppointmentFunding to set.
399         * @deprecated
400         */
401        public void setPendingAppointmentFunding(PendingBudgetConstructionAppointmentFunding pendingAppointmentFunding) {
402            this.pendingAppointmentFunding = pendingAppointmentFunding;
403        }
404    
405        /**
406         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
407         */
408        protected LinkedHashMap toStringMapper() {
409            LinkedHashMap m = new LinkedHashMap();
410            m.put("principalId", this.principalId);
411            m.put("selectedOrganizationChartOfAccountsCode", this.selectedOrganizationChartOfAccountsCode);
412            m.put("selectedOrganizationCode", this.selectedOrganizationCode);
413            m.put("name", this.name);
414            m.put("emplid", this.emplid);
415            m.put("positionNumber", this.positionNumber);
416            if (this.universityFiscalYear != null) {
417                m.put("universityFiscalYear", this.universityFiscalYear.toString());
418            }
419            m.put("chartOfAccountsCode", this.chartOfAccountsCode);
420            m.put("accountNumber", this.accountNumber);
421            m.put("subAccountNumber", this.subAccountNumber);
422            m.put("financialObjectCode", this.financialObjectCode);
423            m.put("financialSubObjectCode", this.financialSubObjectCode);
424            return m;
425        }
426    
427        public SubAccount getSubAccount() {
428            return subAccount;
429        }
430    
431        public void setSubAccount(SubAccount subAccount) {
432            this.subAccount = subAccount;
433        }
434    
435        public SubObjectCode getFinancialSubObject() {
436            return financialSubObject;
437        }
438    
439        public void setFinancialSubObject(SubObjectCode financialSubObject) {
440            this.financialSubObject = financialSubObject;
441        }
442    
443    
444    }
445