01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.kuali.module.vendor.bo;
18:
19: import java.util.LinkedHashMap;
20:
21: import org.kuali.core.bo.PersistableBusinessObjectBase;
22:
23: /**
24: * Types of Contacts for Vendor Contacts. Typically, these types reflect the Contact's position and/or function within the Vendor's
25: * organization.
26: *
27: * @see org.kuali.module.vendor.bo.VendorContact
28: */
29: public class ContactType extends PersistableBusinessObjectBase {
30:
31: private String vendorContactTypeCode;
32: private String vendorContactTypeDescription;
33: private boolean active;
34:
35: /**
36: * Default constructor.
37: */
38: public ContactType() {
39:
40: }
41:
42: public String getVendorContactTypeCode() {
43:
44: return vendorContactTypeCode;
45: }
46:
47: public void setVendorContactTypeCode(String vendorContactTypeCode) {
48: this .vendorContactTypeCode = vendorContactTypeCode;
49: }
50:
51: public String getVendorContactTypeDescription() {
52:
53: return vendorContactTypeDescription;
54: }
55:
56: public void setVendorContactTypeDescription(
57: String vendorContactTypeDescription) {
58: this .vendorContactTypeDescription = vendorContactTypeDescription;
59: }
60:
61: public boolean isActive() {
62:
63: return active;
64: }
65:
66: public void setActive(boolean active) {
67: this .active = active;
68: }
69:
70: /**
71: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
72: */
73: protected LinkedHashMap toStringMapper() {
74: LinkedHashMap m = new LinkedHashMap();
75: m.put("vendorContactTypeCode", this.vendorContactTypeCode);
76:
77: return m;
78: }
79: }
|