public class EncumbranceClosingOriginEntryGenerationServiceImpl extends Object implements EncumbranceClosingOriginEntryGenerationService
Modifier and Type | Field and Description |
---|---|
protected A21SubAccountService |
a21SubAccountService |
protected AccountingCycleCachingService |
accountingCycleCachingService |
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService |
protected FlexibleOffsetAccountService |
flexibleOffsetAccountService |
protected ObjectCodeService |
objectCodeService |
protected OffsetDefinitionService |
offsetDefinitionService |
protected OptionsService |
optionsService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected SubFundGroupService |
subFundGroupService |
protected SubObjectCodeService |
subObjectCodeService |
Constructor and Description |
---|
EncumbranceClosingOriginEntryGenerationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
OriginEntryOffsetPair |
createBeginningBalanceEntryOffsetPair(Encumbrance encumbrance,
Integer closingFiscalYear,
Date transactionDate)
Create a pair of OriginEntries, one explicit and one offset to carry forward an encumbrance.
|
OriginEntryOffsetPair |
createCostShareBeginningBalanceEntryOffsetPair(Encumbrance encumbrance,
Date transactionDate)
Create a pair of cost share entries, one explicit and one offset to carry forward an encumbrance after validating the
encumbrance.
|
A21SubAccountService |
getA21SubAccountService()
Gets the a21SubAccountService attribute.
|
AccountingCycleCachingService |
getAccountingCycleCachingService()
Gets the accountingCycleCachingService attribute.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute.
|
protected List<String> |
getEncumbranceBalanceTypeCodes() |
FlexibleOffsetAccountService |
getFlexibleOffsetAccountService()
Gets the flexibleOffsetAccountService attribute.
|
ObjectCodeService |
getObjectCodeService()
Gets the objectCodeService attribute.
|
OffsetDefinitionService |
getOffsetDefinitionService()
Gets the offsetDefinitionService attribute.
|
OptionsService |
getOptionsService()
Gets the optionsService attribute.
|
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Gets the parameterService attribute.
|
SubFundGroupService |
getSubFundGroupService()
Gets the subFundGroupService attribute.
|
SubObjectCodeService |
getSubObjectCodeService()
Gets the subObjectCodeService attribute.
|
boolean |
isEncumbranceClosed(Encumbrance encumbrance)
Determine whether or not the encumbrance has been fully relieved.
|
protected String |
overrideCostShareObjectCode(String levelCode,
String objectCode)
This method eases the institutional customization for Cost Sharing Object Codes for OriginEntries
|
protected PriorYearAccount |
retrievePriorYearAccount(String chartOfAccountsCode,
String accountNumber)
Retrieves a prior year account from the persistence store
|
void |
setA21SubAccountService(A21SubAccountService subAccountService)
Sets the a21SubAccountService attribute value.
|
void |
setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
Sets the accountingCycleCachingService attribute value.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.
|
void |
setFlexibleOffsetAccountService(FlexibleOffsetAccountService flexibleOffsetAccountService)
Sets the flexibleOffsetAccountService attribute value.
|
void |
setObjectCodeService(ObjectCodeService objectCodeService)
Sets the objectCodeService attribute value.
|
void |
setOffsetDefinitionService(OffsetDefinitionService offsetDefinitionService)
Sets the offsetDefinitionService attribute value.
|
void |
setOptionsService(OptionsService optionsService)
Sets the optionsService attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
void |
setSubFundGroupService(SubFundGroupService subFundGroupService)
Sets the subFundGroupService attribute value.
|
void |
setSubObjectCodeService(SubObjectCodeService subObjectCodeService)
Sets the subObjectCodeService attribute value.
|
boolean |
shouldForwardCostShareForEncumbrance(OriginEntryFull entry,
OriginEntryFull offset,
Encumbrance encumbrance,
String objectTypeCode)
Do some validation and make sure that the encumbrance A21SubAccount is a cost share sub-account.
|
boolean |
shouldForwardEncumbrance(Encumbrance encumbrance)
Determine whether or not an encumbrance should be carried forward from one fiscal year to the next.
|
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected OffsetDefinitionService offsetDefinitionService
protected ObjectCodeService objectCodeService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected FlexibleOffsetAccountService flexibleOffsetAccountService
protected A21SubAccountService a21SubAccountService
protected SubObjectCodeService subObjectCodeService
protected OptionsService optionsService
protected SubFundGroupService subFundGroupService
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected AccountingCycleCachingService accountingCycleCachingService
public EncumbranceClosingOriginEntryGenerationServiceImpl()
public OriginEntryOffsetPair createCostShareBeginningBalanceEntryOffsetPair(Encumbrance encumbrance, Date transactionDate)
EncumbranceClosingOriginEntryGenerationService
createCostShareBeginningBalanceEntryOffsetPair
in interface EncumbranceClosingOriginEntryGenerationService
encumbrance
- the encumbrance to create origin entry and offset fortransactionDate
- the date all origin entries should have as their transaction dateEncumbranceClosingOriginEntryGenerationService.createBeginningBalanceEntryOffsetPair(org.kuali.ole.gl.businessobject.Encumbrance, java.lang.Integer, java.sql.Date)
public OriginEntryOffsetPair createBeginningBalanceEntryOffsetPair(Encumbrance encumbrance, Integer closingFiscalYear, Date transactionDate)
EncumbranceClosingOriginEntryGenerationService
createBeginningBalanceEntryOffsetPair
in interface EncumbranceClosingOriginEntryGenerationService
encumbrance
- the encumbrance to create origin entries forclosingFiscalYear
- the fiscal year that's closingtransactionDate
- the transaction date these entries should haveEncumbranceClosingOriginEntryGenerationService.createCostShareBeginningBalanceEntryOffsetPair(org.kuali.ole.gl.businessobject.Encumbrance, java.sql.Date)
public boolean shouldForwardEncumbrance(Encumbrance encumbrance)
shouldForwardEncumbrance
in interface EncumbranceClosingOriginEntryGenerationService
encumbrance
- the encumbrance to qualifyprotected List<String> getEncumbranceBalanceTypeCodes()
public boolean isEncumbranceClosed(Encumbrance encumbrance)
isEncumbranceClosed
in interface EncumbranceClosingOriginEntryGenerationService
encumbrance
- the encumbrance to qualifypublic boolean shouldForwardCostShareForEncumbrance(OriginEntryFull entry, OriginEntryFull offset, Encumbrance encumbrance, String objectTypeCode) throws FatalErrorException
shouldForwardCostShareForEncumbrance
in interface EncumbranceClosingOriginEntryGenerationService
entry
- not used in this implementationoffset
- not used in this implementationencumbrance
- the encumbrance whose A21SubAccount must be qualifiedobjectTypeCode
- the object type code of the generated entriesFatalErrorException
- thrown if a given A21SubAccount, SubFundGroup, or PriorYearAccount record is not found in the databaseprotected PriorYearAccount retrievePriorYearAccount(String chartOfAccountsCode, String accountNumber)
chartOfAccountsCode
- the chart of accounts for the prior year accountaccountNumber
- the account number for the prior year accountprotected String overrideCostShareObjectCode(String levelCode, String objectCode)
levelCode
- of the originEntryobjectCode
- of the originEntrypublic org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.public OffsetDefinitionService getOffsetDefinitionService()
public void setOffsetDefinitionService(OffsetDefinitionService offsetDefinitionService)
offsetDefinitionService
- The offsetDefinitionService to set.public ObjectCodeService getObjectCodeService()
public void setObjectCodeService(ObjectCodeService objectCodeService)
objectCodeService
- The objectCodeService to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.public FlexibleOffsetAccountService getFlexibleOffsetAccountService()
public void setFlexibleOffsetAccountService(FlexibleOffsetAccountService flexibleOffsetAccountService)
flexibleOffsetAccountService
- The flexibleOffsetAccountService to set.public A21SubAccountService getA21SubAccountService()
public void setA21SubAccountService(A21SubAccountService subAccountService)
subAccountService
- The a21SubAccountService to set.public SubObjectCodeService getSubObjectCodeService()
public void setSubObjectCodeService(SubObjectCodeService subObjectCodeService)
subObjectCodeService
- The subObjectCodeService to set.public OptionsService getOptionsService()
public void setOptionsService(OptionsService optionsService)
optionsService
- The optionsService to set.public SubFundGroupService getSubFundGroupService()
public void setSubFundGroupService(SubFundGroupService subFundGroupService)
subFundGroupService
- The subFundGroupService to set.public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public AccountingCycleCachingService getAccountingCycleCachingService()
public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
accountingCycleCachingService
- The accountingCycleCachingService to set.Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.