public interface OrganizationService
Modifier and Type | Method and Description |
---|---|
void |
flushParentOrgCache()
Flushes an internal cache used to resolve parent organizations.
|
List<Account> |
getActiveAccountsByOrg(String chartOfAccountsCode,
String organizationCode)
Retrieves a List of Accounts that are active, and are tied to this Org.
|
List<Organization> |
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)
Method is used by KualiOrgReviewAttribute to enable caching of orgs for routing.
|
String[] |
getRootOrganizationCode()
returns the chart and organization of the ACTIVE root-level organization
|
boolean |
isParentOrganization(String potentialChildChartCode,
String potentialChildOrganizationCode,
String potentialParentChartCode,
String potentialParentOrganizationCode)
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
|
Organization getByPrimaryId(String chartOfAccountsCode, String organizationCode)
chartOfAccountsCode
- organizationCode
- Organization getByPrimaryIdWithCaching(String chartOfAccountsCode, String organizationCode)
List<Account> getActiveAccountsByOrg(String chartOfAccountsCode, String organizationCode)
chartOfAccountsCode
- - chartCode for the Org you want Accounts fororganizationCode
- - orgCode for the Org you want Accounts forList<Organization> getActiveChildOrgs(String chartOfAccountsCode, String organizationCode)
chartOfAccountsCode
- - chartCode for the Org you want Child Orgs fororganizationCode
- - orgCode for the Org you want Child Orgs forList<Organization> getActiveOrgsByType(String organizationTypeCode)
organizationTypeCode
- List<Organization> getActiveFinancialOrgs()
String[] getRootOrganizationCode()
boolean isParentOrganization(String potentialChildChartCode, String potentialChildOrganizationCode, String potentialParentChartCode, String potentialParentOrganizationCode)
potentialChildChartCode
- potentialChildOrganizationCode
- potentialParentChartCode
- potentialParentOrganizationCode
- void flushParentOrgCache()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.