public interface OrganizationReversionProcess
Modifier and Type | Method and Description |
---|---|
void |
calculateTotals()
This method calculates the totals for a given unit of work's reversion
|
void |
generateCarryForwards(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.
|
void |
generateCashReversions(List<OriginEntryFull> originEntriesToWrite)
This method generates cash reversion origin entries for the current organization reversion, and adds them to the given list
|
void |
generateMany(List<OriginEntryFull> originEntriesToWrite)
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
|
List<OriginEntryFull> |
generateOutputOriginEntries()
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
|
void |
generateReversions(List<OriginEntryFull> originEntriesToWrite)
If reversions are necessary, this will generate the origin entries for those reversions
|
int |
getBalancesRead()
Returns the total number of balances for the previous fiscal year
|
int |
getBalancesSelected()
Returns the total number of balances selected for inclusion in this process
|
List<OriginEntryFull> |
getGeneratedOriginEntries()
Gets the generatedOriginEntries attribute.
|
void |
initializeProcess()
This method initializes several properties needed for the process to run correctly
|
void |
organizationReversionProcess(Map jobParameters,
Map<String,Integer> organizationReversionCounts)
Runs the organization reversion process.
|
void |
processBalances(Iterator<Balance> balances)
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
|
void |
setHoldGeneratedOriginEntries(boolean holdGeneratedOriginEntries)
Sets the holdGeneratedOriginEntries attribute value.
|
void |
writeLedgerSummaryReport(ReportWriterService reportWriterService)
Writes out the encapsulated origin entry ledger report to the given reportWriterService
|
void organizationReversionProcess(Map jobParameters, Map<String,Integer> organizationReversionCounts)
jobParameters
- the parameters used in the processorganizationReversionCounts
- a Map of named statistics generated by running the processvoid initializeProcess()
void processBalances(Iterator<Balance> balances)
balances
- an iterator of balances to process; each balance returned by the iterator will be processed by this methodList<OriginEntryFull> generateOutputOriginEntries() throws FatalErrorException
FatalErrorException
- thrown if object codes are missing in any of the generation methodsvoid generateCashReversions(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException
originEntriesToWrite
- a list of OriginEntryFulls to stick generated origin entries intoFatalErrorException
- thrown if an origin entry's object code can't be foundvoid generateMany(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException
originEntriesToWrite
- a list of origin entries to write, which any generated origin entries should be added toFatalErrorException
- thrown if an object code cannot be foundvoid generateCarryForwards(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException
originEntriesToWrite
- a list of origin entries to write, that any generated origin entries should be added toFatalErrorException
- thrown if the current object code can't be found in the databasevoid generateReversions(List<OriginEntryFull> originEntriesToWrite) throws FatalErrorException
originEntriesToWrite
- the list of origin entries to add reversions intoFatalErrorException
- thrown if object code if the entry can't be foundvoid calculateTotals() throws FatalErrorException
FatalErrorException
void writeLedgerSummaryReport(ReportWriterService reportWriterService)
reportWriterService
- the report to write the ledger summary report tovoid setHoldGeneratedOriginEntries(boolean holdGeneratedOriginEntries)
holdGeneratedOriginEntries
- The holdGeneratedOriginEntries to set.List<OriginEntryFull> getGeneratedOriginEntries()
int getBalancesRead()
int getBalancesSelected()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.