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