View Javadoc

1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
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.ole.vnd.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  /**
25   * Generic Phone Numbers for Vendors, as opposed to <code>VendorContactPhoneNumber</code> instances, which are specific to the
26   * Contact.
27   * 
28   * @see org.kuali.ole.vnd.businessobject.VendorContactPhoneNumber
29   */
30  public class VendorPhoneNumber extends PersistableBusinessObjectBase implements MutableInactivatable {
31  
32      private Integer vendorPhoneGeneratedIdentifier;
33      private Integer vendorHeaderGeneratedIdentifier;
34      private Integer vendorDetailAssignedIdentifier;
35      private String vendorPhoneTypeCode;
36      private String vendorPhoneNumber;
37      private String vendorPhoneExtensionNumber;
38      private boolean active;
39  
40      private VendorDetail vendorDetail;
41      private VendorContact vendorContact;
42      private VendorAddress vendorAddress;
43      private PhoneType vendorPhoneType;
44  
45      /**
46       * Default constructor.
47       */
48      public VendorPhoneNumber() {
49  
50      }
51  
52      public Integer getVendorPhoneGeneratedIdentifier() {
53  
54          return vendorPhoneGeneratedIdentifier;
55      }
56  
57      public void setVendorPhoneGeneratedIdentifier(Integer vendorPhoneGeneratedIdentifier) {
58          this.vendorPhoneGeneratedIdentifier = vendorPhoneGeneratedIdentifier;
59      }
60  
61      public Integer getVendorHeaderGeneratedIdentifier() {
62  
63          return vendorHeaderGeneratedIdentifier;
64      }
65  
66      public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
67          this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
68      }
69  
70      public Integer getVendorDetailAssignedIdentifier() {
71  
72          return vendorDetailAssignedIdentifier;
73      }
74  
75      public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) {
76          this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
77      }
78  
79      public String getVendorPhoneTypeCode() {
80  
81          return vendorPhoneTypeCode;
82      }
83  
84      public void setVendorPhoneTypeCode(String vendorPhoneTypeCode) {
85          this.vendorPhoneTypeCode = vendorPhoneTypeCode;
86      }
87  
88      public String getVendorPhoneNumber() {
89  
90          return vendorPhoneNumber;
91      }
92  
93      public void setVendorPhoneNumber(String vendorPhoneNumber) {
94          this.vendorPhoneNumber = vendorPhoneNumber;
95      }
96  
97      public String getVendorPhoneExtensionNumber() {
98  
99          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 }