001/* 002 * Copyright 2007 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 017package org.kuali.ole.vnd.businessobject; 018 019import java.util.LinkedHashMap; 020 021import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; 022import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 023 024/** 025 * Generic Phone Numbers for Vendors, as opposed to <code>VendorContactPhoneNumber</code> instances, which are specific to the 026 * Contact. 027 * 028 * @see org.kuali.ole.vnd.businessobject.VendorContactPhoneNumber 029 */ 030public class VendorPhoneNumber extends PersistableBusinessObjectBase implements MutableInactivatable { 031 032 private Integer vendorPhoneGeneratedIdentifier; 033 private Integer vendorHeaderGeneratedIdentifier; 034 private Integer vendorDetailAssignedIdentifier; 035 private String vendorPhoneTypeCode; 036 private String vendorPhoneNumber; 037 private String vendorPhoneExtensionNumber; 038 private boolean active; 039 040 private VendorDetail vendorDetail; 041 private VendorContact vendorContact; 042 private VendorAddress vendorAddress; 043 private PhoneType vendorPhoneType; 044 045 /** 046 * Default constructor. 047 */ 048 public VendorPhoneNumber() { 049 050 } 051 052 public Integer getVendorPhoneGeneratedIdentifier() { 053 054 return vendorPhoneGeneratedIdentifier; 055 } 056 057 public void setVendorPhoneGeneratedIdentifier(Integer vendorPhoneGeneratedIdentifier) { 058 this.vendorPhoneGeneratedIdentifier = vendorPhoneGeneratedIdentifier; 059 } 060 061 public Integer getVendorHeaderGeneratedIdentifier() { 062 063 return vendorHeaderGeneratedIdentifier; 064 } 065 066 public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) { 067 this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier; 068 } 069 070 public Integer getVendorDetailAssignedIdentifier() { 071 072 return vendorDetailAssignedIdentifier; 073 } 074 075 public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) { 076 this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier; 077 } 078 079 public String getVendorPhoneTypeCode() { 080 081 return vendorPhoneTypeCode; 082 } 083 084 public void setVendorPhoneTypeCode(String vendorPhoneTypeCode) { 085 this.vendorPhoneTypeCode = vendorPhoneTypeCode; 086 } 087 088 public String getVendorPhoneNumber() { 089 090 return vendorPhoneNumber; 091 } 092 093 public void setVendorPhoneNumber(String vendorPhoneNumber) { 094 this.vendorPhoneNumber = vendorPhoneNumber; 095 } 096 097 public String getVendorPhoneExtensionNumber() { 098 099 return vendorPhoneExtensionNumber; 100 } 101 102 public void setVendorPhoneExtensionNumber(String vendorPhoneExtensionNumber) { 103 this.vendorPhoneExtensionNumber = vendorPhoneExtensionNumber; 104 } 105 106 public boolean isActive() { 107 108 return active; 109 } 110 111 public void setActive(boolean active) { 112 this.active = active; 113 } 114 115 public VendorDetail getVendorDetail() { 116 117 return vendorDetail; 118 } 119 120 /** 121 * Sets the vendorDetail attribute. 122 * 123 * @param vendorDetail The vendorDetail to set. 124 * @deprecated 125 */ 126 public void setVendorDetail(VendorDetail vendorDetail) { 127 this.vendorDetail = vendorDetail; 128 } 129 130 public VendorContact getVendorContact() { 131 132 return vendorContact; 133 } 134 135 /** 136 * Sets the vendorContact attribute. 137 * 138 * @param vendorContact The vendorContact to set. 139 * @deprecated 140 */ 141 public void setVendorContact(VendorContact vendorContact) { 142 this.vendorContact = vendorContact; 143 } 144 145 public VendorAddress getVendorAddress() { 146 147 return vendorAddress; 148 } 149 150 /** 151 * Sets the vendorAddress attribute. 152 * 153 * @param vendorAddress The vendorAddress to set. 154 * @deprecated 155 */ 156 public void setVendorAddress(VendorAddress vendorAddress) { 157 this.vendorAddress = vendorAddress; 158 } 159 160 public PhoneType getVendorPhoneType() { 161 162 return vendorPhoneType; 163 } 164 165 /** 166 * Sets the vendorPhoneType attribute. 167 * 168 * @param vendorPhoneType The vendorPhoneType to set. 169 * @deprecated 170 */ 171 public void setVendorPhoneType(PhoneType vendorPhoneType) { 172 this.vendorPhoneType = vendorPhoneType; 173 } 174 175 /** 176 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 177 */ 178 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 179 LinkedHashMap m = new LinkedHashMap(); 180 if (this.vendorPhoneGeneratedIdentifier != null) { 181 m.put("vendorPhoneGeneratedIdentifier", this.vendorPhoneGeneratedIdentifier.toString()); 182 } 183 184 return m; 185 } 186}