org.kuali.kfs.coa.service.impl
Class SubFundGroupServiceImpl

java.lang.Object
  extended by org.kuali.kfs.coa.service.impl.SubFundGroupServiceImpl
All Implemented Interfaces:
SubFundGroupService

public class SubFundGroupServiceImpl
extends Object
implements SubFundGroupService

This service implementation is the default implementation of the SubFundGroup service that is delivered with Kuali.


Constructor Summary
SubFundGroupServiceImpl()
           
 
Method Summary
protected  boolean fundGroupDenotesContractsAndGrants()
          This checks to see if there is a value for checking if a Fund Group denotes Contracts and Grants
 SubFundGroup getByChartAndAccount(String chartCode, String accountNumber)
          Retrieves the SubFundGroupCode for the Account with the given chart and account codes.
 SubFundGroup getByPrimaryId(String subFundGroupCode)
          Retrieves a SubFundGroupCode by it's primary key - the sub fund group code.
 String getContractsAndGrantsDenotingAttributeLabel()
          This retrieves the attribute label for Contracts and Grants
 String getContractsAndGrantsDenotingValue(SubFundGroup subFundGroup)
          Extracts the appropriate value from the sub fund group for the C&G method selected.
 String getContractsAndGrantsDenotingValueForMessage()
          This retrieves the SubFundGroupCodes of Contracts and Grants
 List<String> getContractsAndGrantsDenotingValues()
          This check is the specified code is related to Contracts and Grants
 boolean isForContractsAndGrants(SubFundGroup subFundGroup)
          This checks to see if a particular SubFundGroup is related to Contracts and Grants through its Account
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
          Sets the dataDictionarySerivce
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          This method injects the ParameterService
 void setSubFundGroupDao(SubFundGroupDao subFundGroupDao)
          Sets the subFundGroupDao attribute values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubFundGroupServiceImpl

public SubFundGroupServiceImpl()
Method Detail

isForContractsAndGrants

public boolean isForContractsAndGrants(SubFundGroup subFundGroup)
Description copied from interface: SubFundGroupService
This checks to see if a particular SubFundGroup is related to Contracts and Grants through its Account

Specified by:
isForContractsAndGrants in interface SubFundGroupService
Returns:
true if it is for contracts and grants
See Also:
SubFundGroupService.isForContractsAndGrants(org.kuali.kfs.coa.businessobject.SubFundGroup)

getContractsAndGrantsDenotingAttributeLabel

public String getContractsAndGrantsDenotingAttributeLabel()
Description copied from interface: SubFundGroupService
This retrieves the attribute label for Contracts and Grants

Specified by:
getContractsAndGrantsDenotingAttributeLabel in interface SubFundGroupService
Returns:
string representation of Contracts and Grants label
See Also:
SubFundGroupService.getContractsAndGrantsDenotingAttributeLabel()

getContractsAndGrantsDenotingValue

public String getContractsAndGrantsDenotingValue(SubFundGroup subFundGroup)
Description copied from interface: SubFundGroupService
Extracts the appropriate value from the sub fund group for the C&G method selected.

Specified by:
getContractsAndGrantsDenotingValue in interface SubFundGroupService
Returns:
string representation of either Fund Group code or SubFund Group code
See Also:
SubFundGroupService.getContractsAndGrantsDenotingValue(org.kuali.kfs.coa.businessobject.SubFundGroup)

getContractsAndGrantsDenotingValues

public List<String> getContractsAndGrantsDenotingValues()
Description copied from interface: SubFundGroupService
This check is the specified code is related to Contracts and Grants

Specified by:
getContractsAndGrantsDenotingValues in interface SubFundGroupService
Returns:
string representation of the Contracts and Grants value
See Also:
SubFundGroupService.getContractsAndGrantsDenotingValues()

getContractsAndGrantsDenotingValueForMessage

public String getContractsAndGrantsDenotingValueForMessage()
Description copied from interface: SubFundGroupService
This retrieves the SubFundGroupCodes of Contracts and Grants

Specified by:
getContractsAndGrantsDenotingValueForMessage in interface SubFundGroupService
Returns:
string representation of Contracts and Grants value formatted for messages This method...
See Also:
SubFundGroupService.getContractsAndGrantsDenotingValueForMessage()

fundGroupDenotesContractsAndGrants

protected boolean fundGroupDenotesContractsAndGrants()
This checks to see if there is a value for checking if a Fund Group denotes Contracts and Grants

Returns:
false if there is no value

getByPrimaryId

public SubFundGroup getByPrimaryId(String subFundGroupCode)
Description copied from interface: SubFundGroupService
Retrieves a SubFundGroupCode by it's primary key - the sub fund group code.

Specified by:
getByPrimaryId in interface SubFundGroupService
Returns:
the sub fund group specfied by its code
See Also:
SubFundGroupService.getByPrimaryId(java.lang.String)

getByChartAndAccount

public SubFundGroup getByChartAndAccount(String chartCode,
                                         String accountNumber)
Description copied from interface: SubFundGroupService
Retrieves the SubFundGroupCode for the Account with the given chart and account codes.

Specified by:
getByChartAndAccount in interface SubFundGroupService
Returns:
the sub fund group specified by a chart and and account number
See Also:
SubFundGroupService.getByChartAndAccount(java.lang.String, java.lang.String)

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
This method injects the ParameterService

Parameters:
parameterService -

setSubFundGroupDao

public void setSubFundGroupDao(SubFundGroupDao subFundGroupDao)
Sets the subFundGroupDao attribute values.

Parameters:
subFundGroupDao - The subFundGroupDao to set.

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionarySerivce

Parameters:
dataDictionaryService - The dataDictionaryService implementation to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.