org.kuali.kfs.coa.dataaccess
Interface OrganizationDao

All Known Implementing Classes:
OrganizationDaoOjb

public interface OrganizationDao

This interface defines data access methods for Org


Method Summary
 List getActiveAccountsByOrg(String chartOfAccountsCode, String organizationCode)
          This method retrieves a list of active Orgs defined by their chart and organization code
 List getActiveChildOrgs(String chartOfAccountsCode, String organizationCode)
          This method retrieves a list of active child Orgs based on their parent's organization code and chart code
 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 a Org based on primary keys
 String[] getRootOrganizationCode(String rootChart, String selfReportsOrgTypeCode)
          This method retrieves a list of root organization codes (as a string array) based on their root chart and reports to org type code
 void save(Organization organization)
          This method saves a specific Org
 

Method Detail

getByPrimaryId

Organization getByPrimaryId(String chartOfAccountsCode,
                            String organizationCode)
This method retrieves a Org based on primary keys

Parameters:
chartOfAccountsCode -
organizationCode -
Returns:
an Org based on primary keys

save

void save(Organization organization)
This method saves a specific Org

Parameters:
organization -

getActiveAccountsByOrg

List getActiveAccountsByOrg(String chartOfAccountsCode,
                            String organizationCode)
This method retrieves a list of active Orgs defined by their chart and organization code

Parameters:
chartOfAccountsCode -
organizationCode -
Returns:
a list of active Orgs by chart and organization code

getActiveChildOrgs

List getActiveChildOrgs(String chartOfAccountsCode,
                        String organizationCode)
This method retrieves a list of active child Orgs based on their parent's organization code and chart code

Parameters:
chartOfAccountsCode -
organizationCode -
Returns:
a list of active Orgs by their parent's chart and organization code

getActiveOrgsByType

List<Organization> getActiveOrgsByType(String organizationTypeCode)
Returns a list of active organizations with the given organization type code.

Parameters:
organizationType -
Returns:
a list of active Orgs based on their organization type code

getRootOrganizationCode

String[] getRootOrganizationCode(String rootChart,
                                 String selfReportsOrgTypeCode)
This method retrieves a list of root organization codes (as a string array) based on their root chart and reports to org type code

Parameters:
rootChart -
selfReportsOrgTypeCode -
Returns:
a string array of root org codes based on root chart and reports to org type code


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