@GET @Path("all.xml") @Produces(MediaType.TEXT_XML) @RestQuery(name = "orgsasxml", description = "Lists the organizations as xml", returnDescription = "The list of org as xml", reponses = { @RestResponse(responseCode = 200, description = "Organizations returned") }) public JaxbOrganizationList getOrganizationsAsXml() { JaxbOrganizationList organizationList = new JaxbOrganizationList(); for (Organization org : orgDirectoryService.getOrganizations()) { organizationList.add(org); } return organizationList; }
} catch (NotFoundException e) { logger.trace("No organization mapped to {}", url); List<Organization> orgs = organizationDirectory.getOrganizations(); if (orgs.size() == 1) { org = orgs.get(0);