use of com.autentia.tnt.businessobject.OrganizationType in project TNTConcept by autentia.
the class OrganizationManager method getProvidersAndClients.
public List<Organization> getProvidersAndClients() {
OrganizationTypeDAO orgTypeDao = OrganizationTypeDAO.getDefault();
OrganizationType provider = orgTypeDao.loadById(ConfigurationUtil.getDefault().getOrganizationTypeProvider());
OrganizationType providerCient = orgTypeDao.loadById(ConfigurationUtil.getDefault().getOrganizationTypeProviderAndClient());
List<Organization> lista = new ArrayList<Organization>();
List<Organization> orgs = organizationDAO.searchByOrganizationTypes(new SortCriteria("name"), provider, providerCient);
for (Organization org : orgs) {
lista.add(org);
}
return lista;
}
Aggregations