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

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

public class ChartServiceImpl
extends Object
implements ChartService

This class is the service implementation for the Chart structure. This is the default, Kuali delivered implementation.


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
ChartServiceImpl()
           
 
Method Summary
 List<String> getAllChartCodes()
          Retrieves all of the charts in the system and returns them in a List.
 Chart getByPrimaryId(String chartOfAccountsCode)
          Retrieves a chart object by its primary key - the chart code.
 ChartDao getChartDao()
           
 org.kuali.rice.kim.bo.Person getChartManager(String chartOfAccountsCode)
          Returns the chart manager form KIM for the given chart code
 List getChartsThatUserIsResponsibleFor(org.kuali.rice.kim.bo.Person person)
          Retrieves a list of chart objects that the User is responsible for
protected  org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
           
 Map<String,String> getReportsToHierarchy()
          Retrieves a map of reportsTo relationships (e.g.
 org.kuali.rice.kim.service.RoleManagementService getRoleManagementService()
          Gets the roleManagementService attribute.
 Chart getUniversityChart()
          This method returns the university chart
 boolean isParentChart(String potentialChildChartCode, String potentialParentChartCode)
          This method traverses the hierarchy to see if the potentialChildChartCode reports to the potentialParentChartCode
 void setChartDao(ChartDao chartDao)
           
 void setRoleManagementService(org.kuali.rice.kim.service.RoleManagementService roleManagementService)
          Sets the roleManagementService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

ChartServiceImpl

public ChartServiceImpl()
Method Detail

getByPrimaryId

public Chart getByPrimaryId(String chartOfAccountsCode)
Description copied from interface: ChartService
Retrieves a chart object by its primary key - the chart code.

Specified by:
getByPrimaryId in interface ChartService
Returns:
See Also:
ChartService.getByPrimaryId(java.lang.String)

getUniversityChart

public Chart getUniversityChart()
Description copied from interface: ChartService
This method returns the university chart

Specified by:
getUniversityChart in interface ChartService
Returns:
See Also:
ChartService.getUniversityChart()

getAllChartCodes

public List<String> getAllChartCodes()
Description copied from interface: ChartService
Retrieves all of the charts in the system and returns them in a List.

Specified by:
getAllChartCodes in interface ChartService
Returns:
A List of chart codes.
See Also:
ChartService.getAllChartCodes()

getReportsToHierarchy

public Map<String,String> getReportsToHierarchy()
Description copied from interface: ChartService
Retrieves a map of reportsTo relationships (e.g. A reports to B, B reports to B, C reports to A)

Specified by:
getReportsToHierarchy in interface ChartService
Returns:
See Also:
org.kuali.module.chart.service.getReportsToHierarchy()

getChartsThatUserIsResponsibleFor

public List getChartsThatUserIsResponsibleFor(org.kuali.rice.kim.bo.Person person)
Description copied from interface: ChartService
Retrieves a list of chart objects that the User is responsible for

Specified by:
getChartsThatUserIsResponsibleFor in interface ChartService
Returns:
See Also:
org.kuali.kfs.coa.service.ChartService#getChartsThatUserIsResponsibleFor(org.kuali.rice.kns.bo.user.KualiUser)

isParentChart

public boolean isParentChart(String potentialChildChartCode,
                             String potentialParentChartCode)
Description copied from interface: ChartService
This method traverses the hierarchy to see if the potentialChildChartCode reports to the potentialParentChartCode

Specified by:
isParentChart in interface ChartService
Returns:
boolean indicating whether the first parameter reports to the second

getChartManager

public org.kuali.rice.kim.bo.Person getChartManager(String chartOfAccountsCode)
Description copied from interface: ChartService
Returns the chart manager form KIM for the given chart code

Specified by:
getChartManager in interface ChartService
Parameters:
chartOfAccountsCode - chart code to get manager for
Returns:
chart manager Person
See Also:
ChartService.getChartManager(java.lang.String)

getChartDao

public ChartDao getChartDao()
Returns:
Returns the chartDao.

setChartDao

public void setChartDao(ChartDao chartDao)
Parameters:
chartDao - The chartDao to set.

getRoleManagementService

public org.kuali.rice.kim.service.RoleManagementService getRoleManagementService()
Gets the roleManagementService attribute.

Returns:
Returns the roleManagementService.

setRoleManagementService

public void setRoleManagementService(org.kuali.rice.kim.service.RoleManagementService roleManagementService)
Sets the roleManagementService attribute value.

Parameters:
roleManagementService - The roleManagementService to set.

getPersonService

protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
Returns:
Returns the personService.


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