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