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.ar.businessobject;
017    
018    import java.util.LinkedHashMap;
019    
020    import org.kuali.kfs.coa.businessobject.AccountingPeriod;
021    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022    import org.kuali.rice.kns.util.KualiDecimal;
023    
024    /**
025     * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
026     */
027    public class NonAppliedDistribution extends PersistableBusinessObjectBase {
028    
029            private String documentNumber; // document that generated this distribution
030            private Integer paidAppliedItemNumber; // ???
031            private String referenceFinancialDocumentNumber; // document that created the non-applied-holding that this is distributing
032            private Integer universityFiscalYear; // ???
033            private String universityFiscalPeriodCode; // ???
034            private KualiDecimal financialDocumentLineAmount;
035    
036            private AccountingPeriod universityFiscalPeriod;
037    
038            /**
039             * Default constructor.
040             */
041            public NonAppliedDistribution() {
042    
043            }
044    
045            /**
046             * Gets the documentNumber attribute.
047             * 
048             * @return Returns the documentNumber
049             * 
050             */
051            public String getDocumentNumber() { 
052                    return documentNumber;
053            }
054    
055            /**
056             * Sets the documentNumber attribute.
057             * 
058             * @param documentNumber The documentNumber to set.
059             * 
060             */
061            public void setDocumentNumber(String documentNumber) {
062                    this.documentNumber = documentNumber;
063            }
064    
065    
066            /**
067             * Gets the paidAppliedItemNumber attribute.
068             * 
069             * @return Returns the paidAppliedItemNumber
070             * 
071             */
072            public Integer getPaidAppliedItemNumber() { 
073                    return paidAppliedItemNumber;
074            }
075    
076            /**
077             * Sets the paidAppliedItemNumber attribute.
078             * 
079             * @param paidAppliedItemNumber The paidAppliedItemNumber to set.
080             * 
081             */
082            public void setPaidAppliedItemNumber(Integer paidAppliedItemNumber) {
083                    this.paidAppliedItemNumber = paidAppliedItemNumber;
084            }
085    
086    
087            /**
088             * Gets the referenceFinancialDocumentNumber attribute.
089             * 
090             * @return Returns the referenceFinancialDocumentNumber
091             * 
092             */
093            public String getReferenceFinancialDocumentNumber() { 
094                    return referenceFinancialDocumentNumber;
095            }
096    
097            /**
098             * Sets the referenceFinancialDocumentNumber attribute.
099             * 
100             * @param referenceFinancialDocumentNumber The referenceFinancialDocumentNumber to set.
101             * 
102             */
103            public void setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber) {
104                    this.referenceFinancialDocumentNumber = referenceFinancialDocumentNumber;
105            }
106    
107    
108            /**
109             * Gets the universityFiscalYear attribute.
110             * 
111             * @return Returns the universityFiscalYear
112             * 
113             */
114            public Integer getUniversityFiscalYear() { 
115                    return universityFiscalYear;
116            }
117    
118            /**
119             * Sets the universityFiscalYear attribute.
120             * 
121             * @param universityFiscalYear The universityFiscalYear to set.
122             * 
123             */
124            public void setUniversityFiscalYear(Integer universityFiscalYear) {
125                    this.universityFiscalYear = universityFiscalYear;
126            }
127    
128    
129            /**
130             * Gets the universityFiscalPeriodCode attribute.
131             * 
132             * @return Returns the universityFiscalPeriodCode
133             * 
134             */
135            public String getUniversityFiscalPeriodCode() { 
136                    return universityFiscalPeriodCode;
137            }
138    
139            /**
140             * Sets the universityFiscalPeriodCode attribute.
141             * 
142             * @param universityFiscalPeriodCode The universityFiscalPeriodCode to set.
143             * 
144             */
145            public void setUniversityFiscalPeriodCode(String universityFiscalPeriodCode) {
146                    this.universityFiscalPeriodCode = universityFiscalPeriodCode;
147            }
148    
149    
150            /**
151             * Gets the financialDocumentLineAmount attribute.
152             * 
153             * @return Returns the financialDocumentLineAmount
154             * 
155             */
156            public KualiDecimal getFinancialDocumentLineAmount() { 
157                    return financialDocumentLineAmount;
158            }
159    
160            /**
161             * Sets the financialDocumentLineAmount attribute.
162             * 
163             * @param financialDocumentLineAmount The financialDocumentLineAmount to set.
164             * 
165             */
166            public void setFinancialDocumentLineAmount(KualiDecimal financialDocumentLineAmount) {
167                    this.financialDocumentLineAmount = financialDocumentLineAmount;
168            }
169       
170            /**
171             * Gets the universityFiscalPeriod attribute.
172             * 
173             * @return Returns the universityFiscalPeriod
174             * 
175             */
176            public AccountingPeriod getUniversityFiscalPeriod() { 
177                    return universityFiscalPeriod;
178            }
179    
180            /**
181             * Sets the universityFiscalPeriod attribute.
182             * 
183             * @param universityFiscalPeriod The universityFiscalPeriod to set.
184             * @deprecated
185             */
186            public void setUniversityFiscalPeriod(AccountingPeriod universityFiscalPeriod) {
187                    this.universityFiscalPeriod = universityFiscalPeriod;
188            }
189    
190            /**
191             * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
192             */
193        @SuppressWarnings("unchecked")
194            protected LinkedHashMap toStringMapper() {
195                LinkedHashMap m = new LinkedHashMap();          
196            m.put("documentNumber", this.documentNumber);
197            if (this.paidAppliedItemNumber != null) {
198                m.put("paidAppliedItemNumber", this.paidAppliedItemNumber.toString());
199            }
200            m.put("referenceFinancialDocumentNumber", this.referenceFinancialDocumentNumber);
201                return m;
202        }
203    
204    }