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


java.lang.Object
   org.kuali.module.gl.service.impl.orgreversion.OrganizationReversionProcess

OrganizationReversionProcess
public class OrganizationReversionProcess (Code)
This class actually runs the year end organization reversion process


Field Summary
final public  StringCARRY_FORWARD_OBJECT_CODE
    
final public  StringDEFAULT_DOCUMENT_NUMBER_PREFIX
    
final public  StringDEFAULT_FINANCIAL_BALANCE_TYPE_CODE
    
final public  StringDEFAULT_FINANCIAL_BALANCE_TYPE_CODE_YEAR_END
    
final public  StringDEFAULT_FINANCIAL_DOCUMENT_TYPE_CODE
    
final public  StringDEFAULT_FINANCIAL_SYSTEM_ORIGINATION_CODE
    

Constructor Summary
public  OrganizationReversionProcess()
    
public  OrganizationReversionProcess(OriginEntryGroup outputGroup, boolean endOfYear, OrganizationReversionService ors, BalanceService bs, OriginEntryGroupService oegs, OriginEntryService oes, PersistenceService ps, DateTimeService dts, OrganizationReversionCategoryLogic corc, PriorYearAccountService pyas, OrgReversionUnitOfWorkService oruows, Map jobParameters, Map<String, Integer> organizationReversionCounts)
    

Method Summary
protected  voidcalculateBucketAmounts(Balance bal)
    
public  voidcalculateTotals()
    
public  voidgenerateCarryForwards(List<OriginEntryFull> originEntriesToWrite)
     If carry forwards need to be generated for this unit of work, this method will generate the origin entries to accomplish those object codes.
public  voidgenerateCashReversions(List<OriginEntryFull> originEntriesToWrite)
    
public  voidgenerateMany(List<OriginEntryFull> originEntriesToWrite)
    
public  List<OriginEntryFull>generateOutputOriginEntries()
    
public  voidgenerateReversions(List<OriginEntryFull> originEntriesToWrite)
    
public  intgetBalancesRead()
    
public  intgetBalancesSelected()
    
public  List<OrganizationReversionCategory>getCategoryList()
    
public  List<OriginEntryFull>getGeneratedOriginEntries()
     Gets the generatedOriginEntries attribute.
public  intgetRecordsWritten()
    
public  OrgReversionUnitOfWorkgetUnitOfWork()
    
public  voidinitializeProcess()
    
public  voidorganizationReversionProcess()
     This evilly named method actually runs the organization reversion process.
public  voidprocessBalances(Iterator<Balance> balances)
    
public  voidsetHoldGeneratedOriginEntries(boolean holdGeneratedOriginEntries)
     Sets the holdGeneratedOriginEntries attribute value.
public  voidsetOutputGroup(OriginEntryGroup outputGroup)
    
public  voidsetUnitOfWork(OrgReversionUnitOfWork unitOfWork)
    
public  intwriteOriginEntries(OriginEntryGroup writeGroup, List<OriginEntryFull> originEntriesToWrite)
    

Field Detail
CARRY_FORWARD_OBJECT_CODE
final public String CARRY_FORWARD_OBJECT_CODE(Code)



DEFAULT_DOCUMENT_NUMBER_PREFIX
final public String DEFAULT_DOCUMENT_NUMBER_PREFIX(Code)



DEFAULT_FINANCIAL_BALANCE_TYPE_CODE
final public String DEFAULT_FINANCIAL_BALANCE_TYPE_CODE(Code)



DEFAULT_FINANCIAL_BALANCE_TYPE_CODE_YEAR_END
final public String DEFAULT_FINANCIAL_BALANCE_TYPE_CODE_YEAR_END(Code)



DEFAULT_FINANCIAL_DOCUMENT_TYPE_CODE
final public String DEFAULT_FINANCIAL_DOCUMENT_TYPE_CODE(Code)



DEFAULT_FINANCIAL_SYSTEM_ORIGINATION_CODE
final public String DEFAULT_FINANCIAL_SYSTEM_ORIGINATION_CODE(Code)




Constructor Detail
OrganizationReversionProcess
public OrganizationReversionProcess()(Code)
Constructs a OrganizationReversionProcess, initializing certain parameters



OrganizationReversionProcess
public OrganizationReversionProcess(OriginEntryGroup outputGroup, boolean endOfYear, OrganizationReversionService ors, BalanceService bs, OriginEntryGroupService oegs, OriginEntryService oes, PersistenceService ps, DateTimeService dts, OrganizationReversionCategoryLogic corc, PriorYearAccountService pyas, OrgReversionUnitOfWorkService oruows, Map jobParameters, Map<String, Integer> organizationReversionCounts)(Code)
Constructs a OrganizationReversionProcess, setting all of the services needed by the process
Parameters:
  outputGroup - the origin entry group to put generated origin entries into
Parameters:
  endOfYear - true if this job is "end of year" - which uses Account, false if this job is "beginning of year", which uses PriorYearAccount
Parameters:
  ors - the organizationReversionService to use
Parameters:
  bs - the balanceService to use
Parameters:
  oegs - the originEntryGroupService to use
Parameters:
  oes - the originEntryService to use
Parameters:
  ps - the parameterService to use
Parameters:
  dts - the dateTimeService to use
Parameters:
  corc - the organizationReversionCategoryLogic implementation to use
Parameters:
  pyas - the prior year account service to use
Parameters:
  oruows - the organizationReversionUnitOfWorkService to use
Parameters:
  jobParameters - the parameters used by this job - the fiscal year to close and the transaction date that all generated origin entries should be set to
Parameters:
  organizationReversionCounts - a map of statistical counts generated by the process




Method Detail
calculateBucketAmounts
protected void calculateBucketAmounts(Balance bal)(Code)
Depending on the category that this balance belongs to, adds the balance to the appropriate bucket
Parameters:
  bal - the current balance to process



calculateTotals
public void calculateTotals() throws FatalErrorException(Code)
This method calculates the totals for a given unit of work's reversion
throws:
  FatalErrorException -



generateCarryForwards
public void generateCarryForwards(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException(Code)
If carry forwards need to be generated for this unit of work, this method will generate the origin entries to accomplish those object codes. Note: this will only be called if the organization reversion record tells the process to munge all carry forwards for all categories together; if the organization reversion record does not call for such a thing, then generateMany will be called
Parameters:
  originEntriesToWrite - a list of origin entries to write, that any generated origin entries should be added to
throws:
  FatalErrorException - thrown if the current object code can't be found in the database



generateCashReversions
public void generateCashReversions(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException(Code)
This method generates cash reversion origin entries for the current organization reversion, and adds them to the given list
Parameters:
  originEntriesToWrite - a list of OriginEntryFulls to stick generated origin entries into
throws:
  FatalErrorException - thrown if an origin entry's object code can't be found



generateMany
public void generateMany(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException(Code)
Generates carry forward origin entries on a category by category basis (if the organization reversion record asks for that), assuming carry forwards are required for the current unit of work
Parameters:
  originEntriesToWrite - a list of origin entries to write, which any generated origin entries should be added to
throws:
  FatalErrorException - thrown if an object code cannot be found



generateOutputOriginEntries
public List<OriginEntryFull> generateOutputOriginEntries() throws FatalErrorException(Code)
This method determines which origin entries (reversion, cash reversion, or carry forward) need to be generated for the current unit of work, and then delegates to the origin entry generation methods to create those entries a list of OriginEntries which need to be written
throws:
  FatalErrorException - thrown if object codes are missing in any of the generation methods



generateReversions
public void generateReversions(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException(Code)
If reversions are necessary, this will generate the origin entries for those reversions
Parameters:
  originEntriesToWrite - the list of origin entries to add reversions into
throws:
  FatalErrorException - thrown if object code if the entry can't be found



getBalancesRead
public int getBalancesRead()(Code)
Returns the total number of balances for the previous fiscal year the total number of balances for the previous fiscal year



getBalancesSelected
public int getBalancesSelected()(Code)
Returns the total number of balances selected for inclusion in this process the total number of balances selected for inclusion in this process



getCategoryList
public List<OrganizationReversionCategory> getCategoryList()(Code)



getGeneratedOriginEntries
public List<OriginEntryFull> getGeneratedOriginEntries()(Code)
Gets the generatedOriginEntries attribute. Returns the generatedOriginEntries.



getRecordsWritten
public int getRecordsWritten()(Code)
Returns the total number of origin entries written by this process the total number of origin entries written by this process



getUnitOfWork
public OrgReversionUnitOfWork getUnitOfWork()(Code)



initializeProcess
public void initializeProcess()(Code)
This method initializes several properties needed for the process to run correctly



organizationReversionProcess
public void organizationReversionProcess()(Code)
This evilly named method actually runs the organization reversion process.



processBalances
public void processBalances(Iterator<Balance> balances)(Code)
Given a list of balances, this method generates the origin entries for the organization reversion/carry forward process, and saves those to an initialized origin entry group
Parameters:
  balances - an iterator of balances to process; each balance returned by the iterator will be processed by this method



setHoldGeneratedOriginEntries
public void setHoldGeneratedOriginEntries(boolean holdGeneratedOriginEntries)(Code)
Sets the holdGeneratedOriginEntries attribute value.
Parameters:
  holdGeneratedOriginEntries - The holdGeneratedOriginEntries to set.



setOutputGroup
public void setOutputGroup(OriginEntryGroup outputGroup)(Code)
Used mainly for unit testing, this method allows a way to change the output group of a org reversion process run
Parameters:
  outputGroup -



setUnitOfWork
public void setUnitOfWork(OrgReversionUnitOfWork unitOfWork)(Code)



writeOriginEntries
public int writeOriginEntries(OriginEntryGroup writeGroup, List<OriginEntryFull> originEntriesToWrite)(Code)
This method writes a list of OriginEntryFulls to a given origin entry group
Parameters:
  writeGroup - the origin entry group to write to
Parameters:
  originEntriesToWrite - a list of origin entry fulls to write the count of origin entries that were written



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)

ww___w___.___j_a_va2___s___._c_om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.