public class FlexibleOffsetAccountServiceImpl extends Object implements FlexibleOffsetAccountService
Constructor and Description |
---|
FlexibleOffsetAccountServiceImpl() |
Modifier and Type | Method and Description |
---|---|
OffsetAccount |
getByPrimaryIdIfEnabled(String chartOfAccountsCode,
String accountNumber,
String financialOffsetObjectCode)
This method uses the parameters provided to retrieve an OffsetAccount instance if the flexible offset account flag is
enabled.
|
boolean |
getEnabled()
This method queries the parameter table to retrieve the value of the flexible offset flag and returns the resulting value.
|
protected boolean |
isExpired(Account account,
Calendar runCalendar)
This method determines if an account has expired.
|
void |
setAccountService(AccountService accountService)
Sets the local accountService attribute.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the local businessObjectService attribute.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the local dateTimeService attribute.
|
void |
setObjectCodeService(ObjectCodeService objectCodeService)
Sets the local objectCodeService attribute.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the local parameterService attribute.
|
boolean |
updateOffset(FlexibleAccountUpdateable transaction)
This method modifies the origin entry provided with values from the associated flexible offset account, which is
retrieved from the database using values provided by the origin entry.
|
public FlexibleOffsetAccountServiceImpl()
public OffsetAccount getByPrimaryIdIfEnabled(String chartOfAccountsCode, String accountNumber, String financialOffsetObjectCode)
getByPrimaryIdIfEnabled
in interface FlexibleOffsetAccountService
chartOfAccountsCode
- The chart code used to retrieve the flexible offset account.accountNumber
- The account number of the flexible offset account being retrieved.financialOffsetObjectCode
- The offset object code used to retrieve the offset account.FlexibleOffsetAccountService.getByPrimaryIdIfEnabled(java.lang.String, java.lang.String, java.lang.String)
public boolean getEnabled()
getEnabled
in interface FlexibleOffsetAccountService
FlexibleOffsetAccountService.getEnabled()
public boolean updateOffset(FlexibleAccountUpdateable transaction)
updateOffset
in interface FlexibleOffsetAccountService
originEntry
- The origin entry to be updated with offset account details.org.kuali.ole.sys.service.FlexibleOffsetAccountService#updateOffset(org.kuali.ole.gl.businessobject.OriginEntryFull)
protected boolean isExpired(Account account, Calendar runCalendar)
account
- The account to be examined.runCalendar
- The date the expiration date is tested against.public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The DateTimeService instance to be set.public void setAccountService(AccountService accountService)
accountService
- The AccountService instance to be set.public void setObjectCodeService(ObjectCodeService objectCodeService)
objectCodeService
- The ObjectCodeService instance to be set.public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The BusinessObjectService instance to be set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The ParameterService instance to be set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.