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 017 package org.kuali.kfs.module.purap.businessobject; 018 019 import java.sql.Date; 020 import java.util.LinkedHashMap; 021 022 import org.kuali.kfs.module.purap.document.PurchaseOrderDocument; 023 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 024 025 /** 026 * Purchase Order Vendor Stipulation. 027 */ 028 public class PurchaseOrderVendorStipulation extends PersistableBusinessObjectBase { 029 030 private String documentNumber; 031 private Integer purchaseOrderVendorStipulationIdentifier; 032 private String vendorStipulationDescription; 033 private String vendorStipulationAuthorEmployeeIdentifier; 034 private Date vendorStipulationCreateDate; 035 036 private PurchaseOrderDocument purchaseOrder; 037 038 public PurchaseOrderVendorStipulation() { 039 } 040 041 public String getDocumentNumber() { 042 return documentNumber; 043 } 044 045 public void setDocumentNumber(String documentNumber) { 046 this.documentNumber = documentNumber; 047 } 048 049 public Integer getPurchaseOrderVendorStipulationIdentifier() { 050 return purchaseOrderVendorStipulationIdentifier; 051 } 052 053 public void setPurchaseOrderVendorStipulationIdentifier(Integer purchaseOrderVendorStipulationIdentifier) { 054 this.purchaseOrderVendorStipulationIdentifier = purchaseOrderVendorStipulationIdentifier; 055 } 056 057 public String getVendorStipulationDescription() { 058 return vendorStipulationDescription; 059 } 060 061 public void setVendorStipulationDescription(String vendorStipulationDescription) { 062 this.vendorStipulationDescription = vendorStipulationDescription; 063 } 064 065 public String getVendorStipulationAuthorEmployeeIdentifier() { 066 return vendorStipulationAuthorEmployeeIdentifier; 067 } 068 069 public void setVendorStipulationAuthorEmployeeIdentifier(String vendorStipulationAuthorEmployeeIdentifier) { 070 this.vendorStipulationAuthorEmployeeIdentifier = vendorStipulationAuthorEmployeeIdentifier; 071 } 072 073 public Date getVendorStipulationCreateDate() { 074 return vendorStipulationCreateDate; 075 } 076 077 public void setVendorStipulationCreateDate(Date vendorStipulationCreateDate) { 078 this.vendorStipulationCreateDate = vendorStipulationCreateDate; 079 } 080 081 public PurchaseOrderDocument getPurchaseOrder() { 082 return purchaseOrder; 083 } 084 085 /** 086 * Sets the purchaseOrder attribute. 087 * 088 * @param purchaseOrder The purchaseOrder to set. 089 * @deprecated 090 */ 091 public void setPurchaseOrder(PurchaseOrderDocument purchaseOrder) { 092 this.purchaseOrder = purchaseOrder; 093 } 094 095 /** 096 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 097 */ 098 protected LinkedHashMap toStringMapper() { 099 LinkedHashMap m = new LinkedHashMap(); 100 m.put("documentNumber", this.documentNumber); 101 if (this.purchaseOrderVendorStipulationIdentifier != null) { 102 m.put("purchaseOrderVendorStipulationIdentifier", this.purchaseOrderVendorStipulationIdentifier.toString()); 103 } 104 return m; 105 } 106 107 }