Java Doc for VendorService.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » vendor » service » 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.service 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.module.vendor.service.VendorService

All known Subclasses:   org.kuali.module.vendor.service.impl.VendorServiceImpl,
VendorService
public interface VendorService (Code)




Method Summary
public  booleanequalMemberLists(List<? extends VendorRoutingComparable> list_a, List<? extends VendorRoutingComparable> list_b)
     Compares lists which have an isEqualForRouting method by using that method.
public  KualiDecimalgetApoLimitFromContract(Integer contractId, String chart, String org)
     Gets the apo limit for the given parameters using the following logic:

First it checks to see if an existing org.kuali.module.vendor.bo.VendorContractOrganization object exists for the associated parameters.
public  VendorDetailgetParentVendor(Integer vendorHeaderGeneratedIdentifier)
     Retrieves the VendorDetail which is the parent vendor with the given headerId.
public  VendorAddressgetVendorDefaultAddress(Integer vendorHeaderId, Integer vendorDetailId, String addressType, String campus)
     Finds the addresses for the given vendor and then calls the method to determine the default address from this list.
Parameters:
  vendorHeaderId - Integer - Header ID of vendor.
Parameters:
  vendorDetailId - Integer - Detail ID of vendor.
Parameters:
  addressType - String - Address type of desired default.
Parameters:
  campus - String - Campus of desired default.
public  VendorAddressgetVendorDefaultAddress(List<VendorAddress> addresses, String addressType, String campus)
     Finds the default address for the given addressType and campus from the address list passed in based on the following logic: 1) The allDefaultAddress is defined by defaultAddressIndicator on VendorAddress.
public  VendorDetailgetVendorDetail(Integer headerId, Integer detailId)
    
public  booleanisVendorForeign(Integer vendorHeaderGeneratedIdentifier)
     Indicates whether the vendor identified by the given vendorHeaderGeneratedIdentifier is a non-resident alien by checking the value of org.kuali.module.vendor.bo.VendorHeader.getVendorForeignIndicator .
public  booleanisVendorInstitutionEmployee(Integer vendorHeaderGeneratedIdentifier)
     Indicates whether the vendor identified by the given vendorHeaderGeneratedIdentifier is an employee of the institution.
public  booleannoRouteSignificantChangeOccurred(VendorDetail newVDtl, VendorHeader newVHdr, VendorDetail oldVDtl, VendorHeader oldVHdr)
     This method is the place to put the calls to equality checks that are needed when deciding whether to route a vendor for approval or directly to final status on the basis of what has changed.
public  voidsaveVendorHeader(VendorDetail vendorDetail)
    
public  booleanshouldVendorRouteForApproval(String documentId)
     Checks to see if a the Vendor Document associated with the given document ID should route to the route path branch in workflow where the document will stop for approvals.
Parameters:
  documentId - true if the vendor should be take the approval patch...



Method Detail
equalMemberLists
public boolean equalMemberLists(List<? extends VendorRoutingComparable> list_a, List<? extends VendorRoutingComparable> list_b)(Code)
Compares lists which have an isEqualForRouting method by using that method. An Equals() method would be wrong for the purpose of comparing these because we want to compare only using certain specified attributes, which is what our isEqualForRouting methods will do.
Parameters:
  list_a - A List which implements VendorRoutingComparable (specifies isEqualForRouting)
Parameters:
  list_b - Another such list True if all the member objects in the given lists are equal (as far as routing is concerned) at the same locations inthe lists.



getApoLimitFromContract
public KualiDecimal getApoLimitFromContract(Integer contractId, String chart, String org)(Code)
Gets the apo limit for the given parameters using the following logic:

First it checks to see if an existing org.kuali.module.vendor.bo.VendorContractOrganization object exists for the associated parameters. If one exists and it is not excluded (see org.kuali.module.vendor.bo.VendorContractOrganization.isVendorContractExcludeIndicator ) this will return the value of org.kuali.module.vendor.bo.VendorContractOrganization.getVendorContractPurchaseOrderLimitAmount .

If an associated org.kuali.module.vendor.bo.VendorContractOrganization object cannot be found then a valid org.kuali.module.vendor.bo.VendorContract object will be sought. If one is found this method will return the value of org.kuali.module.vendor.bo.VendorContract.getOrganizationAutomaticPurchaseOrderLimit .

If no valid org.kuali.module.vendor.bo.VendorContractOrganization or org.kuali.module.vendor.bo.VendorContract objects can be found for the given parameters this method will return null.
Parameters:
  contractId - id used to find org.kuali.module.vendor.bo.VendorContractOrganization object andorg.kuali.module.vendor.bo.VendorContract object
Parameters:
  chart - chart code for use in finding org.kuali.module.vendor.bo.VendorContractOrganization object
Parameters:
  org - org code for use in finding org.kuali.module.vendor.bo.VendorContractOrganization object the automatic purchase order limit amount from the contract found using the parameters. If parameters do not findvalid vendor contract objects then null is returned.



getParentVendor
public VendorDetail getParentVendor(Integer vendorHeaderGeneratedIdentifier)(Code)
Retrieves the VendorDetail which is the parent vendor with the given headerId. This is the method to use when working backward from a division vendor to its parent vendor. This method throws RuntimeExceptions if there are found to be no parent vendor or more than one parent vendor for the associated corporate structure.
Parameters:
  vendorHeaderGeneratedIdentifier - The Header Id in Integer form The VendorDetail of the parent vendor associated with the corporate structure indicated by the given Header Id, ornull if there are no vendors associated with it.



getVendorDefaultAddress
public VendorAddress getVendorDefaultAddress(Integer vendorHeaderId, Integer vendorDetailId, String addressType, String campus)(Code)
Finds the addresses for the given vendor and then calls the method to determine the default address from this list.
Parameters:
  vendorHeaderId - Integer - Header ID of vendor.
Parameters:
  vendorDetailId - Integer - Detail ID of vendor.
Parameters:
  addressType - String - Address type of desired default.
Parameters:
  campus - String - Campus of desired default. VendorAddress Desired default address; return null is possible if no defaults set.



getVendorDefaultAddress
public VendorAddress getVendorDefaultAddress(List<VendorAddress> addresses, String addressType, String campus)(Code)
Finds the default address for the given addressType and campus from the address list passed in based on the following logic: 1) The allDefaultAddress is defined by defaultAddressIndicator on VendorAddress. 2) If campus passed in is null, return allDefaultAddress if found. 3) If campus passed in is not null, look in campus lists of addresses to see if given campus is found for the given address type. If match found, return address. If no match found, return allDefaultAddress.
Parameters:
  addresses - List of addresses for a vendor.
Parameters:
  addressType - String - Address type of the desired default sought.
Parameters:
  campus - String - Campus of the desired default sought. VendorAddress Desired default address; return null is possible if no defaults set.



getVendorDetail
public VendorDetail getVendorDetail(Integer headerId, Integer detailId)(Code)



isVendorForeign
public boolean isVendorForeign(Integer vendorHeaderGeneratedIdentifier)(Code)
Indicates whether the vendor identified by the given vendorHeaderGeneratedIdentifier is a non-resident alien by checking the value of org.kuali.module.vendor.bo.VendorHeader.getVendorForeignIndicator .
Parameters:
  vendorHeaderGeneratedIdentifier - The Header Id in Integer form true if the vendor identified by the vendorHeaderGeneratedIdentifier given is valid and is marked as aforeign vendor



isVendorInstitutionEmployee
public boolean isVendorInstitutionEmployee(Integer vendorHeaderGeneratedIdentifier)(Code)
Indicates whether the vendor identified by the given vendorHeaderGeneratedIdentifier is an employee of the institution. The vendor must have a valid tax id and it must be of type SSN (see org.kuali.module.vendor.VendorConstants.TAX_TYPE_SSN ).
Parameters:
  vendorHeaderGeneratedIdentifier - The Header Id in Integer form true if the vendor identified by the vendorHeaderGeneratedIdentifier given is an employee of theinstitution



noRouteSignificantChangeOccurred
public boolean noRouteSignificantChangeOccurred(VendorDetail newVDtl, VendorHeader newVHdr, VendorDetail oldVDtl, VendorHeader oldVHdr)(Code)
This method is the place to put the calls to equality checks that are needed when deciding whether to route a vendor for approval or directly to final status on the basis of what has changed. This method has been split out from shouldVendorRouteForApproval for the convenience of unit testing, but might be useful for other purposes.
Parameters:
  newVDtl - A VendorDetail object representing the state of the proposed change
Parameters:
  newVHdr - A VendorHeader object representing the state of the proposed change
Parameters:
  oldVDtl - A VendorDetail object from before the change
Parameters:
  oldVHdr - A VendorHeader object from before the change True if no route-significant change occurred



saveVendorHeader
public void saveVendorHeader(VendorDetail vendorDetail)(Code)



shouldVendorRouteForApproval
public boolean shouldVendorRouteForApproval(String documentId)(Code)
Checks to see if a the Vendor Document associated with the given document ID should route to the route path branch in workflow where the document will stop for approvals.
Parameters:
  documentId - true if the vendor should be take the approval patch... false if the vendor can be 'auto approved'



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.