|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.ld.batch.service.impl.LaborYearEndBalanceForwardServiceImpl
@Transactional public class LaborYearEndBalanceForwardServiceImpl
Labor Ledger Year End Inception to Date Beginning Balance process moves the Year-to-Date Total plus the Contracts and Grants Beginning Balances to the Contracts and Grants Beginning Balances of the new fiscal year for a designated group of accounts (to be identified by fund group and sub fund group).
Field Summary | |
---|---|
protected static String |
PROCESSED_BALANCE_TYPES_LABEL
|
protected static String |
PROCESSED_OBJECT_TYPES_LABEL
|
Constructor Summary | |
---|---|
LaborYearEndBalanceForwardServiceImpl()
|
Method Summary | |
---|---|
protected Map<String,Integer> |
constructReportSummary()
|
protected void |
createDoneFile(String originEntryFileName)
|
protected void |
fillParametersReportWriter(Date runDate,
Integer closingYear,
List<String> processedFundGroups,
List<String> processedSubFundGroups,
String originationCode,
List<String> processedBalanceTypeCodes,
List<String> processedObjectTypeCodes,
String documentTypeCode)
Report out which significant parameters were used in this report. |
protected void |
fillStatisticsReportWriter(Map<String,Integer> glEntryReportSummary)
|
void |
forwardBalance()
moves the Year-to-Date Total plus the Contracts and Grants Beginning Balances to the Contracts and Grants Beginning Balances of the new fiscal year for a designated group of accounts. |
void |
forwardBalance(Integer fiscalYear)
moves the Year-to-Date Total plus the Contracts and Grants Beginning Balances to the Contracts and Grants Beginning Balances of the new fiscal year for a designated group of accounts |
void |
forwardBalance(Integer fiscalYear,
Integer newFiscalYear)
moves the Year-to-Date Total plus the Contracts and Grants Beginning Balances to the Contracts and Grants Beginning Balances of the new fiscal year for a designated group of accounts |
protected String |
getDescription()
get the description of the transaction posted by year-end process |
protected String |
getDocumentTypeCode()
get the document type code of the transaction posted by year-end process |
protected List<String> |
getFundGroupProcessed()
get the fund group codes that are acceptable by year-end process |
protected String |
getOriginationCode()
get the origination code of the transaction posted by year-end process |
protected List<String> |
getProcessableBalanceTypeCode(SystemOptions options)
get the balance type codes that are acceptable by year-end process |
protected List<String> |
getProcessableObjectTypeCodes(SystemOptions options)
get the object type codes that are acceptable by year-end process |
protected List<String> |
getSubFundGroupProcessed()
get the fund group codes that are acceptable by year-end process |
protected void |
postAsOriginEntry(LedgerBalanceForYearEndBalanceForward balance,
LaborOriginEntry originEntry,
PrintStream balanceForwardsPs,
Date postingDate)
post the qualified balance into origin entry table for the further labor ledger processing |
protected int |
postSelectedBalancesAsOriginEntries(Iterator<LedgerBalanceForYearEndBalanceForward> balanceIterator,
Integer newFiscalYear,
PrintStream balanceForwardsPs,
Date runDate,
PosterOutputSummaryReport posterOutputSummaryReport,
Map<String,Integer> reportSummary)
post the qualified balances into origin entry table for the further labor ledger processing |
void |
setBatchFileDirectoryName(String batchFileDirectoryName)
Sets the batchFileDirectoryName attribute value. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setLaborBalanceForwardReportWriterService(ReportWriterService laborBalanceForwardReportWriterService)
Sets the laborOutputSummaryReportWriterService attribute value. |
void |
setLaborLedgerBalanceService(LaborLedgerBalanceService laborLedgerBalanceService)
Sets the laborLedgerBalanceService attribute value. |
void |
setOptionsService(OptionsService optionsService)
Sets the optionsService attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
protected void |
updateReportSummary(Map<String,Integer> reportSummary,
String destination,
String operation)
|
protected boolean |
validateBalance(LedgerBalanceForYearEndBalanceForward balance,
List<Message> errors)
determine if the given balance is qualified to be carried forward to new fiscal year |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static String PROCESSED_BALANCE_TYPES_LABEL
protected static String PROCESSED_OBJECT_TYPES_LABEL
Constructor Detail |
---|
public LaborYearEndBalanceForwardServiceImpl()
Method Detail |
---|
public void forwardBalance()
LaborYearEndBalanceForwardService
forwardBalance
in interface LaborYearEndBalanceForwardService
LaborYearEndBalanceForwardService.forwardBalance()
public void forwardBalance(Integer fiscalYear)
LaborYearEndBalanceForwardService
forwardBalance
in interface LaborYearEndBalanceForwardService
fiscalYear
- the fiscal year to be processed. The new fiscal year is (fiscalYear + 1) by default.LaborYearEndBalanceForwardService.forwardBalance(java.lang.Integer)
public void forwardBalance(Integer fiscalYear, Integer newFiscalYear)
LaborYearEndBalanceForwardService
forwardBalance
in interface LaborYearEndBalanceForwardService
fiscalYear
- the fiscal year to be processed.newFiscalYear
- the new fiscal yearLaborYearEndBalanceForwardService.forwardBalance(java.lang.Integer,
java.lang.Integer)
protected void createDoneFile(String originEntryFileName)
protected int postSelectedBalancesAsOriginEntries(Iterator<LedgerBalanceForYearEndBalanceForward> balanceIterator, Integer newFiscalYear, PrintStream balanceForwardsPs, Date runDate, PosterOutputSummaryReport posterOutputSummaryReport, Map<String,Integer> reportSummary)
balanceIterator
- the given ledger balances that will be carried forwardnewFiscalYear
- the new fiscal yearvalidGroup
- the group that the posted transaction belongs toerrorMap
- the map that records the error messagesrunDate
- the date the transaction is posted
protected boolean validateBalance(LedgerBalanceForYearEndBalanceForward balance, List<Message> errors)
balance
- the given ledger balance that could be carried forwarderrors
- the error list that is updated if the given balacne is not qualified for carry forward
protected void postAsOriginEntry(LedgerBalanceForYearEndBalanceForward balance, LaborOriginEntry originEntry, PrintStream balanceForwardsPs, Date postingDate)
balance
- the given ledger balance that will be carried forwardnewFiscalYear
- the new fiscal yearvalidGroup
- the group that the posted transaction belongs topostingDate
- the date the transaction is postedprotected List<String> getFundGroupProcessed()
protected List<String> getSubFundGroupProcessed()
protected List<String> getProcessableBalanceTypeCode(SystemOptions options)
protected List<String> getProcessableObjectTypeCodes(SystemOptions options)
options
- the given system options
protected Map<String,Integer> constructReportSummary()
protected void fillStatisticsReportWriter(Map<String,Integer> glEntryReportSummary)
protected void fillParametersReportWriter(Date runDate, Integer closingYear, List<String> processedFundGroups, List<String> processedSubFundGroups, String originationCode, List<String> processedBalanceTypeCodes, List<String> processedObjectTypeCodes, String documentTypeCode)
runDate
- the date when this job was runclosingYear
- the fiscal year closed by this jobprocessedFundGroups
- the fund groups processed by this jobprocessedSubFundGroups
- the sub-fund groups processed by this joboriginationCode
- the origination code of the posted entriesprocessedBalanceTypeCodes
- the balance type codes processed by this jobprocessedObjectTypeCodes
- the object type codes processed by this jobdocumentTypeCode
- the document type code of posted entriesprotected void updateReportSummary(Map<String,Integer> reportSummary, String destination, String operation)
protected String getDocumentTypeCode()
protected String getOriginationCode()
protected String getDescription()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.public void setLaborLedgerBalanceService(LaborLedgerBalanceService laborLedgerBalanceService)
laborLedgerBalanceService
- The laborLedgerBalanceService to set.public void setOptionsService(OptionsService optionsService)
optionsService
- The optionsService to set.public void setBatchFileDirectoryName(String batchFileDirectoryName)
batchFileDirectoryName
- The batchFileDirectoryName to set.public void setLaborBalanceForwardReportWriterService(ReportWriterService laborBalanceForwardReportWriterService)
laborOutputSummaryReportWriterService
- The laborOutputSummaryReportWriterService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |