public class BankServiceImpl extends Object implements BankService
BankService
interface.org.kuali.ole.fp.service.BankService
Modifier and Type | Field and Description |
---|---|
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService |
protected ParameterEvaluatorService |
parameterEvaluatorService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
PERMANENT_BANK_SPECIFICATION_ENABLED_DOCUMENT_TYPES
Constructor and Description |
---|
BankServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Bank |
getByPrimaryId(String bankCode)
Retrieves a bank object who's primary id matches the values provided.
|
Bank |
getDefaultBankByDocType(Class<?> documentClass)
Retrieves the default bank code for the given document type from system parameter.
|
Bank |
getDefaultBankByDocType(String documentTypeCode)
Retrieves the default bank code for the given document type from system parameter.
|
boolean |
isBankSpecificationEnabled()
Determines if the bank specification is enabled in the system by system parameter.
|
boolean |
isBankSpecificationEnabledForDocument(Class<?> documentClass)
Determines if the bank specification is enabled for the given document by a) the document being one of the permanent
bank code documents (AD's, CMD's, and ND's) or by the document being listed in the KFS-SYS / Bank / BANK_CODE_DOCUMENT_TYPES parameter
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService) |
void |
setParameterEvaluatorService(ParameterEvaluatorService parameterEvaluatorService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected ParameterEvaluatorService parameterEvaluatorService
public BankServiceImpl()
@Cacheable(value="OLE/Bank", key="\'bankCode=\'+#p0") public Bank getByPrimaryId(String bankCode)
BankService
getByPrimaryId
in interface BankService
bankCode
- The bank code to be looked up by.org.kuali.ole.fp.service.BankService#getByPrimaryId(java.lang.String)
@Cacheable(value="OLE/Bank", key="\'DefaultByDocType-\'+#p0") public Bank getDefaultBankByDocType(String documentTypeCode)
BankService
getDefaultBankByDocType
in interface BankService
documentTypeCode
- the document type codeBank
object retrieved by default bank codeBankService.getDefaultBankByDocType(java.lang.String)
@Cacheable(value="OLE/Bank", key="\'DefaultByDocClass-\'+#p0") public Bank getDefaultBankByDocType(Class<?> documentClass)
BankService
getDefaultBankByDocType
in interface BankService
documentClass
- Class
for the document typeBank
object retrieved by default bank codeBankService.getDefaultBankByDocType(java.lang.Class)
@Cacheable(value="OLE/Bank", key="\'isBankSpecificationEnabled\'") public boolean isBankSpecificationEnabled()
BankService
isBankSpecificationEnabled
in interface BankService
BankService.isBankSpecificationEnabled()
@Cacheable(value="OLE/Bank", key="\'isBankSpecificationEnabled\'+#p0") public boolean isBankSpecificationEnabledForDocument(Class<?> documentClass)
BankService
isBankSpecificationEnabledForDocument
in interface BankService
documentClass
- the class of the document to determine if it has bank specifications enabledBankService.isBankSpecificationEnabledForDocument(java.lang.Class)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public void setParameterEvaluatorService(ParameterEvaluatorService parameterEvaluatorService)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.