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 023 /** 024 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu) 025 */ 026 public class AssetWarranty extends PersistableBusinessObjectBase { 027 028 private Long capitalAssetNumber; 029 private String warrantyContactName; 030 private String warrantyPhoneNumber; 031 private Date warrantyBeginningDate; 032 private Date warrantyEndingDate; 033 private String warrantyNumber; 034 private String warrantyPurchaseOrderNumber; 035 private String warrantyText; 036 037 private Asset asset; 038 039 /** 040 * Default constructor. 041 */ 042 public AssetWarranty() { 043 044 } 045 046 /** 047 * Gets the capitalAssetNumber attribute. 048 * 049 * @return Returns the capitalAssetNumber 050 * 051 */ 052 public Long getCapitalAssetNumber() { 053 return capitalAssetNumber; 054 } 055 056 /** 057 * Sets the capitalAssetNumber attribute. 058 * 059 * @param capitalAssetNumber The capitalAssetNumber to set. 060 * 061 */ 062 public void setCapitalAssetNumber(Long capitalAssetNumber) { 063 this.capitalAssetNumber = capitalAssetNumber; 064 } 065 066 067 /** 068 * Gets the warrantyContactName attribute. 069 * 070 * @return Returns the warrantyContactName 071 * 072 */ 073 public String getWarrantyContactName() { 074 return warrantyContactName; 075 } 076 077 /** 078 * Sets the warrantyContactName attribute. 079 * 080 * @param warrantyContactName The warrantyContactName to set. 081 * 082 */ 083 public void setWarrantyContactName(String warrantyContactName) { 084 this.warrantyContactName = warrantyContactName; 085 } 086 087 088 /** 089 * Gets the warrantyPhoneNumber attribute. 090 * 091 * @return Returns the warrantyPhoneNumber 092 * 093 */ 094 public String getWarrantyPhoneNumber() { 095 return warrantyPhoneNumber; 096 } 097 098 /** 099 * Sets the warrantyPhoneNumber attribute. 100 * 101 * @param warrantyPhoneNumber The warrantyPhoneNumber to set. 102 * 103 */ 104 public void setWarrantyPhoneNumber(String warrantyPhoneNumber) { 105 this.warrantyPhoneNumber = warrantyPhoneNumber; 106 } 107 108 109 /** 110 * Gets the warrantyBeginningDate attribute. 111 * 112 * @return Returns the warrantyBeginningDate 113 * 114 */ 115 public Date getWarrantyBeginningDate() { 116 return warrantyBeginningDate; 117 } 118 119 /** 120 * Sets the warrantyBeginningDate attribute. 121 * 122 * @param warrantyBeginningDate The warrantyBeginningDate to set. 123 * 124 */ 125 public void setWarrantyBeginningDate(Date warrantyBeginningDate) { 126 this.warrantyBeginningDate = warrantyBeginningDate; 127 } 128 129 130 /** 131 * Gets the warrantyEndingDate attribute. 132 * 133 * @return Returns the warrantyEndingDate 134 * 135 */ 136 public Date getWarrantyEndingDate() { 137 return warrantyEndingDate; 138 } 139 140 /** 141 * Sets the warrantyEndingDate attribute. 142 * 143 * @param warrantyEndingDate The warrantyEndingDate to set. 144 * 145 */ 146 public void setWarrantyEndingDate(Date warrantyEndingDate) { 147 this.warrantyEndingDate = warrantyEndingDate; 148 } 149 150 151 /** 152 * Gets the warrantyNumber attribute. 153 * 154 * @return Returns the warrantyNumber 155 * 156 */ 157 public String getWarrantyNumber() { 158 return warrantyNumber; 159 } 160 161 /** 162 * Sets the warrantyNumber attribute. 163 * 164 * @param warrantyNumber The warrantyNumber to set. 165 * 166 */ 167 public void setWarrantyNumber(String warrantyNumber) { 168 this.warrantyNumber = warrantyNumber; 169 } 170 171 172 /** 173 * Gets the warrantyPurchaseOrderNumber attribute. 174 * 175 * @return Returns the warrantyPurchaseOrderNumber 176 * 177 */ 178 public String getWarrantyPurchaseOrderNumber() { 179 return warrantyPurchaseOrderNumber; 180 } 181 182 /** 183 * Sets the warrantyPurchaseOrderNumber attribute. 184 * 185 * @param warrantyPurchaseOrderNumber The warrantyPurchaseOrderNumber to set. 186 * 187 */ 188 public void setWarrantyPurchaseOrderNumber(String warrantyPurchaseOrderNumber) { 189 this.warrantyPurchaseOrderNumber = warrantyPurchaseOrderNumber; 190 } 191 192 193 /** 194 * Gets the warrantyText attribute. 195 * 196 * @return Returns the warrantyText 197 * 198 */ 199 public String getWarrantyText() { 200 return warrantyText; 201 } 202 203 /** 204 * Sets the warrantyText attribute. 205 * 206 * @param warrantyText The warrantyText to set. 207 * 208 */ 209 public void setWarrantyText(String warrantyText) { 210 this.warrantyText = warrantyText; 211 } 212 213 214 /** 215 * Gets the asset attribute. 216 * 217 * @return Returns the asset 218 * 219 */ 220 public Asset getAsset() { 221 return asset; 222 } 223 224 /** 225 * Sets the asset attribute. 226 * 227 * @param asset The asset to set. 228 * @deprecated 229 */ 230 public void setAsset(Asset asset) { 231 this.asset = asset; 232 } 233 234 /** 235 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 236 */ 237 protected LinkedHashMap toStringMapper() { 238 LinkedHashMap m = new LinkedHashMap(); 239 if (this.capitalAssetNumber != null) { 240 m.put("capitalAssetNumber", this.capitalAssetNumber.toString()); 241 } 242 return m; 243 } 244 }