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