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.sql.Date;
019    import java.util.LinkedHashMap;
020    
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 AssetRepairHistory extends PersistableBusinessObjectBase {
028    
029            private Long capitalAssetNumber;
030            private Date incidentDate;
031            private String problemDescription;
032            private String repairContactName;
033            private String repairNoteText;
034            private Date estimatedRepairDate;
035            private Date repairDate;
036            private KualiDecimal repairAmount;
037            private String repairSolutionDescription;
038    
039        private Asset asset;
040    
041            /**
042             * Default constructor.
043             */
044            public AssetRepairHistory() {
045    
046            }
047    
048            /**
049             * Gets the capitalAssetNumber attribute.
050             * 
051             * @return Returns the capitalAssetNumber
052             * 
053             */
054            public Long getCapitalAssetNumber() { 
055                    return capitalAssetNumber;
056            }
057    
058            /**
059             * Sets the capitalAssetNumber attribute.
060             * 
061             * @param capitalAssetNumber The capitalAssetNumber to set.
062             * 
063             */
064            public void setCapitalAssetNumber(Long capitalAssetNumber) {
065                    this.capitalAssetNumber = capitalAssetNumber;
066            }
067    
068    
069            /**
070             * Gets the incidentDate attribute.
071             * 
072             * @return Returns the incidentDate
073             * 
074             */
075            public Date getIncidentDate() { 
076                    return incidentDate;
077            }
078    
079            /**
080             * Sets the incidentDate attribute.
081             * 
082             * @param incidentDate The incidentDate to set.
083             * 
084             */
085            public void setIncidentDate(Date incidentDate) {
086                    this.incidentDate = incidentDate;
087            }
088    
089    
090            /**
091             * Gets the problemDescription attribute.
092             * 
093             * @return Returns the problemDescription
094             * 
095             */
096            public String getProblemDescription() { 
097                    return problemDescription;
098            }
099    
100            /**
101             * Sets the problemDescription attribute.
102             * 
103             * @param problemDescription The problemDescription to set.
104             * 
105             */
106            public void setProblemDescription(String problemDescription) {
107                    this.problemDescription = problemDescription;
108            }
109    
110    
111            /**
112             * Gets the repairContactName attribute.
113             * 
114             * @return Returns the repairContactName
115             * 
116             */
117            public String getRepairContactName() { 
118                    return repairContactName;
119            }
120    
121            /**
122             * Sets the repairContactName attribute.
123             * 
124             * @param repairContactName The repairContactName to set.
125             * 
126             */
127            public void setRepairContactName(String repairContactName) {
128                    this.repairContactName = repairContactName;
129            }
130    
131    
132            /**
133             * Gets the repairNoteText attribute.
134             * 
135             * @return Returns the repairNoteText
136             * 
137             */
138            public String getRepairNoteText() { 
139                    return repairNoteText;
140            }
141    
142            /**
143             * Sets the repairNoteText attribute.
144             * 
145             * @param repairNoteText The repairNoteText to set.
146             * 
147             */
148            public void setRepairNoteText(String repairNoteText) {
149                    this.repairNoteText = repairNoteText;
150            }
151    
152    
153            /**
154             * Gets the estimatedRepairDate attribute.
155             * 
156             * @return Returns the estimatedRepairDate
157             * 
158             */
159            public Date getEstimatedRepairDate() { 
160                    return estimatedRepairDate;
161            }
162    
163            /**
164             * Sets the estimatedRepairDate attribute.
165             * 
166             * @param estimatedRepairDate The estimatedRepairDate to set.
167             * 
168             */
169            public void setEstimatedRepairDate(Date estimatedRepairDate) {
170                    this.estimatedRepairDate = estimatedRepairDate;
171            }
172    
173    
174            /**
175             * Gets the repairDate attribute.
176             * 
177             * @return Returns the repairDate
178             * 
179             */
180            public Date getRepairDate() { 
181                    return repairDate;
182            }
183    
184            /**
185             * Sets the repairDate attribute.
186             * 
187             * @param repairDate The repairDate to set.
188             * 
189             */
190            public void setRepairDate(Date repairDate) {
191                    this.repairDate = repairDate;
192            }
193    
194    
195            /**
196             * Gets the repairAmount attribute.
197             * 
198             * @return Returns the repairAmount
199             * 
200             */
201            public KualiDecimal getRepairAmount() { 
202                    return repairAmount;
203            }
204    
205            /**
206             * Sets the repairAmount attribute.
207             * 
208             * @param repairAmount The repairAmount to set.
209             * 
210             */
211            public void setRepairAmount(KualiDecimal repairAmount) {
212                    this.repairAmount = repairAmount;
213            }
214    
215    
216            /**
217             * Gets the repairSolutionDescription attribute.
218             * 
219             * @return Returns the repairSolutionDescription
220             * 
221             */
222            public String getRepairSolutionDescription() { 
223                    return repairSolutionDescription;
224            }
225    
226            /**
227             * Sets the repairSolutionDescription attribute.
228             * 
229             * @param repairSolutionDescription The repairSolutionDescription to set.
230             * 
231             */
232            public void setRepairSolutionDescription(String repairSolutionDescription) {
233                    this.repairSolutionDescription = repairSolutionDescription;
234            }
235    
236    
237            /**
238             * Gets the asset attribute.
239             * 
240             * @return Returns the asset
241             * 
242             */
243            public Asset getAsset() { 
244                    return asset;
245            }
246    
247            /**
248             * Sets the asset attribute.
249             * 
250             * @param asset The asset to set.
251             * @deprecated
252             */
253            public void setAsset(Asset asset) {
254                    this.asset = asset;
255            }
256    
257            /**
258             * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
259             */
260            protected LinkedHashMap toStringMapper() {
261                LinkedHashMap m = new LinkedHashMap();          
262            if (this.capitalAssetNumber != null) {
263                m.put("capitalAssetNumber", this.capitalAssetNumber.toString());
264            }
265            if (this.incidentDate != null) {
266                m.put("incidentDate", this.incidentDate.toString());
267            }
268                return m;
269        }
270    }