Class OrganizationController
java.lang.Object
eu.dnetlib.common.controller.AbstractDnetController
eu.dnetlib.organizations.controller.OrganizationController
@RestController
@RequestMapping("/api/organizations")
public class OrganizationController
extends AbstractDnetController
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.dnetlib.common.controller.AbstractDnetController
AbstractDnetController.ErrorMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<OrganizationSearchEntry>advSearch(int page, int size, String orderBy, boolean reverse, String[] all, String[] id, String[] openaireId, String[] name, String[] othername, String[] acronym, String[] type, String[] city, String[] country, String[] pid, String[] status, org.springframework.security.core.Authentication authentication) browseCountries(org.springframework.security.core.Authentication authentication) browseOrganizationTypes(org.springframework.security.core.Authentication authentication) duplicates(String id, org.springframework.security.core.Authentication authentication) duplicates(List<OpenaireDuplicate> simrels, org.springframework.security.core.Authentication authentication) org.springframework.data.domain.Page<OrganizationSearchEntry>findByCountry(String status, String code, int page, int size, String orderBy, boolean reverse, org.springframework.security.core.Authentication authentication) org.springframework.data.domain.Page<OrganizationSearchEntry>findByType(String status, String type, int page, int size, String orderBy, boolean reverse, org.springframework.security.core.Authentication authentication) findConflictsByCountry(String country, org.springframework.security.core.Authentication authentication) findDuplicatesByCountry(String country, int page, int size, org.springframework.security.core.Authentication authentication) voidfindDuplicatesByCountryCSV(String country, javax.servlet.http.HttpServletResponse res, org.springframework.security.core.Authentication authentication) findOrgsByStatusAndCountry(String status, String code, int page, int size, String orderBy, boolean reverse, org.springframework.security.core.Authentication authentication) voidfindOrgsByStatusAndCountryCSV(String status, String code, String orderBy, boolean reverse, javax.servlet.http.HttpServletResponse res, org.springframework.security.core.Authentication authentication) findRelationsByCountry(String country, int page, int size, org.springframework.security.core.Authentication authentication) fixConflictDiff(org.springframework.security.core.Authentication authentication, List<String> ids) fixConflictSim(org.springframework.security.core.Authentication authentication, List<String> ids) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) journalEntriesById(String id, org.springframework.security.core.Authentication authentication) relation(List<RelationshipView> rels, org.springframework.security.core.Authentication authentication) save(OrganizationView org, org.springframework.security.core.Authentication authentication) org.springframework.data.domain.Page<OrganizationSearchEntry>search(int page, int size, String status, String orderBy, boolean reverse, String q, org.springframework.security.core.Authentication authentication) suggestionsInfo(org.springframework.security.core.Authentication authentication) Methods inherited from class eu.dnetlib.common.controller.AbstractDnetController
handleException
-
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
-
fixConflictDiff
-
noteById
-
saveNote
-
journalEntriesById
@GetMapping("/journal") public List<JournalEntry> journalEntriesById(@RequestParam String id, org.springframework.security.core.Authentication authentication)
-