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.SubAccount;
024 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
025
026 /**
027 *
028 */
029 public class BudgetConstructionAccountDump extends PersistableBusinessObjectBase {
030
031 private Integer universityFiscalYear;
032 private String chartOfAccountsCode;
033 private String accountNumber;
034 private String subAccountNumber;
035 private String principalId;
036
037 private Account account;
038 private Chart chartOfAccounts;
039 private SubAccount subAccount;
040
041 /**
042 * Default constructor.
043 */
044 public BudgetConstructionAccountDump() {
045
046 }
047
048 /**
049 * Gets the universityFiscalYear attribute.
050 *
051 * @return Returns the universityFiscalYear
052 */
053 public Integer getUniversityFiscalYear() {
054 return universityFiscalYear;
055 }
056
057 /**
058 * Sets the universityFiscalYear attribute.
059 *
060 * @param universityFiscalYear The universityFiscalYear to set.
061 */
062 public void setUniversityFiscalYear(Integer universityFiscalYear) {
063 this.universityFiscalYear = universityFiscalYear;
064 }
065
066
067 /**
068 * Gets the chartOfAccountsCode attribute.
069 *
070 * @return Returns the chartOfAccountsCode
071 */
072 public String getChartOfAccountsCode() {
073 return chartOfAccountsCode;
074 }
075
076 /**
077 * Sets the chartOfAccountsCode attribute.
078 *
079 * @param chartOfAccountsCode The chartOfAccountsCode to set.
080 */
081 public void setChartOfAccountsCode(String chartOfAccountsCode) {
082 this.chartOfAccountsCode = chartOfAccountsCode;
083 }
084
085
086 /**
087 * Gets the accountNumber attribute.
088 *
089 * @return Returns the accountNumber
090 */
091 public String getAccountNumber() {
092 return accountNumber;
093 }
094
095 /**
096 * Sets the accountNumber attribute.
097 *
098 * @param accountNumber The accountNumber to set.
099 */
100 public void setAccountNumber(String accountNumber) {
101 this.accountNumber = accountNumber;
102 }
103
104
105 /**
106 * Gets the subAccountNumber attribute.
107 *
108 * @return Returns the subAccountNumber
109 */
110 public String getSubAccountNumber() {
111 return subAccountNumber;
112 }
113
114 /**
115 * Sets the subAccountNumber attribute.
116 *
117 * @param subAccountNumber The subAccountNumber to set.
118 */
119 public void setSubAccountNumber(String subAccountNumber) {
120 this.subAccountNumber = subAccountNumber;
121 }
122
123
124 /**
125 * Gets the principalId attribute.
126 *
127 * @return Returns the principalId.
128 */
129 public String getPrincipalId() {
130 return principalId;
131 }
132
133 /**
134 * Sets the principalId attribute value.
135 *
136 * @param principalId The principalId to set.
137 */
138 public void setPrincipalId(String principalId) {
139 this.principalId = principalId;
140 }
141
142 /**
143 * Gets the account attribute.
144 *
145 * @return Returns the account
146 */
147 public Account getAccount() {
148 return account;
149 }
150
151 /**
152 * Sets the account attribute.
153 *
154 * @param account The account to set.
155 * @deprecated
156 */
157 public void setAccount(Account account) {
158 this.account = account;
159 }
160
161 /**
162 * Gets the chartOfAccounts attribute.
163 *
164 * @return Returns the chartOfAccounts
165 */
166 public Chart getChartOfAccounts() {
167 return chartOfAccounts;
168 }
169
170 /**
171 * Sets the chartOfAccounts attribute.
172 *
173 * @param chartOfAccounts The chartOfAccounts to set.
174 * @deprecated
175 */
176 public void setChartOfAccounts(Chart chartOfAccounts) {
177 this.chartOfAccounts = chartOfAccounts;
178 }
179
180 /**
181 * Gets the subAccount attribute.
182 *
183 * @return Returns the subAccount.
184 */
185 public SubAccount getSubAccount() {
186 return subAccount;
187 }
188
189 /**
190 * Sets the subAccount attribute value.
191 *
192 * @param subAccount The subAccount to set.
193 * @deprecated
194 */
195 public void setSubAccount(SubAccount subAccount) {
196 this.subAccount = subAccount;
197 }
198
199 /**
200 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
201 */
202 protected LinkedHashMap toStringMapper() {
203 LinkedHashMap m = new LinkedHashMap();
204 m.put("principalId", this.principalId);
205 if (this.universityFiscalYear != null) {
206 m.put("universityFiscalYear", this.universityFiscalYear.toString());
207 }
208 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
209 m.put("accountNumber", this.accountNumber);
210 m.put("subAccountNumber", this.subAccountNumber);
211 return m;
212 }
213
214 }
215