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

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

public class OrganizationServiceImpl
extends Object
implements OrganizationService

This class is the service implementation for the Org structure. This is the default implementation, that is delivered with Kuali.


Constructor Summary
OrganizationServiceImpl()
           
 
Method Summary
 List getActiveAccountsByOrg(String chartOfAccountsCode, String organizationCode)
          Retrieves a List of Accounts that are active, and are tied to this Org.
 List getActiveChildOrgs(String chartOfAccountsCode, String organizationCode)
          Retrieves a List of Orgs that are active, and that ReportTo this Org If there are no Orgs that meet this criteria, an empty list will be returned.
 List<Organization> getActiveFinancialOrgs()
          Returns a list of active financial processing organizations.
 List<Organization> getActiveOrgsByType(String organizationTypeCode)
          Returns a list of active organizations with the given organization type code.
 Organization getByPrimaryId(String chartOfAccountsCode, String organizationCode)
          This method retrieves an organization instance by its composite primary keys (parameters passed in).
 Organization getByPrimaryIdWithCaching(String chartOfAccountsCode, String organizationCode)
          Implements the getByPrimaryId method defined by OrganizationService.
 ChartService getChartService()
           
 OrganizationDao getOrganizationDao()
           
 String[] getRootOrganizationCode()
          returns the chart and organization of the ACTIVE root-level organization
 boolean isParentOrganization(String childChartOfAccountsCode, String childOrganizationCode, String parentChartOfAccountsCode, String parentOrganizationCode)
          This method traverses the hierarchy to see if the organization represented by the potentialChildChartCode and potentialChildOrganizationCode reports to the organization represented by the potentialParentChartCode and potentialParentOrganizationCode
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService boService)
          Sets the boService attribute value.
 void setChartService(ChartService chartService)
           
 void setOrganizationDao(OrganizationDao organizationDao)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationServiceImpl

public OrganizationServiceImpl()
Method Detail

getByPrimaryId

public Organization getByPrimaryId(String chartOfAccountsCode,
                                   String organizationCode)
Description copied from interface: OrganizationService
This method retrieves an organization instance by its composite primary keys (parameters passed in).

Specified by:
getByPrimaryId in interface OrganizationService
Returns:
An Org instance.
See Also:
OrganizationService.getByPrimaryId(java.lang.String, java.lang.String)

getByPrimaryIdWithCaching

public Organization getByPrimaryIdWithCaching(String chartOfAccountsCode,
                                              String organizationCode)
Implements the getByPrimaryId method defined by OrganizationService. Method is used by KualiOrgReviewAttribute to enable caching of orgs for routing.

Specified by:
getByPrimaryIdWithCaching in interface OrganizationService
See Also:
getByPrimaryId(java.lang.String, java.lang.String)

getActiveAccountsByOrg

public List getActiveAccountsByOrg(String chartOfAccountsCode,
                                   String organizationCode)
Description copied from interface: OrganizationService
Retrieves a List of Accounts that are active, and are tied to this Org. If there are no Accounts that meet this criteria, an empty list will be returned.

Specified by:
getActiveAccountsByOrg in interface OrganizationService
Parameters:
chartOfAccountsCode - - chartCode for the Org you want Accounts for
organizationCode - - orgCode for the Org you want Accounts for
Returns:
A List of Accounts that are active, and tied to this Org
See Also:
OrganizationService.getActiveAccountsByOrg(java.lang.String, java.lang.String)

getActiveChildOrgs

public List getActiveChildOrgs(String chartOfAccountsCode,
                               String organizationCode)
Description copied from interface: OrganizationService
Retrieves a List of Orgs that are active, and that ReportTo this Org If there are no Orgs that meet this criteria, an empty list will be returned.

Specified by:
getActiveChildOrgs in interface OrganizationService
Parameters:
chartOfAccountsCode - - chartCode for the Org you want Child Orgs for
organizationCode - - orgCode for the Org you want Child Orgs for
Returns:
A List of Orgs that are active, and report to this Org
See Also:
OrganizationService.getActiveChildOrgs(java.lang.String, java.lang.String)

isParentOrganization

public boolean isParentOrganization(String childChartOfAccountsCode,
                                    String childOrganizationCode,
                                    String parentChartOfAccountsCode,
                                    String parentOrganizationCode)
Description copied from interface: OrganizationService
This method traverses the hierarchy to see if the organization represented by the potentialChildChartCode and potentialChildOrganizationCode reports to the organization represented by the potentialParentChartCode and potentialParentOrganizationCode

Specified by:
isParentOrganization in interface OrganizationService
Returns:
boolean indicating whether the organization represented by the first two parameters reports to one represented by the last two parameters

getActiveOrgsByType

public List<Organization> getActiveOrgsByType(String organizationTypeCode)
Description copied from interface: OrganizationService
Returns a list of active organizations with the given organization type code.

Specified by:
getActiveOrgsByType in interface OrganizationService
Returns:
See Also:
OrganizationService.getActiveOrgsByType(java.lang.String)

getActiveFinancialOrgs

public List<Organization> getActiveFinancialOrgs()
Description copied from interface: OrganizationService
Returns a list of active financial processing organizations.

Specified by:
getActiveFinancialOrgs in interface OrganizationService
Returns:
A List of Orgs that are active and financial processing.
See Also:
OrganizationService.getActiveFinancialOrgs()

getRootOrganizationCode

public String[] getRootOrganizationCode()
Description copied from interface: OrganizationService
returns the chart and organization of the ACTIVE root-level organization

Specified by:
getRootOrganizationCode in interface OrganizationService
See Also:
OrganizationService.getRootOrganizationCode()

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

getChartService

public ChartService getChartService()

setChartService

public void setChartService(ChartService chartService)

getOrganizationDao

public OrganizationDao getOrganizationDao()
Returns:
Returns the organizationDao.

setOrganizationDao

public void setOrganizationDao(OrganizationDao organizationDao)
Parameters:
organizationDao - The organizationDao to set.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService boService)
Sets the boService attribute value.

Parameters:
boService - The boService to set.


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