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


java.lang.Object
   org.kuali.kfs.rules.AccountingDocumentRuleUtil

AccountingDocumentRuleUtil
public class AccountingDocumentRuleUtil (Code)
This utility class contains some common transactional document business rules, that can be used by many different parts of this application.




Method Summary
public static  StringformatProperty(String propertyName, Object... arguments)
    
public static  StringgetObjectCodeTypeCodeWithoutSideEffects(AccountingLine accountingLine)
     Makes sure that the objectCode attribute is fully populated b/c we are using proxying in our persistence layer.
public static  booleanisExpense(AccountingLine accountingLine)
     Check object code type to determine whether the accounting line is expense.
public static  booleanisIncome(AccountingLine accountingLine)
     Determines whether an accounting line is an income line or not.
public static  booleanisValidBalanceType(BalanceTyp balanceType, String errorPropertyName)
     This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
public static  booleanisValidBalanceType(BalanceTyp balanceType, Class entryClass, String attributeName, String errorPropertyName)
     This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
public static  booleanisValidOpenAccountingPeriod(AccountingPeriod accountingPeriod, Class entryClass, String attribueName, String errorPropertyName)
     This method checks for the existence of the accounting period in the system and also makes sure that the accounting period is open for posting.
public static  booleanisValidReversalDate(java.sql.Date reversalDate, String errorPropertyName)
     Some documents have reversal dates.
public static  booleanpopulateBankOffsetGeneralLedgerPendingEntry(BankAccount bankAccount, KualiDecimal depositAmount, AccountingDocument financialDocument, Integer universityFiscalYear, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry bankOffsetEntry, String errorPropertyName)
     This populates an empty GeneralLedgerPendingEntry instance with default values for a bank offset.



Method Detail
formatProperty
public static String formatProperty(String propertyName, Object... arguments)(Code)



getObjectCodeTypeCodeWithoutSideEffects
public static String getObjectCodeTypeCodeWithoutSideEffects(AccountingLine accountingLine)(Code)
Makes sure that the objectCode attribute is fully populated b/c we are using proxying in our persistence layer.
Parameters:
  accountingLine - the object type code of the object code of the given accounting line



isExpense
public static 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.



isIncome
public static 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.



isValidBalanceType
public static boolean isValidBalanceType(BalanceTyp balanceType, String errorPropertyName)(Code)
This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
Parameters:
  balanceType -
Parameters:
  errorPropertyName - also used as the BalanceTyp DD attribute name True if the balance type is valid, false otherwise.



isValidBalanceType
public static boolean isValidBalanceType(BalanceTyp balanceType, Class entryClass, String attributeName, String errorPropertyName)(Code)
This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
Parameters:
  balanceType -
Parameters:
  entryClass - the Class of the DataDictionary entry containing the attribute with the label for the error message
Parameters:
  attributeName - the name of the attribute in the DataDictionary entry
Parameters:
  errorPropertyName - True if the balance type is valid, false otherwise.



isValidOpenAccountingPeriod
public static boolean isValidOpenAccountingPeriod(AccountingPeriod accountingPeriod, Class entryClass, String attribueName, String errorPropertyName)(Code)
This method checks for the existence of the accounting period in the system and also makes sure that the accounting period is open for posting.
Parameters:
  accountingPeriod -
Parameters:
  entryClass -
Parameters:
  attribueName -
Parameters:
  errorPropertyName - True if the accounting period exists in the system and is open for posting, false otherwise.



isValidReversalDate
public static boolean isValidReversalDate(java.sql.Date reversalDate, String errorPropertyName)(Code)
Some documents have reversal dates. This method represents the common implementation that transactional documents follow for reversal dates - that they must not be before the current date.
Parameters:
  reversalDate -
Parameters:
  errorPropertyName - boolean True if the reversal date is not earlier than the current date, false otherwise.



populateBankOffsetGeneralLedgerPendingEntry
public static boolean populateBankOffsetGeneralLedgerPendingEntry(BankAccount bankAccount, KualiDecimal depositAmount, AccountingDocument financialDocument, Integer universityFiscalYear, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry bankOffsetEntry, String errorPropertyName)(Code)
This populates an empty GeneralLedgerPendingEntry instance with default values for a bank offset. A global error will be posted as a side-effect if the given BankAccount has not defined the necessary bank offset relations.
Parameters:
  bankAccount -
Parameters:
  depositAmount -
Parameters:
  financialDocument -
Parameters:
  universityFiscalYear -
Parameters:
  sequenceHelper -
Parameters:
  bankOffsetEntry -
Parameters:
  errorPropertyName - whether the entry was populated successfully



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.