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    
020    import org.kuali.kfs.coa.businessobject.Account;
021    import org.kuali.kfs.coa.businessobject.ObjectCode;
022    import org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail;
023    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
024    import org.kuali.rice.kns.util.KualiDecimal;
025    
026    public class AssetGlpeSourceDetail extends PersistableBusinessObjectBase implements GeneralLedgerPendingEntrySourceDetail {
027        private String accountNumber;
028        private KualiDecimal amount;
029        private String balanceTypeCode;
030        private String chartOfAccountsCode;
031        private String documentNumber;
032        private String financialDocumentLineDescription;
033        private String financialObjectCode;
034        private String financialSubObjectCode;
035        private String organizationReferenceId;
036        private Integer postingYear;
037        private String projectCode;
038        private String referenceNumber;
039        private String referenceOriginCode;
040        private String referenceTypeCode;
041        private String subAccountNumber;
042        private boolean source;
043        private boolean expense;
044        private boolean capitalization;
045        private boolean accumulatedDepreciation;
046        private boolean capitalizationOffset;
047        private boolean payment;
048        private boolean paymentOffset;
049        private Account account;
050        private ObjectCode objectCode;
051        private int sequenceNumber;
052        private String postingPeriodCode;
053    
054    
055        public Account getAccount() {
056            return account;
057        }
058    
059    
060        public void setAccount(Account account) {
061            this.account = account;
062        }
063    
064    
065        public String getAccountNumber() {
066            return accountNumber;
067        }
068    
069    
070        public void setAccountNumber(String accountNumber) {
071            this.accountNumber = accountNumber;
072        }
073    
074    
075        public KualiDecimal getAmount() {
076            return amount;
077        }
078    
079    
080        public void setAmount(KualiDecimal amount) {
081            this.amount = amount;
082        }
083    
084    
085        public String getBalanceTypeCode() {
086            return balanceTypeCode;
087        }
088    
089    
090        public void setBalanceTypeCode(String balanceTypeCode) {
091            this.balanceTypeCode = balanceTypeCode;
092        }
093    
094    
095        public String getChartOfAccountsCode() {
096            return chartOfAccountsCode;
097        }
098    
099    
100        public void setChartOfAccountsCode(String chartOfAccountsCode) {
101            this.chartOfAccountsCode = chartOfAccountsCode;
102        }
103    
104    
105        public String getDocumentNumber() {
106            return documentNumber;
107        }
108    
109    
110        public void setDocumentNumber(String documentNumber) {
111            this.documentNumber = documentNumber;
112        }
113    
114    
115        public String getFinancialDocumentLineDescription() {
116            return financialDocumentLineDescription;
117        }
118    
119    
120        public void setFinancialDocumentLineDescription(String financialDocumentLineDescription) {
121            this.financialDocumentLineDescription = financialDocumentLineDescription;
122        }
123    
124    
125        public String getFinancialObjectCode() {
126            return financialObjectCode;
127        }
128    
129    
130        public void setFinancialObjectCode(String financialObjectCode) {
131            this.financialObjectCode = financialObjectCode;
132        }
133    
134    
135        public String getFinancialSubObjectCode() {
136            return financialSubObjectCode;
137        }
138    
139    
140        public void setFinancialSubObjectCode(String financialSubObjectCode) {
141            this.financialSubObjectCode = financialSubObjectCode;
142        }
143    
144    
145        public ObjectCode getObjectCode() {
146            return objectCode;
147        }
148    
149    
150        public void setObjectCode(ObjectCode objectCode) {
151            this.objectCode = objectCode;
152        }
153    
154    
155        public String getOrganizationReferenceId() {
156            return organizationReferenceId;
157        }
158    
159    
160        public void setOrganizationReferenceId(String organizationReferenceId) {
161            this.organizationReferenceId = organizationReferenceId;
162        }
163    
164    
165        public Integer getPostingYear() {
166            return postingYear;
167        }
168    
169    
170        public void setPostingYear(Integer postingYear) {
171            this.postingYear = postingYear;
172        }
173    
174    
175        public String getProjectCode() {
176            return projectCode;
177        }
178    
179    
180        public void setProjectCode(String projectCode) {
181            this.projectCode = projectCode;
182        }
183    
184    
185        public String getReferenceNumber() {
186            return referenceNumber;
187        }
188    
189    
190        public void setReferenceNumber(String referenceNumber) {
191            this.referenceNumber = referenceNumber;
192        }
193    
194    
195        public String getReferenceOriginCode() {
196            return referenceOriginCode;
197        }
198    
199    
200        public void setReferenceOriginCode(String referenceOriginCode) {
201            this.referenceOriginCode = referenceOriginCode;
202        }
203    
204    
205        public String getReferenceTypeCode() {
206            return referenceTypeCode;
207        }
208    
209    
210        public void setReferenceTypeCode(String referenceTypeCode) {
211            this.referenceTypeCode = referenceTypeCode;
212        }
213    
214    
215        public String getSubAccountNumber() {
216            return subAccountNumber;
217        }
218    
219    
220        public void setSubAccountNumber(String subAccountNumber) {
221            this.subAccountNumber = subAccountNumber;
222        }
223    
224    
225        public boolean isSource() {
226            return source;
227        }
228    
229    
230        public void setSource(boolean source) {
231            this.source = source;
232        }
233    
234    
235        public boolean isExpense() {
236            return expense;
237        }
238    
239    
240        public void setExpense(boolean expense) {
241            this.expense = expense;
242        }
243    
244    
245        public boolean isCapitalization() {
246            return capitalization;
247        }
248    
249    
250        public void setCapitalization(boolean capitalization) {
251            this.capitalization = capitalization;
252        }
253    
254    
255        public boolean isAccumulatedDepreciation() {
256            return accumulatedDepreciation;
257        }
258    
259    
260        public void setAccumulatedDepreciation(boolean accumulatedDepreciation) {
261            this.accumulatedDepreciation = accumulatedDepreciation;
262        }
263    
264    
265        @Override
266        protected LinkedHashMap<String, String> toStringMapper() {
267            LinkedHashMap<String, String> map = new LinkedHashMap<String, String>();
268            map.put("accountNumber", this.accountNumber);
269            map.put("amount", this.chartOfAccountsCode);
270            return map;
271        }
272    
273    
274        public void setCapitalizationOffset(boolean b) {
275            this.capitalizationOffset = b;
276    
277        }
278    
279    
280        public boolean isCapitalizationOffset() {
281            return capitalizationOffset;
282        }
283    
284    
285        /**
286         * Gets the payment attribute.
287         * 
288         * @return Returns the payment.
289         */
290        public boolean isPayment() {
291            return payment;
292        }
293    
294    
295        /**
296         * Sets the payment attribute value.
297         * 
298         * @param payment The payment to set.
299         */
300        public void setPayment(boolean payment) {
301            this.payment = payment;
302        }
303    
304    
305        /**
306         * Gets the paymentOffset attribute.
307         * 
308         * @return Returns the paymentOffset.
309         */
310        public boolean isPaymentOffset() {
311            return paymentOffset;
312        }
313    
314    
315        /**
316         * Sets the paymentOffset attribute value.
317         * 
318         * @param paymentOffset The paymentOffset to set.
319         */
320        public void setPaymentOffset(boolean paymentOffset) {
321            this.paymentOffset = paymentOffset;
322        }
323    
324    
325        /**
326         * We have to return from this method directly since this is not a real persistent class and if we call super, it will run into
327         * "Class not found in OJB repository" exception.
328         * 
329         * @see org.kuali.rice.kns.bo.PersistableBusinessObjectBase#refresh()
330         */
331        @Override
332        public void refresh() {
333            return;
334        }
335    
336    
337        /**
338         * We have to return from this method directly since this is not a real persistent class and if we call super, it will run into
339         * "Class not found in OJB repository" exception.
340         * 
341         * @see org.kuali.rice.kns.bo.PersistableBusinessObjectBase#refreshNonUpdateableReferences()
342         */
343        @Override
344        public void refreshNonUpdateableReferences() {
345            return;
346        }
347    
348    
349        /**
350         * We have to return from this method directly since this is not a real persistent class and if we call super, it will run into
351         * "Class not found in OJB repository" exception.
352         * 
353         * @see org.kuali.rice.kns.bo.PersistableBusinessObjectBase#refreshReferenceObject(java.lang.String)
354         */
355        @Override
356        public void refreshReferenceObject(String referenceObjectName) {
357            return;
358        }
359    
360    
361        /**
362         * Gets the sequenceNumber attribute.
363         * 
364         * @return Returns the sequenceNumber.
365         */
366        public int getSequenceNumber() {
367            return sequenceNumber;
368        }
369    
370    
371        /**
372         * Sets the sequenceNumber attribute value.
373         * 
374         * @param sequenceNumber The sequenceNumber to set.
375         */
376        public void setSequenceNumber(int sequenceNumber) {
377            this.sequenceNumber = sequenceNumber;
378        }
379    
380    
381        /**
382         * Gets the postingPeriodCode attribute.
383         * 
384         * @return Returns the postingPeriodCode.
385         */
386        public String getPostingPeriodCode() {
387            return postingPeriodCode;
388        }
389    
390    
391        /**
392         * Sets the postingPeriodCode attribute value.
393         * 
394         * @param postingPeriodCode The postingPeriodCode to set.
395         */
396        public void setPostingPeriodCode(String postingPeriodCode) {
397            this.postingPeriodCode = postingPeriodCode;
398        }
399    
400    
401    }