@Override public List<Organization> retrieveAll() throws AppException { ScrOrganization scrOrganization = new ScrOrganization(); List<ScrOrganization> scrOrganizations = organizationDao.findByExample(scrOrganization); List<Organization> organizations = new ArrayList<Organization>(); for (ScrOrganization scrOrganization2 : scrOrganizations) { organizations.add(scrOrgToOrgMapper.map(scrOrganization2)); } return organizations; }
@Override public Organization retrieveById(String id) throws AppException { ScrOrganization scrOrganization = organizationDao.findById(id); Organization organization = scrOrgToOrgMapper.map(scrOrganization); return organization; }
@Override public void delete(Organization data) throws AppException { ScrOrganization scrOrganization = orgToScrOrgMapper.map(data); organizationDao.delete(scrOrganization); }