Java Doc for PurapAccountingDocumentRuleBase.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.kfs.rules.GeneralLedgerPostingDocumentRuleBase
   org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase

All known Subclasses:   org.kuali.module.purap.rules.PurchasingAccountsPayableDocumentRuleBase,
PurapAccountingDocumentRuleBase
abstract public class PurapAccountingDocumentRuleBase extends GeneralLedgerPostingDocumentRuleBase implements AddAccountingLineRule<AccountingDocument>,GenerateGeneralLedgerPendingEntriesRule<AccountingDocument>,DeleteAccountingLineRule<AccountingDocument>,UpdateAccountingLineRule<AccountingDocument>,ReviewAccountingLineRule<AccountingDocument>,SufficientFundsCheckingPreparationRule,AccountingDocumentRuleBaseConstants(Code)
NOTE: COPIED FROM AccountingDocumentRuleBase VERSION 1.27, COMPARE WITH THAT FILE FOR DIFF WITH BASE NOTE: DO NOT MAKE CHANGES TO THIS FILE UNLESS ABSOLUTELY NECESSARY THIS SHOULD NOT CONTAIN PURAP SPECIFIC CODE This class contains all of the business rules that are common to all of the Financial Transaction Processing documents. Any document specific business rules are contained within the specific child class that extends off of this one.

Inner Class :public enum AccountingLineAction
Inner Class :public static class IsDebitUtils

Field Summary
protected static  org.apache.log4j.LoggerLOG
    


Method Summary
protected  booleanaccountIsAccessible(AccountingDocument financialDocument, AccountingLine accountingLine)
    
protected  voidbuildTotalChangeErrorMessage(String propertyName, KualiDecimal persistedSourceLineTotal, KualiDecimal currentSourceLineTotal)
     This method builds out the error message for when totals have changed.
protected  booleancheckAccountingLineAccountAccessibility(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLineAction action)
     If the given accountingLine has an account which is inaccessible to the current user, an error message will be put into the global ErrorMap and into the logfile.
protected  voidcustomizeExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)
     This method can be overridden to set attributes on the explicit entry in a way specific to a particular document.
protected  booleancustomizeOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)
     This method can be overridden to set attributes on the offset entry in a way specific to a particular document.
protected  ClassgetAccountingLineDocumentClass(AccountingDocument financialDocument)
    
protected  KualiDecimalgetGeneralLedgerPendingEntryAmountForAccountingLine(AccountingLine accountingLine)
     GLPE amounts are ALWAYS positive, so just take the absolute value of the accounting line's amount.
protected  ParameterServicegetParameterService()
    
final protected  voidhandleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)
     Handles the case when a non existent document is attempted to be retrieve and that if it's in an initiated state, it's ok.
protected  booleanhasAccessibleAccountingLines(AccountingDocument financialDocument, int min)
    
protected  booleanisAccountingLineTotalsUnchanged(AccountingDocument accountingDocument)
     Checks accounting line totals for approval to make sure that they have not changed.
protected  booleanisAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)
     Checks accounting line number limits for routing.
public  booleanisAmountValid(AccountingDocument document, AccountingLine accountingLine)
     This method checks the amount of a given accounting line to make sure it's not 0, it's positive for regular documents, and negative for correction documents.
final public  booleanisAsset(AccountingLine accountingLine)
     Determines whether an accounting line is an asset line.
final public  booleanisAssetTypeCode(String objectTypeCode)
     Determines whether the objectTypeCode is an asset.
final public  booleanisBudgetOnlyCodesSubType(String objectCode)
     This method...
final public  booleanisCashSubType(String objectCode)
     This method...
final public  booleanisCostRecoveryExpenseSubType(String objectCode)
    
public  booleanisCredit(AccountingLine accountingLine, AccountingDocument financialDocument)
     Determines whether an accounting line represents a credit line.
protected  booleanisDocumentBalanceValid(AccountingDocument accountingDocument)
     This is the default implementation for Transactional Documents, which sums the amounts of all of the Debit GLPEs, and compares it to the sum of all of the Credit GLPEs.
protected  booleanisDocumentBalanceValidConsideringDebitsAndCredits(AccountingDocument accountingDocument)
     This method sums all of the debit GLPEs up and sums all of the credit GLPEs up and then compares the totals to each other, returning true if they are equal and false if they are not.
protected  booleanisErrorCorrection(AccountingDocument accountingDocument)
     Convience method for determine if a document is an error correction document.
public  booleanisExpense(AccountingLine accountingLine)
     Check object code type to determine whether the accounting line is expense.
final public  booleanisExpenseOrAsset(AccountingLine line)
     Determines whether an accounting line is an expense or asset.
final public  booleanisFringeBenefitsSubType(String objectCode)
    
final public  booleanisFundBalanceCode(String objectCode)
     This method...
final public  booleanisFundBalanceSubType(String objectCode)
     This method...
public  booleanisFundGroupAllowed(Class documentClass, AccountingLine accountingLine)
     This method checks to see if the fund group code for the accouting line's account is allowed.
protected  booleanisFundGroupSetBalanceValid(AccountingDocument tranDoc, Class componentClass, String parameterName)
     This method will make sure that totals for a specified set of fund groups is valid across the two different accounting line sections.
Parameters:
  tranDoc -
Parameters:
  fundGroupCodes - An array of the fund group codes that will be considered for balancing.
final public  booleanisHourlyWagesSubType(String objectCode)
     This method...
final public  booleanisIncome(AccountingLine accountingLine)
     Determines whether an accounting line is an income line or not.
final public  booleanisIncomeOrLiability(AccountingLine line)
     Determines whether an accounting line is an income or liability line.
final public  booleanisLiability(AccountingLine accountingLine)
     Determines whether an accounting line is a liability line.
final public  booleanisLiabilityTypeCode(String objectTypeCode)
     Determines whether the objectTypeCode is a liability.
final public  booleanisMandatoryTransfersSubType(String objectSubTypeCode)
     This method determines whether an object sub-type code is a mandatory transfer or not.
final public  booleanisNonMandatoryTransfersSubType(String objectSubTypeCode)
     This method determines whether an object sub-type code is a non-mandatory transfer or not.
public  booleanisObjectCodeAllowed(Class documentClass, AccountingLine accountingLine)
     This method checks to see if the object code for the passed in accounting line exists in the list of restricted object codes.
public  booleanisObjectConsolidationAllowed(Class documentClass, AccountingLine accountingLine)
     This method checks to see if the object consolidation for the accouting line's object code is allowed.
public  booleanisObjectLevelAllowed(Class documentClass, AccountingLine accountingLine)
     This method checks to see if the object level for the accounting line's object code is allowed.
public  booleanisObjectSubTypeAllowed(Class documentClass, AccountingLine accountingLine)
     This method checks to see if the object sub-type code for the accounting line's object code is allowed.
public  booleanisObjectTypeAllowed(Class documentClass, AccountingLine accountingLine)
     This checks the accounting line's object type code to ensure that it is not a fund balance object type.
protected  booleanisOptionalOneSidedDocumentAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)
     Some double-sided documents also allow for one sided entries for correcting - so if one side is empty, the other side must have at least two lines in it.
final public  booleanisRevenue(AccountingLine line)
     Check object code type to determine whether the accounting line is revenue.
final public  booleanisSalariesSubType(String objectCode)
     This method...
protected  booleanisSourceAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)
     This method will check to make sure that the required number of source accounting lines for routing, exist in the document.
public  booleanisSubFundGroupAllowed(Class documentClass, AccountingLine accountingLine)
     This method checks to see if the sub fund group code for the accounting line's account is allowed.
protected  booleanisTargetAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)
     This method will check to make sure that the required number of target accounting lines for routing, exist in the document.
final public  booleanisValuationsAndAdjustmentsSubType(String objectSubTypeCode)
     This method...
protected  voidpopulateExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry explicitEntry)
     This populates an empty GeneralLedgerPendingEntry explicitEntry object instance with default values.
public  booleanprocessAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)
     This method performs common validation for adding of accounting lines.
protected  booleanprocessCustomAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)
     This method should be overridden in the children classes to implement business rules that don't fit into any of the other AddAccountingLineRule interface methods.
protected  booleanprocessCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)
     This method performs common validation for Transactional Document approvals.
protected  booleanprocessCustomDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)
     This method should be overridden in the children classes to implement deleteAccountingLine checks that don't fit into any of the other DeleteAccountingLineRule interface methods.
protected  booleanprocessCustomReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)
     This method should be overridden in the child classes to implement business rules that don't fit into any of the other ReviewAccountingLineRule interface methods.
protected  booleanprocessCustomRouteDocumentBusinessRules(Document document)
     This method performs common validation for Transactional Document routes.
protected  booleanprocessCustomUpdateAccountingLineBusinessRules(AccountingDocument accountingDocument, AccountingLine originalAccountingLine, AccountingLine updatedAccountingLine)
     This method should be overridden in the children classes to implement updateAccountingLine checks that don't fit into any of the other UpdateAccountingLineRule interface methods.
public  booleanprocessDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)
     This method performs common validation for deleting of accounting lines.
protected  booleanprocessExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)
     This method processes all necessary information to build an explicit general ledger entry, and then adds that to the document.
public  booleanprocessGenerateGeneralLedgerPendingEntries(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
     Perform business rules common to all transactional documents when generating general ledger pending entries.
protected  booleanprocessOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)
     This method processes an accounting line's information to build an offset entry, and then adds that to the document.
public  booleanprocessReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)
     This method performs common validation for review of accounting lines.
public  booleanprocessUpdateAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLine updatedAccountingLine)
     This method performs common validation for update of accounting lines.
public static  voidputRequiredPropertyError(BusinessObjectEntry boe, String propertyName)
     Adds a global error for a missing required property.
protected  voidreportError(String propertyName, String errorKey, String... errorParams)
    
protected  AccountingDocumentretrievePersistedDocument(AccountingDocument accountingDocument)
    

Field Detail
LOG
protected static org.apache.log4j.Logger LOG(Code)





Method Detail
accountIsAccessible
protected boolean accountIsAccessible(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)

Parameters:
  financialDocument -
Parameters:
  accountingLine - true if the given accountingLine refers to an account which allows it to be added, deleted, or updated



buildTotalChangeErrorMessage
protected void buildTotalChangeErrorMessage(String propertyName, KualiDecimal persistedSourceLineTotal, KualiDecimal currentSourceLineTotal)(Code)
This method builds out the error message for when totals have changed.
Parameters:
  propertyName -
Parameters:
  persistedSourceLineTotal -
Parameters:
  currentSourceLineTotal -



checkAccountingLineAccountAccessibility
protected boolean checkAccountingLineAccountAccessibility(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLineAction action)(Code)
If the given accountingLine has an account which is inaccessible to the current user, an error message will be put into the global ErrorMap and into the logfile.
Parameters:
  financialDocument -
Parameters:
  accountingLine -
Parameters:
  action - true if the given accountingLine refers to an account which allows it to be added, deleted, or updated



customizeExplicitGeneralLedgerPendingEntry
protected void customizeExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)(Code)
This method can be overridden to set attributes on the explicit entry in a way specific to a particular document. By default the explicit entry is returned without modification.
Parameters:
  accountingDocument -
Parameters:
  accountingLine -
Parameters:
  explicitEntry -



customizeOffsetGeneralLedgerPendingEntry
protected boolean customizeOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)(Code)
This method can be overridden to set attributes on the offset entry in a way specific to a particular document. By default the offset entry is not modified.
Parameters:
  accountingDocument -
Parameters:
  accountingLine -
Parameters:
  explicitEntry -
Parameters:
  offsetEntry - whether the offset generation is successful



getAccountingLineDocumentClass
protected Class getAccountingLineDocumentClass(AccountingDocument financialDocument)(Code)
This method returns the document class associated with this accounting document and is used to find the appropriate parameter rule This can be overridden to return a different class depending on the situation, initially this is used for Year End documents so that they use the same rules as their parent docs
See Also:   org.kuali.module.financial.rules.YearEndGeneralErrorCorrectionDocumentRule.getAccountingLineDocumentClass(AccountingDocument)
Parameters:
  financialDocument - documentClass associated with this accounting document



getGeneralLedgerPendingEntryAmountForAccountingLine
protected KualiDecimal getGeneralLedgerPendingEntryAmountForAccountingLine(AccountingLine accountingLine)(Code)
GLPE amounts are ALWAYS positive, so just take the absolute value of the accounting line's amount.
Parameters:
  accountingLine - KualiDecimal The amount that will be used to populate the GLPE.



getParameterService
protected ParameterService getParameterService()(Code)



handleNonExistentDocumentWhenApproving
final protected void handleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)(Code)
Handles the case when a non existent document is attempted to be retrieve and that if it's in an initiated state, it's ok.
Parameters:
  accountingDocument -



hasAccessibleAccountingLines
protected boolean hasAccessibleAccountingLines(AccountingDocument financialDocument, int min)(Code)

Parameters:
  financialDocument -
Parameters:
  min - true if the document has n (or more) accessible accountingLines



isAccountingLineTotalsUnchanged
protected boolean isAccountingLineTotalsUnchanged(AccountingDocument accountingDocument)(Code)
Checks accounting line totals for approval to make sure that they have not changed.
Parameters:
  accountingDocument - boolean True if the number of accounting lines are valid for routing, false otherwise.



isAccountingLinesRequiredNumberForRoutingMet
protected boolean isAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)
Checks accounting line number limits for routing. This method is for overriding by documents with rules about the total number of lines in both sections combined.
Parameters:
  accountingDocument - boolean True if the number of accounting lines are valid for routing, false otherwise.



isAmountValid
public boolean isAmountValid(AccountingDocument document, AccountingLine accountingLine)(Code)
This method checks the amount of a given accounting line to make sure it's not 0, it's positive for regular documents, and negative for correction documents.
Parameters:
  document -
Parameters:
  accountingLine - boolean True if there aren't any issues, false otherwise.



isAsset
final public boolean isAsset(AccountingLine accountingLine)(Code)
Determines whether an accounting line is an asset line.
Parameters:
  accountingLine - boolean True if a line is an asset line.



isAssetTypeCode
final public boolean isAssetTypeCode(String objectTypeCode)(Code)
Determines whether the objectTypeCode is an asset.
Parameters:
  objectTypeCode - Is she asset or something completely different?



isBudgetOnlyCodesSubType
final public boolean isBudgetOnlyCodesSubType(String objectCode)(Code)
This method...
Parameters:
  objectCode - boolean



isCashSubType
final public boolean isCashSubType(String objectCode)(Code)
This method...
Parameters:
  objectCode - boolean



isCostRecoveryExpenseSubType
final public boolean isCostRecoveryExpenseSubType(String objectCode)(Code)

Parameters:
  objectCode - boolean



isCredit
public boolean isCredit(AccountingLine accountingLine, AccountingDocument financialDocument) throws IllegalStateException(Code)
Determines whether an accounting line represents a credit line.
Parameters:
  accountingLine -
Parameters:
  financialDocument - boolean True if the line is a credit line.
throws:
  IllegalStateException -



isDocumentBalanceValid
protected boolean isDocumentBalanceValid(AccountingDocument accountingDocument)(Code)
This is the default implementation for Transactional Documents, which sums the amounts of all of the Debit GLPEs, and compares it to the sum of all of the Credit GLPEs. In general, this algorithm works, but it does not work for some specific documents such as the Journal Voucher. The method name denotes not an expected behavior, but a more general title so that some documents that don't use this default implementation, can override just this method without having to override the calling method.
Parameters:
  accountingDocument - boolean True if the document is balanced, false otherwise.



isDocumentBalanceValidConsideringDebitsAndCredits
protected boolean isDocumentBalanceValidConsideringDebitsAndCredits(AccountingDocument accountingDocument)(Code)
This method sums all of the debit GLPEs up and sums all of the credit GLPEs up and then compares the totals to each other, returning true if they are equal and false if they are not.
Parameters:
  accountingDocument - boolean



isErrorCorrection
protected boolean isErrorCorrection(AccountingDocument accountingDocument)(Code)
Convience method for determine if a document is an error correction document.
Parameters:
  accountingDocument - true if document is an error correct



isExpense
public boolean isExpense(AccountingLine accountingLine)(Code)
Check object code type to determine whether the accounting line is expense.
Parameters:
  accountingLine - boolean True if the line is an expense line.



isExpenseOrAsset
final public boolean isExpenseOrAsset(AccountingLine line)(Code)
Determines whether an accounting line is an expense or asset.
Parameters:
  line - boolean True if it's an expense or asset.



isFringeBenefitsSubType
final public boolean isFringeBenefitsSubType(String objectCode)(Code)

Parameters:
  objectCode - boolean



isFundBalanceCode
final public boolean isFundBalanceCode(String objectCode)(Code)
This method...
Parameters:
  objectCode - boolean



isFundBalanceSubType
final public boolean isFundBalanceSubType(String objectCode)(Code)
This method...
Parameters:
  objectCode - boolean



isFundGroupAllowed
public boolean isFundGroupAllowed(Class documentClass, AccountingLine accountingLine)(Code)
This method checks to see if the fund group code for the accouting line's account is allowed. The common implementation allows any fund group code.
Parameters:
  accountingLine - boolean



isFundGroupSetBalanceValid
protected boolean isFundGroupSetBalanceValid(AccountingDocument tranDoc, Class componentClass, String parameterName)(Code)
This method will make sure that totals for a specified set of fund groups is valid across the two different accounting line sections.
Parameters:
  tranDoc -
Parameters:
  fundGroupCodes - An array of the fund group codes that will be considered for balancing. True if they balance; false otherwise.



isHourlyWagesSubType
final public boolean isHourlyWagesSubType(String objectCode)(Code)
This method...
Parameters:
  objectCode - boolean



isIncome
final public boolean isIncome(AccountingLine accountingLine)(Code)
Determines whether an accounting line is an income line or not. This goes agains the configurable object type code list in the ApplicationParameter mechanism. This list can be configured externally.
Parameters:
  accountingLine - boolean True if the line is an income line.



isIncomeOrLiability
final public boolean isIncomeOrLiability(AccountingLine line)(Code)
Determines whether an accounting line is an income or liability line.
Parameters:
  line - boolean True if the line is an income or liability line.



isLiability
final public boolean isLiability(AccountingLine accountingLine)(Code)
Determines whether an accounting line is a liability line.
Parameters:
  accountingLine - boolean True if the line is a liability line.



isLiabilityTypeCode
final public boolean isLiabilityTypeCode(String objectTypeCode)(Code)
Determines whether the objectTypeCode is a liability.
Parameters:
  objectTypeCode - Is she liability or something completely different?



isMandatoryTransfersSubType
final public boolean isMandatoryTransfersSubType(String objectSubTypeCode)(Code)
This method determines whether an object sub-type code is a mandatory transfer or not.
Parameters:
  objectSubTypeCode - True if it is a manadatory transfer, false otherwise.



isNonMandatoryTransfersSubType
final public boolean isNonMandatoryTransfersSubType(String objectSubTypeCode)(Code)
This method determines whether an object sub-type code is a non-mandatory transfer or not.
Parameters:
  objectSubTypeCode - True if it is a non-mandatory transfer, false otherwise.



isObjectCodeAllowed
public boolean isObjectCodeAllowed(Class documentClass, AccountingLine accountingLine)(Code)
This method checks to see if the object code for the passed in accounting line exists in the list of restricted object codes. Note, the values that this checks against can be externally configured with the ApplicationParameter maintenance mechanism.
Parameters:
  accountingLine - boolean True if the use of the object code is allowed.



isObjectConsolidationAllowed
public boolean isObjectConsolidationAllowed(Class documentClass, AccountingLine accountingLine)(Code)
This method checks to see if the object consolidation for the accouting line's object code is allowed. The common implementation allows any object consolidation.
Parameters:
  accountingLine - boolean True if the use of the object code's object sub type code is allowed; false otherwise.



isObjectLevelAllowed
public boolean isObjectLevelAllowed(Class documentClass, AccountingLine accountingLine)(Code)
This method checks to see if the object level for the accounting line's object code is allowed. The common implementation allows any object level.
Parameters:
  accountingLine - boolean True if the use of the object code's object sub type code is allowed; false otherwise.



isObjectSubTypeAllowed
public boolean isObjectSubTypeAllowed(Class documentClass, AccountingLine accountingLine)(Code)
This method checks to see if the object sub-type code for the accounting line's object code is allowed. The common implementation allows any object sub-type code.
Parameters:
  accountingLine - boolean True if the use of the object code's object sub type code is allowed; false otherwise.



isObjectTypeAllowed
public boolean isObjectTypeAllowed(Class documentClass, AccountingLine accountingLine)(Code)
This checks the accounting line's object type code to ensure that it is not a fund balance object type. This is a universal business rule that all transaction processing documents should abide by.
Parameters:
  accountingLine - boolean



isOptionalOneSidedDocumentAccountingLinesRequiredNumberForRoutingMet
protected boolean isOptionalOneSidedDocumentAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)
Some double-sided documents also allow for one sided entries for correcting - so if one side is empty, the other side must have at least two lines in it. The balancing rules take care of validation of amounts.
Parameters:
  accountingDocument - boolean



isRevenue
final public boolean isRevenue(AccountingLine line)(Code)
Check object code type to determine whether the accounting line is revenue.
Parameters:
  line - boolean True if the line is a revenue line.



isSalariesSubType
final public boolean isSalariesSubType(String objectCode)(Code)
This method...
Parameters:
  objectCode - boolean



isSourceAccountingLinesRequiredNumberForRoutingMet
protected boolean isSourceAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)
This method will check to make sure that the required number of source accounting lines for routing, exist in the document. This method represents the default implementation, which is that at least one source accounting line must exist.
Parameters:
  accountingDocument - isOk



isSubFundGroupAllowed
public boolean isSubFundGroupAllowed(Class documentClass, AccountingLine accountingLine)(Code)
This method checks to see if the sub fund group code for the accounting line's account is allowed. The common implementation allows any sub fund group code.
Parameters:
  accountingLine - boolean



isTargetAccountingLinesRequiredNumberForRoutingMet
protected boolean isTargetAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)
This method will check to make sure that the required number of target accounting lines for routing, exist in the document. This method represents the default implementation, which is that at least one target accounting line must exist.
Parameters:
  accountingDocument - isOk



isValuationsAndAdjustmentsSubType
final public boolean isValuationsAndAdjustmentsSubType(String objectSubTypeCode)(Code)
This method...
Parameters:
  objectSubTypeCode - boolean



populateExplicitGeneralLedgerPendingEntry
protected void populateExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry explicitEntry)(Code)
This populates an empty GeneralLedgerPendingEntry explicitEntry object instance with default values.
Parameters:
  accountingDocument -
Parameters:
  accountingLine -
Parameters:
  sequenceHelper -
Parameters:
  explicitEntry -



processAddAccountingLineBusinessRules
public boolean processAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)
This method performs common validation for adding of accounting lines. Then calls a custom method for more specific validation.
See Also:   org.kuali.core.rule.AddAccountingLineRule.processAddAccountingLineBusinessRules(org.kuali.core.document.AccountingDocumentorg.kuali.core.bo.AccountingLine)



processCustomAddAccountingLineBusinessRules
protected boolean processCustomAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)
This method should be overridden in the children classes to implement business rules that don't fit into any of the other AddAccountingLineRule interface methods.
Parameters:
  financialDocument -
Parameters:
  accountingLine - boolean



processCustomApproveDocumentBusinessRules
protected boolean processCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)(Code)
This method performs common validation for Transactional Document approvals. Note the rule framework will handle validating all of the accounting lines and also those checks that would normally be done on an approval, automatically for us.
Parameters:
  approveEvent - boolean True if the document is valid for approval, false otherwise.



processCustomDeleteAccountingLineBusinessRules
protected boolean processCustomDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)
This method should be overridden in the children classes to implement deleteAccountingLine checks that don't fit into any of the other DeleteAccountingLineRule interface methods.
Parameters:
  financialDocument -
Parameters:
  accountingLine -
Parameters:
  lineWasAlreadyDeletedFromDocument - boolean



processCustomReviewAccountingLineBusinessRules
protected boolean processCustomReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)
This method should be overridden in the child classes to implement business rules that don't fit into any of the other ReviewAccountingLineRule interface methods.
Parameters:
  financialDocument -
Parameters:
  accountingLine - boolean



processCustomRouteDocumentBusinessRules
protected boolean processCustomRouteDocumentBusinessRules(Document document)(Code)
This method performs common validation for Transactional Document routes. Note the rule framework will handle validating all of the accounting lines and also those checks that would normally be done on a save, automatically for us.
Parameters:
  document - boolean True if the document is valid for routing, false otherwise.



processCustomUpdateAccountingLineBusinessRules
protected boolean processCustomUpdateAccountingLineBusinessRules(AccountingDocument accountingDocument, AccountingLine originalAccountingLine, AccountingLine updatedAccountingLine)(Code)
This method should be overridden in the children classes to implement updateAccountingLine checks that don't fit into any of the other UpdateAccountingLineRule interface methods.
Parameters:
  accountingDocument -
Parameters:
  originalAccountingLine -
Parameters:
  updatedAccountingLine - boolean



processDeleteAccountingLineBusinessRules
public boolean processDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)
This method performs common validation for deleting of accounting lines. Then calls a custom method for more specific validation.
See Also:   org.kuali.core.rule.DeleteAccountingLineRule.processDeleteAccountingLineBusinessRules(org.kuali.core.document.FinancialDocumentorg.kuali.core.bo.AccountingLineboolean)



processExplicitGeneralLedgerPendingEntry
protected boolean processExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)(Code)
This method processes all necessary information to build an explicit general ledger entry, and then adds that to the document.
Parameters:
  accountingDocument -
Parameters:
  sequenceHelper -
Parameters:
  accountingLine -
Parameters:
  explicitEntry - boolean True if the explicit entry generation was successful, false otherwise.



processGenerateGeneralLedgerPendingEntries
public boolean processGenerateGeneralLedgerPendingEntries(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)(Code)
Perform business rules common to all transactional documents when generating general ledger pending entries.
See Also:   org.kuali.core.rule.GenerateGeneralLedgerPendingEntriesRule.processGenerateGeneralLedgerPendingEntries(org.kuali.core.document.AccountingDocumentorg.kuali.core.bo.AccountingLineorg.kuali.core.util.GeneralLedgerPendingEntrySequenceHelper)



processOffsetGeneralLedgerPendingEntry
protected boolean processOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)(Code)
This method processes an accounting line's information to build an offset entry, and then adds that to the document.
Parameters:
  accountingDocument -
Parameters:
  sequenceHelper -
Parameters:
  accountingLine -
Parameters:
  explicitEntry -
Parameters:
  offsetEntry - boolean True if the offset generation is successful.



processReviewAccountingLineBusinessRules
public boolean processReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)
This method performs common validation for review of accounting lines. Then calls a custom method for more specific validation.
See Also:   org.kuali.core.rule.ReviewAccountingLineRule.processReviewAccountingLineBusinessRules(org.kuali.core.document.FinancialDocumentorg.kuali.core.bo.AccountingLine)



processUpdateAccountingLineBusinessRules
public boolean processUpdateAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLine updatedAccountingLine)(Code)
This method performs common validation for update of accounting lines. Then calls a custom method for more specific validation.
See Also:   org.kuali.core.rule.UpdateAccountingLineRule.processUpdateAccountingLineBusinessRules(org.kuali.core.document.FinancialDocumentorg.kuali.core.bo.AccountingLineorg.kuali.core.bo.AccountingLine)



putRequiredPropertyError
public static void putRequiredPropertyError(BusinessObjectEntry boe, String propertyName)(Code)
Adds a global error for a missing required property. This is used for properties, such as reference origin code, which cannot be required by the DataDictionary validation because not all documents require them.
Parameters:
  boe -
Parameters:
  propertyName -



reportError
protected void reportError(String propertyName, String errorKey, String... errorParams)(Code)
Wrapper around global errorMap.put call, to allow better logging
Parameters:
  propertyName -
Parameters:
  errorKey -
Parameters:
  errorParams -



retrievePersistedDocument
protected AccountingDocument retrievePersistedDocument(AccountingDocument accountingDocument)(Code)
attempt to retrieve the document from the DB for comparison
Parameters:
  accountingDocument - AccountingDocument



Methods inherited from org.kuali.kfs.rules.GeneralLedgerPostingDocumentRuleBase
final protected String getEntryValue(String targetValue, String backupValue)(Code)(Java Doc)
protected String getOffsetEntryDebitCreditCode(GeneralLedgerPendingEntry explicitEntry)(Code)(Java Doc)
protected String getOffsetFinancialObjectCode(OffsetDefinition offsetDefinition)(Code)(Java Doc)
protected String getOffsetFinancialObjectTypeCode(OffsetDefinition offsetDefinition)(Code)(Java Doc)
protected boolean populateOffsetGeneralLedgerPendingEntry(Integer universityFiscalYear, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry offsetEntry)(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.