Class OrganizationController

java.lang.Object
eu.dnetlib.common.controller.AbstractDnetController
eu.dnetlib.organizations.controller.OrganizationController

@RestController @RequestMapping("/api/organizations") public class OrganizationController extends AbstractDnetController
  • Constructor Details

    • OrganizationController

      public OrganizationController()
  • Method Details

    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
    • save

      @PostMapping("/save") public List<String> save(@RequestBody OrganizationView org, org.springframework.security.core.Authentication authentication)
    • infoById

      @GetMapping("/info") public OrganizationInfoView infoById(@RequestParam String id, org.springframework.security.core.Authentication authentication)
    • suggestionsInfo

      @GetMapping("/suggestionsInfo") public SuggestionInfo suggestionsInfo(org.springframework.security.core.Authentication authentication)
    • findById

      @GetMapping("/get") public OrganizationView findById(@RequestParam String id, org.springframework.security.core.Authentication authentication)
    • conflicts

      @GetMapping("/conflicts") public List<OrganizationConflict> conflicts(@RequestParam String id, org.springframework.security.core.Authentication authentication)
    • duplicates

      @GetMapping("/duplicates") public List<OpenaireDuplicateView> duplicates(@RequestParam String id, org.springframework.security.core.Authentication authentication)
    • findConflictsByCountry

      @GetMapping("/conflicts/byCountry/{country}") public Collection<Set<OrganizationConflict>> findConflictsByCountry(@PathVariable String country, org.springframework.security.core.Authentication authentication)
    • findDuplicatesByCountry

      @GetMapping("/duplicates/byCountry/{country}") public Iterable<DuplicateGroupView> findDuplicatesByCountry(@PathVariable String country, @RequestParam(required=false,defaultValue="0") int page, @RequestParam(required=false,defaultValue="${openorgs.findDuplicatesByCountry.limit.default}") int size, org.springframework.security.core.Authentication authentication)
    • findDuplicatesByCountryCSV

      @GetMapping(value="/duplicates/byCountry/{country}/csv", produces="text/csv") public void findDuplicatesByCountryCSV(@PathVariable String country, javax.servlet.http.HttpServletResponse res, org.springframework.security.core.Authentication authentication) throws IOException
      Throws:
      IOException
    • relations

      @GetMapping("/relations") public List<RelationshipView> relations(@RequestParam String id, org.springframework.security.core.Authentication authentication)
    • findRelationsByCountry

      @GetMapping("/relations/byCountry/{country}") public Iterable<RelationGroupView> findRelationsByCountry(@PathVariable String country, @RequestParam(required=false,defaultValue="0") int page, @RequestParam(required=false,defaultValue="${openorgs.findRelationsByCountry.limit.default}") int size, org.springframework.security.core.Authentication authentication)
    • duplicates

      @PostMapping("/duplicates") public List<OpenaireDuplicateView> duplicates(@RequestBody List<OpenaireDuplicate> simrels, org.springframework.security.core.Authentication authentication)
    • relation

      @PostMapping("/relations") public List<RelationshipView> relation(@RequestBody List<RelationshipView> rels, org.springframework.security.core.Authentication authentication)
    • search

      @GetMapping("/search/{page}/{size}") public org.springframework.data.domain.Page<OrganizationSearchEntry> search(@PathVariable int page, @PathVariable int size, @RequestParam(required=false,defaultValue="") String status, @RequestParam(required=false,defaultValue="name") String orderBy, @RequestParam(required=false,defaultValue="false") boolean reverse, @RequestParam(required=true) String q, org.springframework.security.core.Authentication authentication) throws IOException
      Throws:
      IOException
    • advSearch

      @GetMapping("/advSearch/{page}/{size}") public org.springframework.data.domain.Page<OrganizationSearchEntry> advSearch(@PathVariable int page, @PathVariable int size, @RequestParam(required=false,defaultValue="name") String orderBy, @RequestParam(required=false,defaultValue="false") boolean reverse, @RequestParam(required=false) String[] all, @RequestParam(required=false) String[] id, @RequestParam(required=false) String[] openaireId, @RequestParam(required=false) String[] name, @RequestParam(required=false) String[] othername, @RequestParam(required=false) String[] acronym, @RequestParam(required=false) String[] type, @RequestParam(required=false) String[] city, @RequestParam(required=false) String[] country, @RequestParam(required=false) String[] pid, @RequestParam(required=false) String[] status, org.springframework.security.core.Authentication authentication) throws IOException
      Throws:
      IOException
    • findByCountry

      @GetMapping("/byCountry/{status}/{code}/{page}/{size}") public org.springframework.data.domain.Page<OrganizationSearchEntry> findByCountry(@PathVariable String status, @PathVariable String code, @PathVariable int page, @PathVariable int size, @RequestParam(required=false,defaultValue="name") String orderBy, @RequestParam(required=false,defaultValue="false") boolean reverse, org.springframework.security.core.Authentication authentication)
    • findOrgsByStatusAndCountry

      @GetMapping("/byCountry/{status}/{code}") public List<OrganizationSearchEntry> findOrgsByStatusAndCountry(@PathVariable String status, @PathVariable String code, @RequestParam(required=false,defaultValue="0") int page, @RequestParam(required=false,defaultValue="${openorgs.findOrgsByStatusAndCountry.limit.default}") int size, @RequestParam(required=false,defaultValue="name") String orderBy, @RequestParam(required=false,defaultValue="false") boolean reverse, org.springframework.security.core.Authentication authentication)
    • findOrgsByStatusAndCountryCSV

      @GetMapping(value="/byCountry/{status}/{code}/csv", produces="text/csv") public void findOrgsByStatusAndCountryCSV(@PathVariable String status, @PathVariable String code, @RequestParam(required=false,defaultValue="name") String orderBy, @RequestParam(required=false,defaultValue="false") boolean reverse, javax.servlet.http.HttpServletResponse res, org.springframework.security.core.Authentication authentication) throws IOException
      Throws:
      IOException
    • findByType

      @GetMapping("/byType/{status}/{type}/{page}/{size}") public org.springframework.data.domain.Page<OrganizationSearchEntry> findByType(@PathVariable String status, @PathVariable String type, @PathVariable int page, @PathVariable int size, @RequestParam(required=false,defaultValue="name") String orderBy, @RequestParam(required=false,defaultValue="false") boolean reverse, org.springframework.security.core.Authentication authentication)
    • browseCountries

      @GetMapping("/browse/countries") public List<BrowseEntry> browseCountries(org.springframework.security.core.Authentication authentication)
    • browseOrganizationTypes

      @GetMapping("/browse/types") public List<BrowseEntry> browseOrganizationTypes(org.springframework.security.core.Authentication authentication)
    • fixConflictSim

      @PostMapping("/conflicts/fix/similar") public List<String> fixConflictSim(org.springframework.security.core.Authentication authentication, @RequestBody List<String> ids)
    • fixConflictDiff

      @PostMapping("/conflicts/fix/different") public List<String> fixConflictDiff(org.springframework.security.core.Authentication authentication, @RequestBody List<String> ids)
    • noteById

      @GetMapping("/note") public Note noteById(@RequestParam String id, org.springframework.security.core.Authentication authentication)
    • saveNote

      @PostMapping("/note") public Note saveNote(@RequestBody Note note, org.springframework.security.core.Authentication authentication)
    • journalEntriesById

      @GetMapping("/journal") public List<JournalEntry> journalEntriesById(@RequestParam String id, org.springframework.security.core.Authentication authentication)