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 package org.kuali.kfs.module.cam.businessobject;
017
018 import java.util.LinkedHashMap;
019 import java.util.List;
020
021 import org.kuali.kfs.coa.businessobject.Chart;
022 import org.kuali.kfs.coa.businessobject.ObjectSubType;
023 import org.kuali.kfs.coa.businessobject.ObjectCode;
024 import org.kuali.kfs.sys.businessobject.SystemOptions;
025 import org.kuali.rice.kns.bo.Inactivateable;
026 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
027
028 /**
029 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
030 */
031 public class AssetObjectCode extends PersistableBusinessObjectBase implements Inactivateable {
032
033 private Integer universityFiscalYear;
034 private String chartOfAccountsCode;
035 private String financialObjectSubTypeCode;
036 private String capitalizationFinancialObjectCode;
037 private String accumulatedDepreciationFinancialObjectCode;
038 private String depreciationExpenseFinancialObjectCode;
039 private boolean active;
040
041 private transient SystemOptions universityFiscal;
042 private ObjectCode accumulatedDepreciationFinancialObject;
043 private ObjectCode capitalizationFinancialObject;
044 private ObjectCode depreciationExpenseFinancialObject;
045 private List<ObjectCode> objectCode;
046 private Chart chartOfAccounts;
047 private ObjectSubType financialObjectSubType;
048
049 /**
050 * Default constructor.
051 */
052 public AssetObjectCode() {
053
054 }
055
056 /**
057 * Gets the universityFiscalYear attribute.
058 *
059 * @return Returns the universityFiscalYear
060 */
061 public Integer getUniversityFiscalYear() {
062 return universityFiscalYear;
063 }
064
065 /**
066 * Sets the universityFiscalYear attribute.
067 *
068 * @param universityFiscalYear The universityFiscalYear to set.
069 */
070 public void setUniversityFiscalYear(Integer universityFiscalYear) {
071 this.universityFiscalYear = universityFiscalYear;
072 }
073
074
075 /**
076 * Gets the chartOfAccountsCode attribute.
077 *
078 * @return Returns the chartOfAccountsCode
079 */
080 public String getChartOfAccountsCode() {
081 return chartOfAccountsCode;
082 }
083
084 /**
085 * Sets the chartOfAccountsCode attribute.
086 *
087 * @param chartOfAccountsCode The chartOfAccountsCode to set.
088 */
089 public void setChartOfAccountsCode(String chartOfAccountsCode) {
090 this.chartOfAccountsCode = chartOfAccountsCode;
091 }
092
093
094 /**
095 * Gets the financialObjectSubTypeCode attribute.
096 *
097 * @return Returns the financialObjectSubTypeCode
098 */
099 public String getFinancialObjectSubTypeCode() {
100 return financialObjectSubTypeCode;
101 }
102
103 /**
104 * Sets the financialObjectSubTypeCode attribute.
105 *
106 * @param financialObjectSubTypeCode The financialObjectSubTypeCode to set.
107 */
108 public void setFinancialObjectSubTypeCode(String financialObjectSubTypeCode) {
109 this.financialObjectSubTypeCode = financialObjectSubTypeCode;
110 }
111
112
113 /**
114 * Gets the capitalizationFinancialObjectCode attribute.
115 *
116 * @return Returns the capitalizationFinancialObjectCode
117 */
118 public String getCapitalizationFinancialObjectCode() {
119 return capitalizationFinancialObjectCode;
120 }
121
122 /**
123 * Sets the capitalizationFinancialObjectCode attribute.
124 *
125 * @param capitalizationFinancialObjectCode The capitalizationFinancialObjectCode to set.
126 */
127 public void setCapitalizationFinancialObjectCode(String capitalizationFinancialObjectCode) {
128 this.capitalizationFinancialObjectCode = capitalizationFinancialObjectCode;
129 }
130
131
132 /**
133 * Gets the accumulatedDepreciationFinancialObjectCode attribute.
134 *
135 * @return Returns the accumulatedDepreciationFinancialObjectCode
136 */
137 public String getAccumulatedDepreciationFinancialObjectCode() {
138 return accumulatedDepreciationFinancialObjectCode;
139 }
140
141 /**
142 * Sets the accumulatedDepreciationFinancialObjectCode attribute.
143 *
144 * @param accumulatedDepreciationFinancialObjectCode The accumulatedDepreciationFinancialObjectCode to set.
145 */
146 public void setAccumulatedDepreciationFinancialObjectCode(String accumulatedDepreciationFinancialObjectCode) {
147 this.accumulatedDepreciationFinancialObjectCode = accumulatedDepreciationFinancialObjectCode;
148 }
149
150
151 /**
152 * Gets the depreciationExpenseFinancialObjectCode attribute.
153 *
154 * @return Returns the depreciationExpenseFinancialObjectCode
155 */
156 public String getDepreciationExpenseFinancialObjectCode() {
157 return depreciationExpenseFinancialObjectCode;
158 }
159
160 /**
161 * Sets the depreciationExpenseFinancialObjectCode attribute.
162 *
163 * @param depreciationExpenseFinancialObjectCode The depreciationExpenseFinancialObjectCode to set.
164 */
165 public void setDepreciationExpenseFinancialObjectCode(String depreciationExpenseFinancialObjectCode) {
166 this.depreciationExpenseFinancialObjectCode = depreciationExpenseFinancialObjectCode;
167 }
168
169
170 /**
171 * Gets the accumulatedDepreciationFinancialObject attribute.
172 *
173 * @return Returns the accumulatedDepreciationFinancialObject
174 */
175 public ObjectCode getAccumulatedDepreciationFinancialObject() {
176 return accumulatedDepreciationFinancialObject;
177 }
178
179 /**
180 * Sets the accumulatedDepreciationFinancialObject attribute.
181 *
182 * @param accumulatedDepreciationFinancialObject The accumulatedDepreciationFinancialObject to set.
183 * @deprecated
184 */
185 public void setAccumulatedDepreciationFinancialObject(ObjectCode accumulatedDepreciationFinancialObject) {
186 this.accumulatedDepreciationFinancialObject = accumulatedDepreciationFinancialObject;
187 }
188
189 /**
190 * Gets the capitalizationFinancialObject attribute.
191 *
192 * @return Returns the capitalizationFinancialObject
193 */
194 public ObjectCode getCapitalizationFinancialObject() {
195 return capitalizationFinancialObject;
196 }
197
198 /**
199 * Sets the capitalizationFinancialObject attribute.
200 *
201 * @param capitalizationFinancialObject The capitalizationFinancialObject to set.
202 * @deprecated
203 */
204 public void setCapitalizationFinancialObject(ObjectCode capitalizationFinancialObject) {
205 this.capitalizationFinancialObject = capitalizationFinancialObject;
206 }
207
208 /**
209 * Gets the depreciationExpenseFinancialObject attribute.
210 *
211 * @return Returns the depreciationExpenseFinancialObject
212 */
213 public ObjectCode getDepreciationExpenseFinancialObject() {
214 return depreciationExpenseFinancialObject;
215 }
216
217 /**
218 * Sets the depreciationExpenseFinancialObject attribute.
219 *
220 * @param depreciationExpenseFinancialObject The depreciationExpenseFinancialObject to set.
221 * @deprecated
222 */
223 public void setDepreciationExpenseFinancialObject(ObjectCode depreciationExpenseFinancialObject) {
224 this.depreciationExpenseFinancialObject = depreciationExpenseFinancialObject;
225 }
226
227 /**
228 * Gets the chartOfAccounts attribute.
229 *
230 * @return Returns the chartOfAccounts
231 */
232 public Chart getChartOfAccounts() {
233 return chartOfAccounts;
234 }
235
236 /**
237 * Sets the chartOfAccounts attribute.
238 *
239 * @param chartOfAccounts The chartOfAccounts to set.
240 * @deprecated
241 */
242 public void setChartOfAccounts(Chart chartOfAccounts) {
243 this.chartOfAccounts = chartOfAccounts;
244 }
245
246 /**
247 * Gets the financialObjectSubType attribute.
248 *
249 * @return Returns the financialObjectSubType.
250 */
251 public ObjectSubType getFinancialObjectSubType() {
252 return financialObjectSubType;
253 }
254
255 /**
256 * Sets the financialObjectSubType attribute value.
257 *
258 * @param financialObjectSubType The financialObjectSubType to set.
259 * @deprecated
260 */
261 public void setFinancialObjectSubType(ObjectSubType financialObjectSubType) {
262 this.financialObjectSubType = financialObjectSubType;
263 }
264
265 /**
266 * Gets the active attribute.
267 *
268 * @return Returns the active
269 */
270 public boolean isActive() {
271 return active;
272 }
273
274 /**
275 * Sets the active attribute.
276 *
277 * @param active The active to set.
278 */
279 public void setActive(boolean active) {
280 this.active = active;
281 }
282
283 /**
284 * Gets the universityFiscal attribute.
285 *
286 * @return Returns the universityFiscal.
287 */
288 public SystemOptions getUniversityFiscal() {
289 return universityFiscal;
290 }
291
292 /**
293 * Sets the universityFiscal attribute value.
294 *
295 * @param universityFiscal The universityFiscal to set.
296 */
297 public void setUniversityFiscal(SystemOptions universityFiscal) {
298 this.universityFiscal = universityFiscal;
299 }
300
301 /**
302 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
303 */
304 protected LinkedHashMap toStringMapper() {
305 LinkedHashMap m = new LinkedHashMap();
306 if (this.universityFiscalYear != null) {
307 m.put("universityFiscalYear", this.universityFiscalYear.toString());
308 }
309 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
310 m.put("financialObjectSubTypeCode", this.financialObjectSubTypeCode);
311 return m;
312 }
313
314 public List<ObjectCode> getObjectCode() {
315 return objectCode;
316 }
317
318 public void setObjectCode(List<ObjectCode> objectCode) {
319 this.objectCode = objectCode;
320 }
321
322 }