Coverage Report - edu.sampleu.financial.bo.VendorDetail
 
Classes in this File Line Coverage Branch Coverage Complexity
VendorDetail
0%
0/177
0%
0/32
1.211
 
 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 edu.sampleu.financial.bo;
 18  
 
 19  
 import java.sql.Date;
 20  
 import java.util.ArrayList;
 21  
 import java.util.LinkedHashMap;
 22  
 import java.util.List;
 23  
 
 24  
 import org.apache.commons.lang.StringUtils;
 25  
 import org.apache.log4j.Logger;
 26  
 import org.kuali.rice.core.util.type.KualiDecimal;
 27  
 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
 28  
 import org.kuali.rice.kns.util.ObjectUtils;
 29  
 
 30  
 /**
 31  
  * Contains all data for a specific parent or division Vendor, including a link to the <code>VendorHeader</code>, which only
 32  
  * contains information about the parent company, but can be shared between division Vendors.
 33  
  *
 34  
  * @see org.kuali.kfs.vnd.businessobject.VendorHeader
 35  
  */
 36  
 public class VendorDetail extends PersistableBusinessObjectBase { //implements VendorRoutingComparable {
 37  0
     private static Logger LOG = Logger.getLogger(VendorDetail.class);
 38  
 
 39  
     private Integer vendorHeaderGeneratedIdentifier;
 40  
     private Integer vendorDetailAssignedIdentifier;
 41  
     private String vendorNumber; // not persisted in the db
 42  
     private boolean vendorParentIndicator;
 43  
     private String vendorName;
 44  
     private String vendorFirstName; // not persisted in the db
 45  
     private String vendorLastName; // not persisted in the db
 46  
     private String vendorStateForLookup; // not persisted in the db
 47  
 
 48  
     private boolean activeIndicator;
 49  
     private String vendorInactiveReasonCode;
 50  
     private String vendorDunsNumber;
 51  
     private String vendorPaymentTermsCode;
 52  
     private String vendorShippingTitleCode;
 53  
     private String vendorShippingPaymentTermsCode;
 54  
     private Boolean vendorConfirmationIndicator;
 55  
     private Boolean vendorPrepaymentIndicator;
 56  
     private Boolean vendorCreditCardIndicator;
 57  
     private KualiDecimal vendorMinimumOrderAmount;
 58  
     private String vendorUrlAddress;
 59  
     private String vendorRemitName;
 60  
     private Boolean vendorRestrictedIndicator;
 61  
     private String vendorRestrictedReasonText;
 62  
     private Date vendorRestrictedDate;
 63  
     //    private String vendorRestrictedPersonIdentifier;
 64  
     private String vendorSoldToNumber; // not persisted in the db
 65  
     private Integer vendorSoldToGeneratedIdentifier;
 66  
     private Integer vendorSoldToAssignedIdentifier;
 67  
     private String vendorSoldToName;
 68  
     private boolean vendorFirstLastNameIndicator;
 69  
     private boolean taxableIndicator;
 70  
 
 71  
     private List<VendorAddress> vendorAddresses;
 72  
 
 73  
 //    private List<VendorAlias> vendorAliases;
 74  
 //    private List<VendorContact> vendorContacts;
 75  
 //    private List<VendorCustomerNumber> vendorCustomerNumbers;
 76  
 //    private List<VendorPhoneNumber> vendorPhoneNumbers;
 77  
 //    private List<VendorShippingSpecialCondition> vendorShippingSpecialConditions;
 78  
 //    private List<VendorCommodityCode> vendorCommodities;
 79  
 
 80  
     private VendorHeader vendorHeader;
 81  
     //    private VendorInactiveReason vendorInactiveReason;
 82  
     private PaymentTermType vendorPaymentTerms;
 83  
     //    private ShippingTitle vendorShippingTitle;
 84  
     private ShippingPaymentTerms vendorShippingPaymentTerms;
 85  
     private VendorDetail soldToVendorDetail;
 86  
 //    private Person vendorRestrictedPerson;
 87  
 
 88  
     private String vendorParentName; // not persisted in the db
 89  
     private String defaultAddressLine1; // not persisted in the db
 90  
     private String defaultAddressLine2; // not persisted in the db
 91  
     private String defaultAddressCity; // not persisted in the db
 92  
     private String defaultAddressStateCode; // not persisted in the db
 93  
     private String defaultAddressInternationalProvince; // not persisted in the db
 94  
     private String defaultAddressPostalCode; // not persisted in the db
 95  
     private String defaultAddressCountryCode; // not persisted in the db
 96  
     private String defaultFaxNumber; // not persisted in the db
 97  
 
 98  
     /**
 99  
      * Default constructor.
 100  
      */
 101  
     public VendorDetail() {
 102  0
         super();
 103  
 
 104  0
         vendorHeader = new VendorHeader();
 105  0
         vendorAddresses = new ArrayList();
 106  
         /*vendorAliases = new TypedArrayList(VendorAlias.class);
 107  
         vendorContacts = new TypedArrayList(VendorContact.class);
 108  
         vendorContracts = new TypedArrayList(VendorContract.class);
 109  
         vendorCustomerNumbers = new TypedArrayList(VendorCustomerNumber.class);
 110  
         vendorPhoneNumbers = new TypedArrayList(VendorPhoneNumber.class);
 111  
         vendorShippingSpecialConditions = new TypedArrayList(VendorShippingSpecialCondition.class);
 112  
         vendorCommodities = new TypedArrayList(VendorCommodityCode.class);*/
 113  0
         vendorParentIndicator = true;
 114  
 
 115  0
     }
 116  
 
 117  
     public Integer getVendorHeaderGeneratedIdentifier() {
 118  0
         return vendorHeaderGeneratedIdentifier;
 119  
     }
 120  
 
 121  
     public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
 122  0
         this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
 123  0
     }
 124  
 
 125  
     public Integer getVendorDetailAssignedIdentifier() {
 126  0
         return vendorDetailAssignedIdentifier;
 127  
     }
 128  
 
 129  
     public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) {
 130  0
         this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
 131  0
     }
 132  
 
 133  
     /**
 134  
      * A concatenation of the vendorHeaderGeneratedIdentifier, a dash, and the vendorDetailAssignedIdentifier
 135  
      *
 136  
      * @return Returns the vendorNumber.
 137  
      */
 138  
     public String getVendorNumber() {
 139  0
         String headerId = "";
 140  0
         String detailId = "";
 141  0
         String vendorNumber = "";
 142  0
         if (ObjectUtils.isNotNull(this.vendorHeaderGeneratedIdentifier)) {
 143  0
             headerId = this.vendorHeaderGeneratedIdentifier.toString();
 144  
         }
 145  0
         if (ObjectUtils.isNotNull(this.vendorDetailAssignedIdentifier)) {
 146  0
             detailId = this.vendorDetailAssignedIdentifier.toString();
 147  
         }
 148  0
         if (!StringUtils.isEmpty(headerId) && !StringUtils.isEmpty(detailId)) {
 149  0
             vendorNumber = headerId + "-" + detailId;
 150  
         }
 151  
 
 152  0
         return vendorNumber;
 153  
     }
 154  
 
 155  
     /**
 156  
      * Sets the vendorNumber attribute value.
 157  
      * If vendorNumber is empty, clears header and detail IDs.
 158  
      * If vendorNumber is invalid, leaves header and detail IDs as were.
 159  
      *
 160  
      * @param vendorNumber The vendorNumber to set.
 161  
      */
 162  
     public void setVendorNumber(String vendorNumber) {
 163  0
         this.vendorNumber = vendorNumber;
 164  
 
 165  0
         if (StringUtils.isEmpty(vendorNumber)) {
 166  0
             vendorHeaderGeneratedIdentifier = null;
 167  0
             vendorDetailAssignedIdentifier = null;
 168  0
             return;
 169  
         }
 170  
 
 171  0
         int dashInd = vendorNumber.indexOf('-');
 172  
         // make sure there's at least one char before and after '-'
 173  0
         if (dashInd > 0 && dashInd < vendorNumber.length() - 1) {
 174  
             try {
 175  0
                 vendorHeaderGeneratedIdentifier = new Integer(vendorNumber.substring(0, dashInd));
 176  0
                 vendorDetailAssignedIdentifier = new Integer(vendorNumber.substring(dashInd + 1));
 177  0
             } catch (NumberFormatException e) {
 178  
                 // in case of invalid number format
 179  0
             }
 180  
         }
 181  0
     }
 182  
 
 183  
     public String getVendorName() {
 184  0
         return vendorName;
 185  
     }
 186  
 
 187  
     public void setVendorName(String vendorName) {
 188  0
         this.vendorName = vendorName;
 189  0
     }
 190  
 
 191  
     public Integer getVendorSoldToGeneratedIdentifier() {
 192  0
         return vendorSoldToGeneratedIdentifier;
 193  
     }
 194  
 
 195  
     public void setVendorSoldToGeneratedIdentifier(Integer vendorSoldToGeneratedIdentifier) {
 196  0
         this.vendorSoldToGeneratedIdentifier = vendorSoldToGeneratedIdentifier;
 197  0
     }
 198  
 
 199  
     public Integer getVendorSoldToAssignedIdentifier() {
 200  0
         return vendorSoldToAssignedIdentifier;
 201  
     }
 202  
 
 203  
     public void setVendorSoldToAssignedIdentifier(Integer vendorSoldToAssignedIdentifier) {
 204  0
         this.vendorSoldToAssignedIdentifier = vendorSoldToAssignedIdentifier;
 205  0
     }
 206  
 
 207  
     /**
 208  
      * Gets the vendorSoldToNumber attribute.
 209  
      *
 210  
      * @return Returns the vendorSoldToNumber.
 211  
      */
 212  
     public String getVendorSoldToNumber() {
 213  0
         String headerId = "";
 214  0
         String detailId = "";
 215  0
         String vendorSoldToNumber = "";
 216  
 
 217  0
         if (this.vendorSoldToGeneratedIdentifier != null) {
 218  0
             headerId = this.vendorSoldToGeneratedIdentifier.toString();
 219  
         }
 220  0
         if (this.vendorSoldToAssignedIdentifier != null) {
 221  0
             detailId = this.vendorSoldToAssignedIdentifier.toString();
 222  
         }
 223  0
         if (!StringUtils.isEmpty(headerId) && !StringUtils.isEmpty(detailId)) {
 224  0
             vendorSoldToNumber = headerId + "-" + detailId;
 225  
         }
 226  
 
 227  0
         return vendorSoldToNumber;
 228  
     }
 229  
 
 230  
     /**
 231  
      * Sets the vendorSoldToNumber attribute value.
 232  
      * If vendorSoldToNumber is empty, clears soldToVendor header and detail IDs.
 233  
      * If vendorSoldToNumber is invalid, leaves soldToVendor header and detail IDs as were.
 234  
      *
 235  
      * @param vendorSoldToNumber The vendorSoldToNumber to set.
 236  
      */
 237  
     public void setVendorSoldToNumber(String vendorSoldToNumber) {
 238  0
         this.vendorSoldToNumber = vendorSoldToNumber;
 239  
 
 240  0
         if (StringUtils.isEmpty(vendorSoldToNumber)) {
 241  0
             vendorSoldToGeneratedIdentifier = null;
 242  0
             vendorSoldToAssignedIdentifier = null;
 243  0
             return;
 244  
         }
 245  
 
 246  0
         int dashInd = vendorSoldToNumber.indexOf('-');
 247  
         // make sure there's at least one char before and after '-'
 248  0
         if (dashInd > 0 && dashInd < vendorSoldToNumber.length() - 1) {
 249  
             try {
 250  0
                 vendorSoldToGeneratedIdentifier = new Integer(vendorSoldToNumber.substring(0, dashInd));
 251  0
                 vendorSoldToAssignedIdentifier = new Integer(vendorSoldToNumber.substring(dashInd + 1));
 252  0
             } catch (NumberFormatException e) {
 253  
                 // in case of invalid number format
 254  0
             }
 255  
         }
 256  0
     }
 257  
 
 258  
     /**
 259  
      * Gets the vendorSoldToName attribute.
 260  
      *
 261  
      * @return Returns the vendorSoldToName
 262  
      */
 263  
     public String getVendorSoldToName() {
 264  0
         return this.vendorSoldToName;
 265  
     }
 266  
 
 267  
     public void setVendorSoldToName(String vendorSoldToName) {
 268  0
         this.vendorSoldToName = vendorSoldToName;
 269  0
     }
 270  
 
 271  
     public String getAltVendorName() {
 272  0
         return vendorName;
 273  
     }
 274  
 
 275  
     public void setAltVendorName(String altVendorName) {
 276  0
         this.vendorName = altVendorName;
 277  0
     }
 278  
 
 279  
     public String getVendorRemitName() {
 280  0
         return vendorRemitName;
 281  
     }
 282  
 
 283  
     public void setVendorRemitName(String vendorRemitName) {
 284  0
         this.vendorRemitName = vendorRemitName;
 285  0
     }
 286  
 
 287  
     public boolean isVendorParentIndicator() {
 288  0
         return vendorParentIndicator;
 289  
     }
 290  
 
 291  
     public void setVendorParentIndicator(boolean vendorParentIndicator) {
 292  0
         this.vendorParentIndicator = vendorParentIndicator;
 293  0
     }
 294  
 
 295  
     public boolean isTaxableIndicator() {
 296  0
         return taxableIndicator;
 297  
     }
 298  
 
 299  
     public void setTaxableIndicator(boolean taxableIndicator) {
 300  0
         this.taxableIndicator = taxableIndicator;
 301  0
     }
 302  
 
 303  
     public boolean isVendorDebarred() {
 304  0
         return (ObjectUtils.isNotNull(getVendorHeader().getVendorDebarredIndicator()) && getVendorHeader().getVendorDebarredIndicator());
 305  
     }
 306  
 
 307  
     public boolean isActiveIndicator() {
 308  0
         return activeIndicator;
 309  
     }
 310  
 
 311  
     public void setActiveIndicator(boolean activeIndicator) {
 312  0
         this.activeIndicator = activeIndicator;
 313  0
     }
 314  
 
 315  
 //    public String getVendorInactiveReasonCode() {
 316  
 //        return vendorInactiveReasonCode;
 317  
 //    }
 318  
 //
 319  
 //    public void setVendorInactiveReasonCode(String vendorInactiveReasonCode) {
 320  
 //        this.vendorInactiveReasonCode = vendorInactiveReasonCode;
 321  
 //    }
 322  
 
 323  
     public String getVendorPaymentTermsCode() {
 324  0
         return vendorPaymentTermsCode;
 325  
     }
 326  
 
 327  
     public void setVendorPaymentTermsCode(String vendorPaymentTermsCode) {
 328  0
         this.vendorPaymentTermsCode = vendorPaymentTermsCode;
 329  0
     }
 330  
 
 331  
 //    public String getVendorShippingTitleCode() {
 332  
 //        return vendorShippingTitleCode;
 333  
 //    }
 334  
 //
 335  
 //    public void setVendorShippingTitleCode(String vendorShippingTitleCode) {
 336  
 //        this.vendorShippingTitleCode = vendorShippingTitleCode;
 337  
 //    }
 338  
 
 339  
     public String getVendorShippingPaymentTermsCode() {
 340  0
         return vendorShippingPaymentTermsCode;
 341  
     }
 342  
 
 343  
     public void setVendorShippingPaymentTermsCode(String vendorShippingPaymentTermsCode) {
 344  0
         this.vendorShippingPaymentTermsCode = vendorShippingPaymentTermsCode;
 345  0
     }
 346  
 
 347  
     public Boolean getVendorConfirmationIndicator() {
 348  0
         return vendorConfirmationIndicator;
 349  
     }
 350  
 
 351  
     public void setVendorConfirmationIndicator(Boolean vendorConfirmationIndicator) {
 352  0
         this.vendorConfirmationIndicator = vendorConfirmationIndicator;
 353  0
     }
 354  
 
 355  
     public Boolean getVendorPrepaymentIndicator() {
 356  0
         return vendorPrepaymentIndicator;
 357  
     }
 358  
 
 359  
     public void setVendorPrepaymentIndicator(Boolean vendorPrepaymentIndicator) {
 360  0
         this.vendorPrepaymentIndicator = vendorPrepaymentIndicator;
 361  0
     }
 362  
 
 363  
     public Boolean getVendorCreditCardIndicator() {
 364  0
         return vendorCreditCardIndicator;
 365  
     }
 366  
 
 367  
     public void setVendorCreditCardIndicator(Boolean vendorCreditCardIndicator) {
 368  0
         this.vendorCreditCardIndicator = vendorCreditCardIndicator;
 369  0
     }
 370  
 
 371  
     public KualiDecimal getVendorMinimumOrderAmount() {
 372  0
         return vendorMinimumOrderAmount;
 373  
     }
 374  
 
 375  
     public void setVendorMinimumOrderAmount(KualiDecimal vendorMinimumOrderAmount) {
 376  0
         this.vendorMinimumOrderAmount = vendorMinimumOrderAmount;
 377  0
     }
 378  
 
 379  
     public String getVendorUrlAddress() {
 380  0
         return vendorUrlAddress;
 381  
     }
 382  
 
 383  
     public void setVendorUrlAddress(String vendorUrlAddress) {
 384  0
         this.vendorUrlAddress = vendorUrlAddress;
 385  0
     }
 386  
 
 387  
     public Boolean getVendorRestrictedIndicator() {
 388  0
         return vendorRestrictedIndicator;
 389  
     }
 390  
 
 391  
     public void setVendorRestrictedIndicator(Boolean vendorRestrictedIndicator) {
 392  0
         this.vendorRestrictedIndicator = vendorRestrictedIndicator;
 393  0
     }
 394  
 
 395  
     public String getVendorRestrictedReasonText() {
 396  0
         return vendorRestrictedReasonText;
 397  
     }
 398  
 
 399  
     public void setVendorRestrictedReasonText(String vendorRestrictedReasonText) {
 400  0
         this.vendorRestrictedReasonText = vendorRestrictedReasonText;
 401  0
     }
 402  
 
 403  
     public Date getVendorRestrictedDate() {
 404  0
         return vendorRestrictedDate;
 405  
     }
 406  
 
 407  
     public void setVendorRestrictedDate(Date vendorRestrictedDate) {
 408  0
         this.vendorRestrictedDate = vendorRestrictedDate;
 409  0
     }
 410  
 
 411  
     /*public String getVendorRestrictedPersonIdentifier() {
 412  
         return vendorRestrictedPersonIdentifier;
 413  
     }
 414  
 
 415  
     public void setVendorRestrictedPersonIdentifier(String vendorRestrictedPersonIdentifier) {
 416  
         this.vendorRestrictedPersonIdentifier = vendorRestrictedPersonIdentifier;
 417  
     }*/
 418  
 
 419  
     public String getVendorDunsNumber() {
 420  0
         return vendorDunsNumber;
 421  
     }
 422  
 
 423  
     public void setVendorDunsNumber(String vendorDunsNumber) {
 424  0
         this.vendorDunsNumber = vendorDunsNumber;
 425  0
     }
 426  
 
 427  
     public VendorHeader getVendorHeader() {
 428  0
         return vendorHeader;
 429  
     }
 430  
 
 431  
     public void setVendorHeader(VendorHeader vendorHeader) {
 432  0
         this.vendorHeader = vendorHeader;
 433  0
     }
 434  
 
 435  
     public PaymentTermType getVendorPaymentTerms() {
 436  0
         return vendorPaymentTerms;
 437  
     }
 438  
 
 439  
     /**
 440  
      * Sets the vendorPaymentTerms attribute.
 441  
      *
 442  
      * @param vendorPaymentTerms The vendorPaymentTerms to set.
 443  
      * @deprecated
 444  
      */
 445  
     public void setVendorPaymentTerms(PaymentTermType vendorPaymentTerms) {
 446  0
         this.vendorPaymentTerms = vendorPaymentTerms;
 447  0
     }
 448  
 
 449  
 //    public ShippingTitle getVendorShippingTitle() {
 450  
 //        return vendorShippingTitle;
 451  
 //    }
 452  
 
 453  
     /**
 454  
      * Sets the vendorShippingTitle attribute.
 455  
      *
 456  
      * @param vendorShippingTitle The vendorShippingTitle to set.
 457  
      * @deprecated
 458  
      */
 459  
 //    public void setVendorShippingTitle(ShippingTitle vendorShippingTitle) {
 460  
 //        this.vendorShippingTitle = vendorShippingTitle;
 461  
 //    }
 462  
     public ShippingPaymentTerms getVendorShippingPaymentTerms() {
 463  0
         return vendorShippingPaymentTerms;
 464  
     }
 465  
 
 466  
     /**
 467  
      * Sets the vendorShippingPaymentTerms attribute.
 468  
      *
 469  
      * @param vendorShippingPaymentTerms The vendorShippingPaymentTerms to set.
 470  
      * @deprecated
 471  
      */
 472  
     public void setVendorShippingPaymentTerms(ShippingPaymentTerms vendorShippingPaymentTerms) {
 473  0
         this.vendorShippingPaymentTerms = vendorShippingPaymentTerms;
 474  0
     }
 475  
 
 476  
 //    public VendorInactiveReason getVendorInactiveReason() {
 477  
 //        return vendorInactiveReason;
 478  
 //    }
 479  
 
 480  
     /**
 481  
      * Sets the vendorInactiveReason attribute value.
 482  
      *
 483  
      * @param vendorInactiveReason The vendorInactiveReason to set.
 484  
      * @deprecated
 485  
      */
 486  
 //    public void setVendorInactiveReason(VendorInactiveReason vendorInactiveReason) {
 487  
 //        this.vendorInactiveReason = vendorInactiveReason;
 488  
 //    }
 489  
     public List<VendorAddress> getVendorAddresses() {
 490  0
         return vendorAddresses;
 491  
     }
 492  
 
 493  
     public void setVendorAddresses(List<VendorAddress> vendorAddresses) {
 494  0
         this.vendorAddresses = vendorAddresses;
 495  0
     }
 496  
 
 497  
     /*public List<VendorContact> getVendorContacts() {
 498  
         return vendorContacts;
 499  
     }
 500  
 
 501  
     public void setVendorContacts(List<VendorContact> vendorContacts) {
 502  
         this.vendorContacts = vendorContacts;
 503  
     }
 504  
 
 505  
     public List<VendorContract> getVendorContracts() {
 506  
         return vendorContracts;
 507  
     }
 508  
 
 509  
     public void setVendorContracts(List<VendorContract> vendorContracts) {
 510  
         this.vendorContracts = vendorContracts;
 511  
     }
 512  
 
 513  
     public List<VendorCustomerNumber> getVendorCustomerNumbers() {
 514  
         return vendorCustomerNumbers;
 515  
     }
 516  
 
 517  
     public void setVendorCustomerNumbers(List<VendorCustomerNumber> vendorCustomerNumbers) {
 518  
         this.vendorCustomerNumbers = vendorCustomerNumbers;
 519  
     }
 520  
 
 521  
     public List<VendorShippingSpecialCondition> getVendorShippingSpecialConditions() {
 522  
         return vendorShippingSpecialConditions;
 523  
     }
 524  
 
 525  
     public void setVendorShippingSpecialConditions(List<VendorShippingSpecialCondition> vendorShippingSpecialConditions) {
 526  
         this.vendorShippingSpecialConditions = vendorShippingSpecialConditions;
 527  
     }
 528  
 
 529  
     public List<VendorCommodityCode> getVendorCommodities() {
 530  
         return vendorCommodities;
 531  
     }
 532  
 
 533  
     public void setVendorCommodities(List<VendorCommodityCode> vendorCommodities) {
 534  
         this.vendorCommodities = vendorCommodities;
 535  
     }
 536  
 
 537  
     public List<VendorAlias> getVendorAliases() {
 538  
         return vendorAliases;
 539  
     }
 540  
 
 541  
     public void setVendorAliases(List<VendorAlias> vendorAliases) {
 542  
         this.vendorAliases = vendorAliases;
 543  
     }
 544  
 
 545  
     public List<VendorPhoneNumber> getVendorPhoneNumbers() {
 546  
         return vendorPhoneNumbers;
 547  
     }
 548  
 
 549  
     public void setVendorPhoneNumbers(List<VendorPhoneNumber> vendorPhoneNumbers) {
 550  
         this.vendorPhoneNumbers = vendorPhoneNumbers;
 551  
     }*/
 552  
 
 553  
     public String getVendorFirstName() {
 554  0
         return vendorFirstName;
 555  
     }
 556  
 
 557  
     public void setVendorFirstName(String vendorFirstName) {
 558  0
         this.vendorFirstName = vendorFirstName;
 559  0
     }
 560  
 
 561  
     public String getVendorLastName() {
 562  0
         return vendorLastName;
 563  
     }
 564  
 
 565  
     public void setVendorLastName(String vendorLastName) {
 566  0
         this.vendorLastName = vendorLastName;
 567  0
     }
 568  
 
 569  
     public VendorDetail getSoldToVendorDetail() {
 570  0
         return soldToVendorDetail;
 571  
     }
 572  
 
 573  
     public void setSoldToVendorDetail(VendorDetail soldToVendorDetail) {
 574  0
         this.soldToVendorDetail = soldToVendorDetail;
 575  0
     }
 576  
 
 577  
     public boolean isVendorFirstLastNameIndicator() {
 578  0
         return vendorFirstLastNameIndicator;
 579  
     }
 580  
 
 581  
     public void setVendorFirstLastNameIndicator(boolean vendorFirstLastNameIndicator) {
 582  0
         this.vendorFirstLastNameIndicator = vendorFirstLastNameIndicator;
 583  0
     }
 584  
 
 585  
     public String getVendorStateForLookup() {
 586  0
         return vendorStateForLookup;
 587  
     }
 588  
 
 589  
     public void setVendorStateForLookup(String vendorStateForLookup) {
 590  0
         this.vendorStateForLookup = vendorStateForLookup;
 591  0
     }
 592  
 
 593  
 //    public Person getVendorRestrictedPerson() {
 594  
 //        vendorRestrictedPerson = SpringContext.getBean(org.kuali.rice.kim.service.PersonService.class).updatePersonIfNecessary(vendorRestrictedPersonIdentifier, vendorRestrictedPerson);
 595  
 //        return vendorRestrictedPerson;
 596  
 //    }
 597  
 
 598  
     /**
 599  
      * Sets the vendorRestrictedPerson attribute.
 600  
      *
 601  
      * @param vendorRestrictedPerson The vendorRestrictedPerson to set.
 602  
      * @deprecated
 603  
      */
 604  
 //    public void setVendorRestrictedPerson(Person vendorRestrictedPerson) {
 605  
 //        this.vendorRestrictedPerson = vendorRestrictedPerson;
 606  
 //    }
 607  
     public String getDefaultAddressLine1() {
 608  0
         return defaultAddressLine1;
 609  
     }
 610  
 
 611  
     public void setDefaultAddressLine1(String defaultAddressLine1) {
 612  0
         this.defaultAddressLine1 = defaultAddressLine1;
 613  0
     }
 614  
 
 615  
     public String getDefaultAddressCity() {
 616  0
         return defaultAddressCity;
 617  
     }
 618  
 
 619  
     public void setDefaultAddressCity(String defaultAddressCity) {
 620  0
         this.defaultAddressCity = defaultAddressCity;
 621  0
     }
 622  
 
 623  
     public String getDefaultAddressLine2() {
 624  0
         return defaultAddressLine2;
 625  
     }
 626  
 
 627  
     public void setDefaultAddressLine2(String defaultAddressLine2) {
 628  0
         this.defaultAddressLine2 = defaultAddressLine2;
 629  0
     }
 630  
 
 631  
     public String getDefaultAddressPostalCode() {
 632  0
         return defaultAddressPostalCode;
 633  
     }
 634  
 
 635  
     public void setDefaultAddressPostalCode(String defaultAddressPostalCode) {
 636  0
         this.defaultAddressPostalCode = defaultAddressPostalCode;
 637  0
     }
 638  
 
 639  
     public String getDefaultAddressStateCode() {
 640  0
         return defaultAddressStateCode;
 641  
     }
 642  
 
 643  
     public void setDefaultAddressStateCode(String defaultAddressStateCode) {
 644  0
         this.defaultAddressStateCode = defaultAddressStateCode;
 645  0
     }
 646  
 
 647  
     public String getDefaultAddressInternationalProvince() {
 648  0
         return defaultAddressInternationalProvince;
 649  
     }
 650  
 
 651  
     public void setDefaultAddressInternationalProvince(String defaultAddressInternationalProvince) {
 652  0
         this.defaultAddressInternationalProvince = defaultAddressInternationalProvince;
 653  0
     }
 654  
 
 655  
     public String getDefaultAddressCountryCode() {
 656  0
         return defaultAddressCountryCode;
 657  
     }
 658  
 
 659  
     public void setDefaultAddressCountryCode(String defaultAddressCountryCode) {
 660  0
         this.defaultAddressCountryCode = defaultAddressCountryCode;
 661  0
     }
 662  
 
 663  
     public String getDefaultFaxNumber() {
 664  0
         return defaultFaxNumber;
 665  
     }
 666  
 
 667  
     public void setDefaultFaxNumber(String defaultFaxNumber) {
 668  0
         this.defaultFaxNumber = defaultFaxNumber;
 669  0
     }
 670  
 
 671  
     public void setVendorParentName(String vendorParentName) {
 672  0
         this.vendorParentName = vendorParentName;
 673  0
     }
 674  
 
 675  
 
 676  
     public String getVendorInactiveReasonCode() {
 677  0
         return this.vendorInactiveReasonCode;
 678  
     }
 679  
 
 680  
     public void setVendorInactiveReasonCode(String vendorInactiveReasonCode) {
 681  0
         this.vendorInactiveReasonCode = vendorInactiveReasonCode;
 682  0
     }
 683  
 
 684  
     public String getVendorShippingTitleCode() {
 685  0
         return this.vendorShippingTitleCode;
 686  
     }
 687  
 
 688  
     public void setVendorShippingTitleCode(String vendorShippingTitleCode) {
 689  0
         this.vendorShippingTitleCode = vendorShippingTitleCode;
 690  0
     }
 691  
 
 692  
     public String getVendorParentName() {
 693  0
         return this.vendorParentName;
 694  
     }
 695  
 
 696  
 
 697  
 }
 698