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


java.lang.Object
   org.kuali.module.gl.util.CorrectionDocumentUtils

CorrectionDocumentUtils
public class CorrectionDocumentUtils (Code)
This class provides utility methods for the correction document


Field Summary
final public static  intDEFAULT_RECORDS_PER_PAGE
    
final public static  intDEFAULT_RECORD_COUNT_FUNCTIONALITY_LIMIT
    
final public static  intRECORD_COUNT_FUNCTIONALITY_LIMIT_IS_NONE
    
final public static  intRECORD_COUNT_FUNCTIONALITY_LIMIT_IS_UNLIMITED
    


Method Summary
public static  OriginEntryFullapplyCriteriaToEntry(OriginEntryFull entry, boolean matchCriteriaOnly, List<CorrectionChangeGroup> changeCriteriaGroups)
     Applies a list of change criteria groups to an origin entry.
public static  StringconvertToString(Object fieldActualValue, String fieldType)
     Converts the value into a string, with the appropriate formatting
Parameters:
  fieldActualValue - actual field value
Parameters:
  fieldType - field type (i.e.
public static  voidcopyStatisticsToDocument(OriginEntryStatistics statistics, CorrectionDocument document)
    
public static  booleandoesEntryMatchAnyCriteriaGroups(OriginEntryFull entry, Collection<CorrectionChangeGroup> groups)
    
public static  booleandoesLaborEntryMatchAnyCriteriaGroups(OriginEntryFull entry, Collection<CorrectionChangeGroup> groups)
    
public static  booleanentryMatchesCriteria(CorrectionCriteria cc, OriginEntryFull oe)
     Returns whether an origin entry matches the passed in criteria.
public static  intgetRecordCountFunctionalityLimit()
    
public static  intgetRecordsPerPage()
    
public static  OriginEntryStatisticsgetStatistics(Collection<OriginEntryFull> entries)
     Computes the statistics (credit amount, debit amount, row count) of a collection of origin entries.
public static  booleanisBudget(OriginEntryFull oe)
    
public static  booleanisCredit(OriginEntryFull oe)
    
public static  booleanisDebit(OriginEntryFull oe)
    
public static  booleanisRestrictedFunctionalityMode(int inputGroupSize, int recordCountFunctionalityLimit)
    
public static  booleanlaborEntryMatchesCriteria(CorrectionCriteria cc, OriginEntryFull oe)
     Returns whether an origin entry matches the passed in criteria.
public static  voidsetAllEntryIdsToNull(Collection<OriginEntryFull> originEntries)
     Sets all origin entries' entry IDs to null within the collection.
public static  voidsetSequentialEntryIds(Collection<OriginEntryFull> originEntries)
    
public static  voidupdateStatisticsWithEntry(OriginEntryFull entry, OriginEntryStatistics statistics)
    
public static  booleanvalidCorrectionChangeForAdding(CorrectionChange correctionChange)
    
public static  booleanvalidCorrectionChangeForSaving(CorrectionChange correctionChange)
     When a document is about to be saved, this will check if it is valid, meaning that the field name and value are both blank
Parameters:
  correctionCriteria - validated correction criteria true if correction change is valid for saving (i.e.
public static  booleanvalidCorrectionCriteriaForAdding(CorrectionCriteria correctionCriteria)
    
public static  booleanvalidCorrectionCriteriaForSaving(CorrectionCriteria correctionCriteria)
    

Field Detail
DEFAULT_RECORDS_PER_PAGE
final public static int DEFAULT_RECORDS_PER_PAGE(Code)



DEFAULT_RECORD_COUNT_FUNCTIONALITY_LIMIT
final public static int DEFAULT_RECORD_COUNT_FUNCTIONALITY_LIMIT(Code)



RECORD_COUNT_FUNCTIONALITY_LIMIT_IS_NONE
final public static int RECORD_COUNT_FUNCTIONALITY_LIMIT_IS_NONE(Code)
The GLCP document will always be on restricted functionality mode, regardless of input group size



RECORD_COUNT_FUNCTIONALITY_LIMIT_IS_UNLIMITED
final public static int RECORD_COUNT_FUNCTIONALITY_LIMIT_IS_UNLIMITED(Code)
The GLCP document will never be on restricted functionality mode, regardless of input group size





Method Detail
applyCriteriaToEntry
public static OriginEntryFull applyCriteriaToEntry(OriginEntryFull entry, boolean matchCriteriaOnly, List<CorrectionChangeGroup> changeCriteriaGroups)(Code)
Applies a list of change criteria groups to an origin entry. Note that the returned value, if not null, is a reference to the same instance as the origin entry passed in (i.e. intentional side effect)
Parameters:
  entry - origin entry
Parameters:
  matchCriteriaOnly - if true and no criteria match, then this method will return null
Parameters:
  changeCriteriaGroups - list of change criteria groups to apply the passed in entry instance, or null (see above)



convertToString
public static String convertToString(Object fieldActualValue, String fieldType)(Code)
Converts the value into a string, with the appropriate formatting
Parameters:
  fieldActualValue - actual field value
Parameters:
  fieldType - field type (i.e. "String", "Integer", "Date") String object value as a string



copyStatisticsToDocument
public static void copyStatisticsToDocument(OriginEntryStatistics statistics, CorrectionDocument document)(Code)
Sets document with the statistics data
Parameters:
  statistics - origin entry statistics that are being used to set document
Parameters:
  document - document with statistic information being set



doesEntryMatchAnyCriteriaGroups
public static boolean doesEntryMatchAnyCriteriaGroups(OriginEntryFull entry, Collection<CorrectionChangeGroup> groups)(Code)
Returns whether the entry matches any of the criteria groups
Parameters:
  entry - origin entry
Parameters:
  groups - collection of correction change group true if origin entry matches any of the criteria groups



doesLaborEntryMatchAnyCriteriaGroups
public static boolean doesLaborEntryMatchAnyCriteriaGroups(OriginEntryFull entry, Collection<CorrectionChangeGroup> groups)(Code)
Returns whether the labor entry matches any of the criteria groups
Parameters:
  entry - labor origin entry
Parameters:
  groups - collection of correction change group true if labor origin entry matches any of the criteria groups



entryMatchesCriteria
public static boolean entryMatchesCriteria(CorrectionCriteria cc, OriginEntryFull oe)(Code)
Returns whether an origin entry matches the passed in criteria. If both the criteria and actual value are both String types and are empty, null, or whitespace only, then they will match.
Parameters:
  cc - correction criteria to test against origin entry
Parameters:
  oe - origin entry to test true if origin entry matches the passed in criteria



getRecordCountFunctionalityLimit
public static int getRecordCountFunctionalityLimit()(Code)
This method returns the limit for record count functionality limit for record count functionality



getRecordsPerPage
public static int getRecordsPerPage()(Code)
This method returns the number of records per page number of records per page



getStatistics
public static OriginEntryStatistics getStatistics(Collection<OriginEntryFull> entries)(Code)
Computes the statistics (credit amount, debit amount, row count) of a collection of origin entries.
Parameters:
  entries - list of orgin entry entries OriginEntryStatistics statistics (credit amount, debit amount, row count) of a collection of origin entries.



isBudget
public static boolean isBudget(OriginEntryFull oe)(Code)
Returns whether the origin entry represents a budget
Parameters:
  oe - origin entry true if origin entry represents a budget



isCredit
public static boolean isCredit(OriginEntryFull oe)(Code)
Returns whether the origin entry represents a credit
Parameters:
  oe - origin entry true if origin entry represents a credit



isDebit
public static boolean isDebit(OriginEntryFull oe)(Code)
Returns whether the origin entry represents a debit
Parameters:
  oe - origin entry true if origin entry represents a debit



isRestrictedFunctionalityMode
public static boolean isRestrictedFunctionalityMode(int inputGroupSize, int recordCountFunctionalityLimit)(Code)
This method returns true if input group size is greater than or equal to record count functionality limit
Parameters:
  inputGroupSize - size of input groups
Parameters:
  recordCountFunctionalityLimit - limit for record count functionality true if input group size is greater than or equal to record count functionality limit



laborEntryMatchesCriteria
public static boolean laborEntryMatchesCriteria(CorrectionCriteria cc, OriginEntryFull oe)(Code)
Returns whether an origin entry matches the passed in criteria. If both the criteria and actual value are both String types and are empty, null, or whitespace only, then they will match.
Parameters:
  cc - correction criteria to test against origin entry
Parameters:
  oe - origin entry to test true if origin entry matches the passed in criteria



setAllEntryIdsToNull
public static void setAllEntryIdsToNull(Collection<OriginEntryFull> originEntries)(Code)
Sets all origin entries' entry IDs to null within the collection.
Parameters:
  originEntries - collection of origin entries



setSequentialEntryIds
public static void setSequentialEntryIds(Collection<OriginEntryFull> originEntries)(Code)
Sets all origin entries' entry IDs to be sequential starting from 0 in the collection
Parameters:
  originEntries - collection of origin entries



updateStatisticsWithEntry
public static void updateStatisticsWithEntry(OriginEntryFull entry, OriginEntryStatistics statistics)(Code)
Given an instance of statistics, it adds information from the passed in entry to the statistics
Parameters:
  entry - origin entry
Parameters:
  statistics - adds statistics from the passed in origin entry to the passed in statistics



validCorrectionChangeForAdding
public static boolean validCorrectionChangeForAdding(CorrectionChange correctionChange)(Code)
When a correction change is about to be added to a group, this will check if it is valid, meaning that the field name is not blank
Parameters:
  correctionChange - validated correction change true is correction change is valid for adding



validCorrectionChangeForSaving
public static boolean validCorrectionChangeForSaving(CorrectionChange correctionChange)(Code)
When a document is about to be saved, this will check if it is valid, meaning that the field name and value are both blank
Parameters:
  correctionCriteria - validated correction criteria true if correction change is valid for saving (i.e. correction change is null or correction field name and field value are blank)



validCorrectionCriteriaForAdding
public static boolean validCorrectionCriteriaForAdding(CorrectionCriteria correctionCriteria)(Code)
When a correction criterion is about to be added to a group, this will check if it is valid, meaning that the field name is not blank
Parameters:
  correctionCriteria - validated correction criteria true if correction criteria is valid for adding



validCorrectionCriteriaForSaving
public static boolean validCorrectionCriteriaForSaving(CorrectionCriteria correctionCriteria)(Code)
When a document is about to be saved, this will check if it is valid, meaning that the field name and value are both blank
Parameters:
  correctionCriteria - validated correction criteria true if correction criteria is valid for saving



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.