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


org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase
   org.kuali.module.purap.rules.PurchasingAccountsPayableDocumentRuleBase
      org.kuali.module.purap.rules.PurchasingDocumentRuleBase
         org.kuali.module.purap.rules.PurchaseOrderDocumentRule

All known Subclasses:   org.kuali.module.purap.rules.PurchaseOrderAmendmentDocumentRule,
PurchaseOrderDocumentRule
public class PurchaseOrderDocumentRule extends PurchasingDocumentRuleBase (Code)
Business rule(s) applicable to Purchase Order document.




Method Summary
protected  booleancheckAccountingLineAccountAccessibility(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLineAction action)
     Overrides the method in PurapAccountingDocumentRuleBase in order to check that if the document will stop in Internal Purchasing Review node, then return true.
protected  voidcustomizeExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)
    
public  booleanprocessAdditionalValidation(PurchasingDocument purDocument)
     Performs any validation for the Additional tab, but currently it only returns true.
public  booleanprocessItemValidation(PurchasingAccountsPayableDocument purapDocument)
     Overrides the method in PurchasingDocumentRuleBase in order to call validateEmptyItemWithAccounts, validateItemForAmendment and validateTradeInAndDiscountCoexistence in addition to what the superclass method has already provided.
public  booleanprocessValidation(PurchasingAccountsPayableDocument purapDocument)
     Overrides the method in PurchasingDocumentRuleBase class in order to add validation for the Vendor Stipulation Tab.
public  booleanprocessVendorStipulationValidation(PurchaseOrderDocument poDocument)
     Validation for the Stipulation tab.
public  booleanprocessVendorValidation(PurchasingAccountsPayableDocument purapDocument)
     Overrides the method in PurchasingDocumentRuleBase in order to add validations that are specific for Purchase Orders that aren't required for Requisitions.
 booleanvalidateEmptyItemWithAccounts(PurchaseOrderItem item, String identifierString)
     Validates that the item detail must not be empty if its account is not empty and its item type is ITEM.
public  booleanvalidateTotalDollarAmountIsLessThanPurchaseOrderTotalLimit(PurchasingDocument purDocument)
     Validate that if the PurchaseOrderTotalLimit is not null then the TotalDollarAmount cannot be greater than the PurchaseOrderTotalLimit.
Parameters:
  purDocument - the purchase order document to be validated True if the TotalDollarAmount is less than the PurchaseOrderTotalLimit.
 booleanvalidateTradeInAndDiscountCoexistence(PurchasingDocument purDocument)
     Validates that the purchase order cannot have both trade in and discount item.



Method Detail
checkAccountingLineAccountAccessibility
protected boolean checkAccountingLineAccountAccessibility(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLineAction action)(Code)
Overrides the method in PurapAccountingDocumentRuleBase in order to check that if the document will stop in Internal Purchasing Review node, then return true.
Parameters:
  financialDocument - the purchase order document to be validated
Parameters:
  accountingLine - the accounting line to be validated
Parameters:
  action - the AccountingLineAction enum that indicates what is being done to an accounting line boolean true if the document will stop in Internal Purchasing Review node, otherwise return the result of thecheckAccountingLineAccountAccessibility in PurapAccountingDocumentRuleBase.
See Also:   org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase.checkAccountingLineAccountAccessibility(org.kuali.kfs.document.AccountingDocumentorg.kuali.kfs.bo.AccountingLineorg.kuali.module.purap.rules.PurapAccountingDocumentRuleBase.AccountingLineAction)



customizeExplicitGeneralLedgerPendingEntry
protected void customizeExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)(Code)

See Also:   org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase.customizeExplicitGeneralLedgerPendingEntry(org.kuali.kfs.document.AccountingDocumentorg.kuali.kfs.bo.AccountingLineorg.kuali.kfs.bo.GeneralLedgerPendingEntry)



processAdditionalValidation
public boolean processAdditionalValidation(PurchasingDocument purDocument)(Code)
Performs any validation for the Additional tab, but currently it only returns true. Someday we might be able to just remove this.
Parameters:
  purDocument - the purchase order document to be validated boolean true (always return true for now)



processItemValidation
public boolean processItemValidation(PurchasingAccountsPayableDocument purapDocument)(Code)
Overrides the method in PurchasingDocumentRuleBase in order to call validateEmptyItemWithAccounts, validateItemForAmendment and validateTradeInAndDiscountCoexistence in addition to what the superclass method has already provided.
Parameters:
  purapDocument - the purchase order document to be validated boolean false when an error is found in any validation.
See Also:   org.kuali.module.purap.rules.PurchasingDocumentRuleBase.processItemValidation(org.kuali.module.purap.document.PurchasingDocument)



processValidation
public boolean processValidation(PurchasingAccountsPayableDocument purapDocument)(Code)
Overrides the method in PurchasingDocumentRuleBase class in order to add validation for the Vendor Stipulation Tab. Tab included on Purchase Order Documents is Vendor Stipulation.
Parameters:
  purapDocument - the purchase order document to be validated boolean false when an error is found in any validation.
See Also:   org.kuali.module.purap.rules.PurchasingAccountsPayableDocumentRuleBase.processValidation(org.kuali.module.purap.document.PurchasingAccountsPayableDocument)



processVendorStipulationValidation
public boolean processVendorStipulationValidation(PurchaseOrderDocument poDocument)(Code)
Validation for the Stipulation tab.
Parameters:
  poDocument - the purchase order document to be validated boolean false if the vendor stipulation description is blank.



processVendorValidation
public boolean processVendorValidation(PurchasingAccountsPayableDocument purapDocument)(Code)
Overrides the method in PurchasingDocumentRuleBase in order to add validations that are specific for Purchase Orders that aren't required for Requisitions.
Parameters:
  purapDocument - the purchase order document to be validated boolean false when there is a failed validation.
See Also:   org.kuali.module.purap.rules.PurchasingDocumentRuleBase.processVendorValidation(org.kuali.module.purap.document.PurchasingAccountsPayableDocument)



validateEmptyItemWithAccounts
boolean validateEmptyItemWithAccounts(PurchaseOrderItem item, String identifierString)(Code)
Validates that the item detail must not be empty if its account is not empty and its item type is ITEM.
Parameters:
  item - the item to be validated
Parameters:
  identifierString - the identifier string of the item to be validated boolean false if it is an above the line item and the item detail is empty and the account list is not empty.



validateTotalDollarAmountIsLessThanPurchaseOrderTotalLimit
public boolean validateTotalDollarAmountIsLessThanPurchaseOrderTotalLimit(PurchasingDocument purDocument)(Code)
Validate that if the PurchaseOrderTotalLimit is not null then the TotalDollarAmount cannot be greater than the PurchaseOrderTotalLimit.
Parameters:
  purDocument - the purchase order document to be validated True if the TotalDollarAmount is less than the PurchaseOrderTotalLimit. False otherwise.



validateTradeInAndDiscountCoexistence
boolean validateTradeInAndDiscountCoexistence(PurchasingDocument purDocument)(Code)
Validates that the purchase order cannot have both trade in and discount item.
Parameters:
  purDocument - the purchase order document to be validated boolean false if trade in and discount both exist.



Methods inherited from org.kuali.module.purap.rules.PurchasingDocumentRuleBase
public boolean processAccountValidation(AccountingDocument accountingDocument, List<PurApAccountingLine> purAccounts, String itemLineNumber)(Code)(Java Doc)
public boolean processAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
public boolean processAddItemBusinessRules(AccountingDocument financialDocument, PurApItem item)(Code)(Java Doc)
protected boolean processCustomUpdateAccountingLineBusinessRules(AccountingDocument accountingDocument, AccountingLine originalAccountingLine, AccountingLine updatedAccountingLine)(Code)(Java Doc)
public boolean processDeliveryValidation(PurchasingDocument purDocument)(Code)(Java Doc)
public boolean processItemValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc)
public boolean processPaymentInfoValidation(PurchasingDocument purDocument)(Code)(Java Doc)
public boolean processValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc)
public boolean processVendorValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc)

Methods inherited from org.kuali.module.purap.rules.PurchasingAccountsPayableDocumentRuleBase
protected static List getCurrentRouteLevels(KualiWorkflowDocument workflowDocument)(Code)(Java Doc)
public boolean isAmountValid(AccountingDocument document, AccountingLine accountingLine)(Code)(Java Doc)
public boolean isDebit(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
public boolean processAccountValidation(AccountingDocument accountingDocument, List<PurApAccountingLine> purAccounts, String itemLineNumber)(Code)(Java Doc)
public boolean processAddItemBusinessRules(AccountingDocument financialDocument, PurApItem item)(Code)(Java Doc)
protected boolean processCustomAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
protected boolean processCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)(Code)(Java Doc)
protected boolean processCustomRouteDocumentBusinessRules(Document document)(Code)(Java Doc)
public boolean processDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)(Java Doc)
public boolean processDocumentOverviewValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc)
public boolean processItemValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc)
public boolean processValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc)
public boolean processVendorValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc)
public boolean requiresAccountValidationOnAllEnteredItems(PurchasingAccountsPayableDocument document)(Code)(Java Doc)
protected boolean validateBelowTheLineValues(String documentType, PurApItem item)(Code)(Java Doc)
protected boolean verifyAccountPercent(AccountingDocument accountingDocument, List<PurApAccountingLine> purAccounts, String itemLineNumber)(Code)(Java Doc)
protected boolean verifyAccountingStringsBetween0And100Percent(PurApAccountingLine account, String errorPropertyName, String itemIdentifier)(Code)(Java Doc)
protected boolean verifyHasAccounts(List<PurApAccountingLine> purAccounts, String itemLineNumber)(Code)(Java Doc)
protected boolean verifyUniqueAccountingStrings(List<PurApAccountingLine> purAccounts, String errorPropertyName, String itemLineNumber)(Code)(Java Doc)

Fields inherited from org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase
protected static org.apache.log4j.Logger LOG(Code)(Java Doc)

Methods inherited from org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase
protected boolean accountIsAccessible(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
protected void buildTotalChangeErrorMessage(String propertyName, KualiDecimal persistedSourceLineTotal, KualiDecimal currentSourceLineTotal)(Code)(Java Doc)
protected boolean checkAccountingLineAccountAccessibility(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLineAction action)(Code)(Java Doc)
protected void customizeExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)(Code)(Java Doc)
protected boolean customizeOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)(Code)(Java Doc)
protected Class getAccountingLineDocumentClass(AccountingDocument financialDocument)(Code)(Java Doc)
protected KualiDecimal getGeneralLedgerPendingEntryAmountForAccountingLine(AccountingLine accountingLine)(Code)(Java Doc)
protected ParameterService getParameterService()(Code)(Java Doc)
final protected void handleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)(Code)(Java Doc)
protected boolean hasAccessibleAccountingLines(AccountingDocument financialDocument, int min)(Code)(Java Doc)
protected boolean isAccountingLineTotalsUnchanged(AccountingDocument accountingDocument)(Code)(Java Doc)
protected boolean isAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc)
public boolean isAmountValid(AccountingDocument document, AccountingLine accountingLine)(Code)(Java Doc)
final public boolean isAsset(AccountingLine accountingLine)(Code)(Java Doc)
final public boolean isAssetTypeCode(String objectTypeCode)(Code)(Java Doc)
final public boolean isBudgetOnlyCodesSubType(String objectCode)(Code)(Java Doc)
final public boolean isCashSubType(String objectCode)(Code)(Java Doc)
final public boolean isCostRecoveryExpenseSubType(String objectCode)(Code)(Java Doc)
public boolean isCredit(AccountingLine accountingLine, AccountingDocument financialDocument) throws IllegalStateException(Code)(Java Doc)
protected boolean isDocumentBalanceValid(AccountingDocument accountingDocument)(Code)(Java Doc)
protected boolean isDocumentBalanceValidConsideringDebitsAndCredits(AccountingDocument accountingDocument)(Code)(Java Doc)
protected boolean isErrorCorrection(AccountingDocument accountingDocument)(Code)(Java Doc)
public boolean isExpense(AccountingLine accountingLine)(Code)(Java Doc)
final public boolean isExpenseOrAsset(AccountingLine line)(Code)(Java Doc)
final public boolean isFringeBenefitsSubType(String objectCode)(Code)(Java Doc)
final public boolean isFundBalanceCode(String objectCode)(Code)(Java Doc)
final public boolean isFundBalanceSubType(String objectCode)(Code)(Java Doc)
public boolean isFundGroupAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc)
protected boolean isFundGroupSetBalanceValid(AccountingDocument tranDoc, Class componentClass, String parameterName)(Code)(Java Doc)
final public boolean isHourlyWagesSubType(String objectCode)(Code)(Java Doc)
final public boolean isIncome(AccountingLine accountingLine)(Code)(Java Doc)
final public boolean isIncomeOrLiability(AccountingLine line)(Code)(Java Doc)
final public boolean isLiability(AccountingLine accountingLine)(Code)(Java Doc)
final public boolean isLiabilityTypeCode(String objectTypeCode)(Code)(Java Doc)
final public boolean isMandatoryTransfersSubType(String objectSubTypeCode)(Code)(Java Doc)
final public boolean isNonMandatoryTransfersSubType(String objectSubTypeCode)(Code)(Java Doc)
public boolean isObjectCodeAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc)
public boolean isObjectConsolidationAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc)
public boolean isObjectLevelAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc)
public boolean isObjectSubTypeAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc)
public boolean isObjectTypeAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc)
protected boolean isOptionalOneSidedDocumentAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc)
final public boolean isRevenue(AccountingLine line)(Code)(Java Doc)
final public boolean isSalariesSubType(String objectCode)(Code)(Java Doc)
protected boolean isSourceAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc)
public boolean isSubFundGroupAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc)
protected boolean isTargetAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc)
final public boolean isValuationsAndAdjustmentsSubType(String objectSubTypeCode)(Code)(Java Doc)
protected void populateExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry explicitEntry)(Code)(Java Doc)
public boolean processAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
protected boolean processCustomAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
protected boolean processCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)(Code)(Java Doc)
protected boolean processCustomDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)(Java Doc)
protected boolean processCustomReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
protected boolean processCustomRouteDocumentBusinessRules(Document document)(Code)(Java Doc)
protected boolean processCustomUpdateAccountingLineBusinessRules(AccountingDocument accountingDocument, AccountingLine originalAccountingLine, AccountingLine updatedAccountingLine)(Code)(Java Doc)
public boolean processDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)(Java Doc)
protected boolean processExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)(Code)(Java Doc)
public boolean processGenerateGeneralLedgerPendingEntries(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)(Code)(Java Doc)
protected boolean processOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)(Code)(Java Doc)
public boolean processReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
public boolean processUpdateAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLine updatedAccountingLine)(Code)(Java Doc)
public static void putRequiredPropertyError(BusinessObjectEntry boe, String propertyName)(Code)(Java Doc)
protected void reportError(String propertyName, String errorKey, String... errorParams)(Code)(Java Doc)
protected AccountingDocument retrievePersistedDocument(AccountingDocument accountingDocument)(Code)(Java Doc)

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