Source Code Cross Referenced for VendorDetail.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » vendor » bo » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.module.vendor.bo 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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.sql.Date;
020:        import java.util.LinkedHashMap;
021:        import java.util.List;
022:
023:        import org.apache.commons.lang.StringUtils;
024:        import org.apache.commons.lang.builder.EqualsBuilder;
025:        import org.apache.log4j.Logger;
026:        import org.kuali.core.bo.PersistableBusinessObjectBase;
027:        import org.kuali.core.bo.user.UniversalUser;
028:        import org.kuali.core.service.UniversalUserService;
029:        import org.kuali.core.util.KualiDecimal;
030:        import org.kuali.core.util.ObjectUtils;
031:        import org.kuali.core.util.TypedArrayList;
032:        import org.kuali.kfs.context.SpringContext;
033:        import org.kuali.module.vendor.util.VendorRoutingComparable;
034:
035:        /**
036:         * Contains all data for a specific parent or division Vendor, including a link to the <code>VendorHeader</code>, which only
037:         * contains information about the parent company, but can be shared between division Vendors.
038:         * 
039:         * @see org.kuali.module.vendor.bo.VendorHeader
040:         */
041:        public class VendorDetail extends PersistableBusinessObjectBase
042:                implements  VendorRoutingComparable {
043:            private static Logger LOG = Logger.getLogger(VendorDetail.class);
044:
045:            private Integer vendorHeaderGeneratedIdentifier;
046:            private Integer vendorDetailAssignedIdentifier;
047:            private String vendorNumber; // not persisted in the db
048:            private boolean vendorParentIndicator;
049:            private String vendorName;
050:            private String vendorFirstName; // not persisted in the db
051:            private String vendorLastName; // not persisted in the db
052:            private String vendorStateForLookup; // not persisted in the db
053:
054:            private boolean activeIndicator;
055:            private String vendorInactiveReasonCode;
056:            private String vendorDunsNumber;
057:            private String vendorPaymentTermsCode;
058:            private String vendorShippingTitleCode;
059:            private String vendorShippingPaymentTermsCode;
060:            private Boolean vendorConfirmationIndicator;
061:            private Boolean vendorPrepaymentIndicator;
062:            private Boolean vendorCreditCardIndicator;
063:            private KualiDecimal vendorMinimumOrderAmount;
064:            private String vendorUrlAddress;
065:            private String vendorRemitName;
066:            private Boolean vendorRestrictedIndicator;
067:            private String vendorRestrictedReasonText;
068:            private Date vendorRestrictedDate;
069:            private String vendorRestrictedPersonIdentifier;
070:            private String vendorSoldToNumber; // not persisted in the db
071:            private Integer vendorSoldToGeneratedIdentifier;
072:            private Integer vendorSoldToAssignedIdentifier;
073:            private String vendorSoldToName;
074:            private boolean vendorFirstLastNameIndicator;
075:
076:            private List<VendorAddress> vendorAddresses;
077:            private List<VendorAlias> vendorAliases;
078:            private List<VendorContact> vendorContacts;
079:            private List<VendorContract> vendorContracts;
080:            private List<VendorCustomerNumber> vendorCustomerNumbers;
081:            private List<VendorPhoneNumber> vendorPhoneNumbers;
082:            private List<VendorShippingSpecialCondition> vendorShippingSpecialConditions;
083:
084:            private VendorHeader vendorHeader;
085:            private VendorInactiveReason vendorInactiveReason;
086:            private PaymentTermType vendorPaymentTerms;
087:            private ShippingTitle vendorShippingTitle;
088:            private ShippingPaymentTerms vendorShippingPaymentTerms;
089:            private VendorDetail soldToVendorDetail;
090:            private UniversalUser vendorRestrictedPerson;
091:
092:            private String defaultAddressLine1; // not persisted in the db
093:            private String defaultAddressLine2; // not persisted in the db
094:            private String defaultAddressCity; // not persisted in the db
095:            private String defaultAddressStateCode; // not persisted in the db
096:            private String defaultAddressPostalCode; // not persisted in the db
097:            private String defaultAddressCountryCode; // not persisted in the db
098:
099:            /**
100:             * Default constructor.
101:             */
102:            public VendorDetail() {
103:                vendorHeader = new VendorHeader();
104:                vendorAddresses = new TypedArrayList(VendorAddress.class);
105:                vendorAliases = new TypedArrayList(VendorAlias.class);
106:                vendorContacts = new TypedArrayList(VendorContact.class);
107:                vendorContracts = new TypedArrayList(VendorContract.class);
108:                vendorCustomerNumbers = new TypedArrayList(
109:                        VendorCustomerNumber.class);
110:                vendorPhoneNumbers = new TypedArrayList(VendorPhoneNumber.class);
111:                vendorShippingSpecialConditions = new TypedArrayList(
112:                        VendorShippingSpecialCondition.class);
113:                vendorParentIndicator = true;
114:
115:            }
116:
117:            public boolean isVendorDebarred() {
118:
119:                return (ObjectUtils.isNotNull(getVendorHeader()
120:                        .getVendorDebarredIndicator()) && getVendorHeader()
121:                        .getVendorDebarredIndicator());
122:            }
123:
124:            public Integer getVendorHeaderGeneratedIdentifier() {
125:
126:                return vendorHeaderGeneratedIdentifier;
127:            }
128:
129:            public void setVendorHeaderGeneratedIdentifier(
130:                    Integer vendorHeaderGeneratedIdentifier) {
131:                this .vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
132:            }
133:
134:            public Integer getVendorDetailAssignedIdentifier() {
135:
136:                return vendorDetailAssignedIdentifier;
137:            }
138:
139:            public void setVendorDetailAssignedIdentifier(
140:                    Integer vendorDetailAssignedIdentifier) {
141:                this .vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
142:            }
143:
144:            /**
145:             * A concatenation of the vendorHeaderGeneratedIdentifier, a dash, and the vendorDetailAssignedIdentifier
146:             * 
147:             * @return Returns the vendorNumber.
148:             */
149:            public String getVendorNumber() {
150:                String headerId = "";
151:                String detailId = "";
152:                String vendorNumber = "";
153:                if (ObjectUtils.isNotNull(this .vendorHeaderGeneratedIdentifier)) {
154:                    headerId = this .vendorHeaderGeneratedIdentifier.toString();
155:                }
156:                if (ObjectUtils.isNotNull(this .vendorDetailAssignedIdentifier)) {
157:                    detailId = this .vendorDetailAssignedIdentifier.toString();
158:                }
159:                if (!StringUtils.isEmpty(headerId)
160:                        && !StringUtils.isEmpty(detailId)) {
161:                    vendorNumber = headerId + "-" + detailId;
162:                }
163:
164:                return vendorNumber;
165:            }
166:
167:            /**
168:             * Sets the vendorNumber attribute value.
169:             * 
170:             * @param vendorNumber The vendorNumber to set.
171:             */
172:            public void setVendorNumber(String vendorNumber) {
173:                if (!StringUtils.isEmpty(vendorNumber)) {
174:                    int dashInd = vendorNumber.indexOf("-");
175:                    if (vendorNumber.length() >= dashInd) {
176:                        String vndrHdrGenId = vendorNumber
177:                                .substring(0, dashInd);
178:                        String vndrDetailAssgnedId = vendorNumber
179:                                .substring(dashInd + 1);
180:                        if (!StringUtils.isEmpty(vndrHdrGenId)
181:                                && !StringUtils.isEmpty(vndrDetailAssgnedId)) {
182:                            this .vendorHeaderGeneratedIdentifier = new Integer(
183:                                    vndrHdrGenId);
184:                            this .vendorDetailAssignedIdentifier = new Integer(
185:                                    vndrDetailAssgnedId);
186:                        }
187:                    }
188:                } else {
189:                    this .vendorNumber = vendorNumber;
190:                }
191:            }
192:
193:            /**
194:             * Gets the vendorSoldToNumber attribute.
195:             * 
196:             * @return Returns the vendorSoldToNumber.
197:             */
198:            public String getVendorSoldToNumber() {
199:                String headerId = "";
200:                String detailId = "";
201:                String vendorSoldToNumber = "";
202:
203:                if (this .vendorSoldToGeneratedIdentifier != null) {
204:                    headerId = this .vendorSoldToGeneratedIdentifier.toString();
205:                }
206:                if (this .vendorSoldToAssignedIdentifier != null) {
207:                    detailId = this .vendorSoldToAssignedIdentifier.toString();
208:                }
209:                if (!StringUtils.isEmpty(headerId)
210:                        && !StringUtils.isEmpty(detailId)) {
211:                    vendorSoldToNumber = headerId + "-" + detailId;
212:                }
213:
214:                return vendorSoldToNumber;
215:            }
216:
217:            /**
218:             * Sets the vendorSoldToNumber attribute value.
219:             * 
220:             * @param vendorSoldToNumber The vendorSoldToNumber to set.
221:             */
222:            public void setVendorSoldToNumber(String vendorSoldToNumber) {
223:                if (!StringUtils.isEmpty(vendorSoldToNumber)) {
224:                    int dashInd = vendorSoldToNumber.indexOf("-");
225:                    if (vendorSoldToNumber.length() >= dashInd) {
226:                        String headerId = vendorSoldToNumber.substring(0,
227:                                dashInd);
228:                        String detailId = vendorSoldToNumber
229:                                .substring(dashInd + 1);
230:                        if (!StringUtils.isEmpty(headerId)
231:                                && !StringUtils.isEmpty(detailId)) {
232:                            this .vendorSoldToGeneratedIdentifier = new Integer(
233:                                    headerId);
234:                            this .vendorSoldToAssignedIdentifier = new Integer(
235:                                    detailId);
236:                        }
237:                    }
238:                } else {
239:                    this .vendorSoldToNumber = vendorSoldToNumber;
240:                }
241:            }
242:
243:            public boolean isVendorParentIndicator() {
244:
245:                return vendorParentIndicator;
246:            }
247:
248:            public void setVendorParentIndicator(boolean vendorParentIndicator) {
249:                this .vendorParentIndicator = vendorParentIndicator;
250:            }
251:
252:            public Integer getVendorSoldToGeneratedIdentifier() {
253:
254:                return vendorSoldToGeneratedIdentifier;
255:            }
256:
257:            public void setVendorSoldToGeneratedIdentifier(
258:                    Integer vendorSoldToGeneratedIdentifier) {
259:                this .vendorSoldToGeneratedIdentifier = vendorSoldToGeneratedIdentifier;
260:            }
261:
262:            public Integer getVendorSoldToAssignedIdentifier() {
263:
264:                return vendorSoldToAssignedIdentifier;
265:            }
266:
267:            public void setVendorSoldToAssignedIdentifier(
268:                    Integer vendorSoldToAssignedIdentifier) {
269:                this .vendorSoldToAssignedIdentifier = vendorSoldToAssignedIdentifier;
270:            }
271:
272:            public String getVendorName() {
273:
274:                return vendorName;
275:            }
276:
277:            public void setAltVendorName(String altVendorName) {
278:                this .vendorName = altVendorName;
279:            }
280:
281:            public String getAltVendorName() {
282:
283:                return vendorName;
284:            }
285:
286:            public void setVendorName(String vendorName) {
287:                this .vendorName = vendorName;
288:            }
289:
290:            public boolean isActiveIndicator() {
291:
292:                return activeIndicator;
293:            }
294:
295:            public void setActiveIndicator(boolean activeIndicator) {
296:                this .activeIndicator = activeIndicator;
297:            }
298:
299:            public String getVendorInactiveReasonCode() {
300:
301:                return vendorInactiveReasonCode;
302:            }
303:
304:            public void setVendorInactiveReasonCode(
305:                    String vendorInactiveReasonCode) {
306:                this .vendorInactiveReasonCode = vendorInactiveReasonCode;
307:            }
308:
309:            public String getVendorPaymentTermsCode() {
310:
311:                return vendorPaymentTermsCode;
312:            }
313:
314:            public void setVendorPaymentTermsCode(String vendorPaymentTermsCode) {
315:                this .vendorPaymentTermsCode = vendorPaymentTermsCode;
316:            }
317:
318:            public String getVendorShippingTitleCode() {
319:
320:                return vendorShippingTitleCode;
321:            }
322:
323:            public void setVendorShippingTitleCode(
324:                    String vendorShippingTitleCode) {
325:                this .vendorShippingTitleCode = vendorShippingTitleCode;
326:            }
327:
328:            public String getVendorShippingPaymentTermsCode() {
329:
330:                return vendorShippingPaymentTermsCode;
331:            }
332:
333:            public void setVendorShippingPaymentTermsCode(
334:                    String vendorShippingPaymentTermsCode) {
335:                this .vendorShippingPaymentTermsCode = vendorShippingPaymentTermsCode;
336:            }
337:
338:            public Boolean getVendorConfirmationIndicator() {
339:
340:                return vendorConfirmationIndicator;
341:            }
342:
343:            public void setVendorConfirmationIndicator(
344:                    Boolean vendorConfirmationIndicator) {
345:                this .vendorConfirmationIndicator = vendorConfirmationIndicator;
346:            }
347:
348:            public Boolean getVendorPrepaymentIndicator() {
349:
350:                return vendorPrepaymentIndicator;
351:            }
352:
353:            public void setVendorPrepaymentIndicator(
354:                    Boolean vendorPrepaymentIndicator) {
355:                this .vendorPrepaymentIndicator = vendorPrepaymentIndicator;
356:            }
357:
358:            public Boolean getVendorCreditCardIndicator() {
359:
360:                return vendorCreditCardIndicator;
361:            }
362:
363:            public void setVendorCreditCardIndicator(
364:                    Boolean vendorCreditCardIndicator) {
365:                this .vendorCreditCardIndicator = vendorCreditCardIndicator;
366:            }
367:
368:            public KualiDecimal getVendorMinimumOrderAmount() {
369:
370:                return vendorMinimumOrderAmount;
371:            }
372:
373:            public void setVendorMinimumOrderAmount(
374:                    KualiDecimal vendorMinimumOrderAmount) {
375:                this .vendorMinimumOrderAmount = vendorMinimumOrderAmount;
376:            }
377:
378:            public String getVendorUrlAddress() {
379:
380:                return vendorUrlAddress;
381:            }
382:
383:            public void setVendorUrlAddress(String vendorUrlAddress) {
384:                this .vendorUrlAddress = vendorUrlAddress;
385:            }
386:
387:            /**
388:             * Gets the vendorSoldToName attribute.
389:             * 
390:             * @return Returns the vendorSoldToName
391:             */
392:            public String getVendorSoldToName() {
393:                if (soldToVendorDetail != null) {
394:
395:                    return soldToVendorDetail.getVendorName();
396:                } else {
397:
398:                    return this .vendorSoldToName;
399:                }
400:            }
401:
402:            public void setVendorSoldToName(String vendorSoldToName) {
403:                this .vendorSoldToName = vendorSoldToName;
404:            }
405:
406:            public String getVendorRemitName() {
407:
408:                return vendorRemitName;
409:            }
410:
411:            public void setVendorRemitName(String vendorRemitName) {
412:                this .vendorRemitName = vendorRemitName;
413:            }
414:
415:            public Boolean getVendorRestrictedIndicator() {
416:
417:                return vendorRestrictedIndicator;
418:            }
419:
420:            public void setVendorRestrictedIndicator(
421:                    Boolean vendorRestrictedIndicator) {
422:                this .vendorRestrictedIndicator = vendorRestrictedIndicator;
423:            }
424:
425:            public String getVendorRestrictedReasonText() {
426:
427:                return vendorRestrictedReasonText;
428:            }
429:
430:            public void setVendorRestrictedReasonText(
431:                    String vendorRestrictedReasonText) {
432:                this .vendorRestrictedReasonText = vendorRestrictedReasonText;
433:            }
434:
435:            public Date getVendorRestrictedDate() {
436:
437:                return vendorRestrictedDate;
438:            }
439:
440:            public void setVendorRestrictedDate(Date vendorRestrictedDate) {
441:                this .vendorRestrictedDate = vendorRestrictedDate;
442:            }
443:
444:            public String getVendorRestrictedPersonIdentifier() {
445:
446:                return vendorRestrictedPersonIdentifier;
447:            }
448:
449:            public void setVendorRestrictedPersonIdentifier(
450:                    String vendorRestrictedPersonIdentifier) {
451:                this .vendorRestrictedPersonIdentifier = vendorRestrictedPersonIdentifier;
452:            }
453:
454:            public String getVendorDunsNumber() {
455:
456:                return vendorDunsNumber;
457:            }
458:
459:            public void setVendorDunsNumber(String vendorDunsNumber) {
460:                this .vendorDunsNumber = vendorDunsNumber;
461:            }
462:
463:            public VendorHeader getVendorHeader() {
464:
465:                return vendorHeader;
466:            }
467:
468:            public void setVendorHeader(VendorHeader vendorHeader) {
469:                this .vendorHeader = vendorHeader;
470:            }
471:
472:            public PaymentTermType getVendorPaymentTerms() {
473:
474:                return vendorPaymentTerms;
475:            }
476:
477:            /**
478:             * Sets the vendorPaymentTerms attribute.
479:             * 
480:             * @param vendorPaymentTerms The vendorPaymentTerms to set.
481:             * @deprecated
482:             */
483:            public void setVendorPaymentTerms(PaymentTermType vendorPaymentTerms) {
484:                this .vendorPaymentTerms = vendorPaymentTerms;
485:            }
486:
487:            public ShippingTitle getVendorShippingTitle() {
488:
489:                return vendorShippingTitle;
490:            }
491:
492:            /**
493:             * Sets the vendorShippingTitle attribute.
494:             * 
495:             * @param vendorShippingTitle The vendorShippingTitle to set.
496:             * @deprecated
497:             */
498:            public void setVendorShippingTitle(ShippingTitle vendorShippingTitle) {
499:                this .vendorShippingTitle = vendorShippingTitle;
500:            }
501:
502:            public ShippingPaymentTerms getVendorShippingPaymentTerms() {
503:
504:                return vendorShippingPaymentTerms;
505:            }
506:
507:            /**
508:             * Sets the vendorShippingPaymentTerms attribute.
509:             * 
510:             * @param vendorShippingPaymentTerms The vendorShippingPaymentTerms to set.
511:             * @deprecated
512:             */
513:            public void setVendorShippingPaymentTerms(
514:                    ShippingPaymentTerms vendorShippingPaymentTerms) {
515:                this .vendorShippingPaymentTerms = vendorShippingPaymentTerms;
516:            }
517:
518:            public VendorInactiveReason getVendorInactiveReason() {
519:
520:                return vendorInactiveReason;
521:            }
522:
523:            /**
524:             * Sets the vendorInactiveReason attribute value.
525:             * 
526:             * @param vendorInactiveReason The vendorInactiveReason to set.
527:             * @deprecated
528:             */
529:            public void setVendorInactiveReason(
530:                    VendorInactiveReason vendorInactiveReason) {
531:                this .vendorInactiveReason = vendorInactiveReason;
532:            }
533:
534:            public List<VendorAddress> getVendorAddresses() {
535:
536:                return vendorAddresses;
537:            }
538:
539:            public void setVendorAddresses(List<VendorAddress> vendorAddresses) {
540:                this .vendorAddresses = vendorAddresses;
541:            }
542:
543:            public List<VendorContact> getVendorContacts() {
544:
545:                return vendorContacts;
546:            }
547:
548:            public void setVendorContacts(List<VendorContact> vendorContacts) {
549:                this .vendorContacts = vendorContacts;
550:            }
551:
552:            public List<VendorContract> getVendorContracts() {
553:
554:                return vendorContracts;
555:            }
556:
557:            public void setVendorContracts(List<VendorContract> vendorContracts) {
558:                this .vendorContracts = vendorContracts;
559:            }
560:
561:            public List<VendorCustomerNumber> getVendorCustomerNumbers() {
562:
563:                return vendorCustomerNumbers;
564:            }
565:
566:            public void setVendorCustomerNumbers(
567:                    List<VendorCustomerNumber> vendorCustomerNumbers) {
568:                this .vendorCustomerNumbers = vendorCustomerNumbers;
569:            }
570:
571:            public List<VendorShippingSpecialCondition> getVendorShippingSpecialConditions() {
572:
573:                return vendorShippingSpecialConditions;
574:            }
575:
576:            public void setVendorShippingSpecialConditions(
577:                    List<VendorShippingSpecialCondition> vendorShippingSpecialConditions) {
578:                this .vendorShippingSpecialConditions = vendorShippingSpecialConditions;
579:            }
580:
581:            public List<VendorAlias> getVendorAliases() {
582:
583:                return vendorAliases;
584:            }
585:
586:            public void setVendorAliases(List<VendorAlias> vendorAliases) {
587:                this .vendorAliases = vendorAliases;
588:            }
589:
590:            public List<VendorPhoneNumber> getVendorPhoneNumbers() {
591:
592:                return vendorPhoneNumbers;
593:            }
594:
595:            public void setVendorPhoneNumbers(
596:                    List<VendorPhoneNumber> vendorPhoneNumbers) {
597:                this .vendorPhoneNumbers = vendorPhoneNumbers;
598:            }
599:
600:            public String getVendorFirstName() {
601:
602:                return vendorFirstName;
603:            }
604:
605:            public void setVendorFirstName(String vendorFirstName) {
606:                this .vendorFirstName = vendorFirstName;
607:            }
608:
609:            public String getVendorLastName() {
610:
611:                return vendorLastName;
612:            }
613:
614:            public void setVendorLastName(String vendorLastName) {
615:                this .vendorLastName = vendorLastName;
616:            }
617:
618:            public VendorDetail getSoldToVendorDetail() {
619:
620:                return soldToVendorDetail;
621:            }
622:
623:            public void setSoldToVendorDetail(VendorDetail soldToVendorDetail) {
624:                this .soldToVendorDetail = soldToVendorDetail;
625:            }
626:
627:            public boolean isVendorFirstLastNameIndicator() {
628:
629:                return vendorFirstLastNameIndicator;
630:            }
631:
632:            public void setVendorFirstLastNameIndicator(
633:                    boolean vendorFirstLastNameIndicator) {
634:                this .vendorFirstLastNameIndicator = vendorFirstLastNameIndicator;
635:            }
636:
637:            public String getVendorStateForLookup() {
638:
639:                return vendorStateForLookup;
640:            }
641:
642:            public void setVendorStateForLookup(String vendorStateForLookup) {
643:                this .vendorStateForLookup = vendorStateForLookup;
644:            }
645:
646:            public UniversalUser getVendorRestrictedPerson() {
647:                vendorRestrictedPerson = SpringContext.getBean(
648:                        UniversalUserService.class)
649:                        .updateUniversalUserIfNecessary(
650:                                vendorRestrictedPersonIdentifier,
651:                                vendorRestrictedPerson);
652:
653:                return vendorRestrictedPerson;
654:            }
655:
656:            /**
657:             * Sets the vendorRestrictedPerson attribute.
658:             * 
659:             * @param vendorRestrictedPerson The vendorRestrictedPerson to set.
660:             * @deprecated
661:             */
662:            public void setVendorRestrictedPerson(
663:                    UniversalUser vendorRestrictedPerson) {
664:                this .vendorRestrictedPerson = vendorRestrictedPerson;
665:            }
666:
667:            public String getDefaultAddressLine1() {
668:
669:                return defaultAddressLine1;
670:            }
671:
672:            public void setDefaultAddressLine1(String defaultAddressLine1) {
673:                this .defaultAddressLine1 = defaultAddressLine1;
674:            }
675:
676:            public String getDefaultAddressCity() {
677:
678:                return defaultAddressCity;
679:            }
680:
681:            public void setDefaultAddressCity(String defaultAddressCity) {
682:                this .defaultAddressCity = defaultAddressCity;
683:            }
684:
685:            public String getDefaultAddressLine2() {
686:
687:                return defaultAddressLine2;
688:            }
689:
690:            public void setDefaultAddressLine2(String defaultAddressLine2) {
691:                this .defaultAddressLine2 = defaultAddressLine2;
692:            }
693:
694:            public String getDefaultAddressPostalCode() {
695:
696:                return defaultAddressPostalCode;
697:            }
698:
699:            public void setDefaultAddressPostalCode(
700:                    String defaultAddressPostalCode) {
701:                this .defaultAddressPostalCode = defaultAddressPostalCode;
702:            }
703:
704:            public String getDefaultAddressStateCode() {
705:
706:                return defaultAddressStateCode;
707:            }
708:
709:            public void setDefaultAddressStateCode(
710:                    String defaultAddressStateCode) {
711:                this .defaultAddressStateCode = defaultAddressStateCode;
712:            }
713:
714:            public String getDefaultAddressCountryCode() {
715:
716:                return defaultAddressCountryCode;
717:            }
718:
719:            public void setDefaultAddressCountryCode(
720:                    String defaultAddressCountryCode) {
721:                this .defaultAddressCountryCode = defaultAddressCountryCode;
722:            }
723:
724:            /**
725:             * @see org.kuali.module.vendor.util.VendorRoutingComparable#isEqualForRouting(java.lang.Object)
726:             */
727:            public boolean isEqualForRouting(Object toCompare) {
728:                LOG.debug("Entering isEqualForRouting.");
729:                if ((ObjectUtils.isNull(toCompare))
730:                        || !(toCompare instanceof  VendorDetail)) {
731:
732:                    return false;
733:                } else {
734:                    VendorDetail detail = (VendorDetail) toCompare;
735:
736:                    return new EqualsBuilder()
737:                            .append(this .getVendorHeaderGeneratedIdentifier(),
738:                                    detail.getVendorHeaderGeneratedIdentifier())
739:                            .append(this .getVendorDetailAssignedIdentifier(),
740:                                    detail.getVendorDetailAssignedIdentifier())
741:                            .append(this .isVendorParentIndicator(),
742:                                    detail.isVendorParentIndicator())
743:                            .append(this .getVendorName(),
744:                                    detail.getVendorName())
745:                            .append(this .isActiveIndicator(),
746:                                    detail.isActiveIndicator())
747:                            .append(this .getVendorInactiveReasonCode(),
748:                                    detail.getVendorInactiveReasonCode())
749:                            .append(this .getVendorDunsNumber(),
750:                                    detail.getVendorDunsNumber())
751:                            .append(this .getVendorPaymentTermsCode(),
752:                                    detail.getVendorPaymentTermsCode())
753:                            .append(this .getVendorShippingTitleCode(),
754:                                    detail.getVendorShippingTitleCode())
755:                            .append(this .getVendorShippingPaymentTermsCode(),
756:                                    detail.getVendorShippingPaymentTermsCode())
757:                            .append(this .getVendorConfirmationIndicator(),
758:                                    detail.getVendorConfirmationIndicator())
759:                            .append(this .getVendorPrepaymentIndicator(),
760:                                    detail.getVendorPrepaymentIndicator())
761:                            .append(this .getVendorCreditCardIndicator(),
762:                                    detail.getVendorCreditCardIndicator())
763:                            .append(this .getVendorMinimumOrderAmount(),
764:                                    detail.getVendorMinimumOrderAmount())
765:                            .append(this .getVendorUrlAddress(),
766:                                    detail.getVendorUrlAddress())
767:                            .append(this .getVendorRemitName(),
768:                                    detail.getVendorRemitName())
769:                            .append(this .getVendorRestrictedIndicator(),
770:                                    detail.getVendorRestrictedIndicator())
771:                            .append(this .getVendorRestrictedReasonText(),
772:                                    detail.getVendorRestrictedReasonText())
773:                            .append(this .getVendorRestrictedDate(),
774:                                    detail.getVendorRestrictedDate())
775:                            .append(
776:                                    this .getVendorRestrictedPersonIdentifier(),
777:                                    detail
778:                                            .getVendorRestrictedPersonIdentifier())
779:                            .append(this .getVendorSoldToGeneratedIdentifier(),
780:                                    detail.getVendorSoldToGeneratedIdentifier())
781:                            .append(this .getVendorSoldToAssignedIdentifier(),
782:                                    detail.getVendorSoldToAssignedIdentifier())
783:                            .append(this .getVendorSoldToName(),
784:                                    detail.getVendorSoldToName()).append(
785:                                    this .isVendorFirstLastNameIndicator(),
786:                                    detail.isVendorFirstLastNameIndicator())
787:                            .isEquals();
788:                }
789:            }
790:
791:            /**
792:             * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
793:             */
794:            protected LinkedHashMap toStringMapper() {
795:                LinkedHashMap m = new LinkedHashMap();
796:                if (this .vendorHeaderGeneratedIdentifier != null) {
797:                    m.put("vendorHeaderGeneratedIdentifier",
798:                            this .vendorHeaderGeneratedIdentifier.toString());
799:                }
800:                if (this .vendorDetailAssignedIdentifier != null) {
801:                    m.put("vendorDetailAssignedIdentifier",
802:                            this.vendorDetailAssignedIdentifier.toString());
803:                }
804:
805:                return m;
806:            }
807:
808:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.