|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.gl.batch.service.impl.EncumbranceClosingOriginEntryGenerationServiceImpl
public class EncumbranceClosingOriginEntryGenerationServiceImpl
The default implementation of the EncumbranceClosingOriginEntryGenerationService
Constructor Summary | |
---|---|
EncumbranceClosingOriginEntryGenerationServiceImpl()
|
Method Summary | |
---|---|
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.kns.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.kns.service.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.kns.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.kns.service.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncumbranceClosingOriginEntryGenerationServiceImpl()
Method Detail |
---|
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 date
EncumbranceClosingOriginEntryGenerationService.createBeginningBalanceEntryOffsetPair(org.kuali.kfs.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 have
EncumbranceClosingOriginEntryGenerationService.createCostShareBeginningBalanceEntryOffsetPair(org.kuali.kfs.gl.businessobject.Encumbrance, java.sql.Date)
public boolean shouldForwardEncumbrance(Encumbrance encumbrance)
shouldForwardEncumbrance
in interface EncumbranceClosingOriginEntryGenerationService
encumbrance
- the encumbrance to qualify
protected List<String> getEncumbranceBalanceTypeCodes()
public boolean isEncumbranceClosed(Encumbrance encumbrance)
isEncumbranceClosed
in interface EncumbranceClosingOriginEntryGenerationService
encumbrance
- the encumbrance to qualify
public 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 entries
FatalErrorException
- 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 account
protected String overrideCostShareObjectCode(String levelCode, String objectCode)
levelCode
- of the originEntryobjectCode
- of the originEntry
public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.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.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public AccountingCycleCachingService getAccountingCycleCachingService()
public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
accountingCycleCachingService
- The accountingCycleCachingService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |