Package eu.dnetlib.openaire.community
Class SubCommunityApiController
java.lang.Object
eu.dnetlib.openaire.common.AbstractExporterController
eu.dnetlib.openaire.community.SubCommunityApiController
@RestController
@CrossOrigin(origins="*")
@ConditionalOnProperty(value="openaire.exporter.enable.community",
havingValue="true")
public class SubCommunityApiController
extends AbstractExporterController
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.dnetlib.openaire.common.AbstractExporterController
AbstractExporterController.ErrorMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddASubCommunitydvancedConstraint(String id, String subCommunityId, SelectionCriteria advancedConstraint) addCommunityDatasource(String id, String subCommunityId, CommunityDatasource datasource) addCommunityDatasourceDeposit(String id, String subCommunityId, DepositionInfo info) addCommunityDatasourcesList(String id, String subCommunityId, CommunityDatasource[] dsList) addCommunityProject(String id, String subCommunityId, CommunityProject project) addCommunityProjectList(String id, String subCommunityId, CommunityProject[] projects) addPropagationOrganizationForCommunity(String id, String subCommunityId, String organizationId, String logoUrl, String description, Boolean subscribed) addSubCommunity(String id, SubCommunity subcommunity) addSubCommunityActiveServices(String id, String subCommunityId, String[] services) addSubCommunityFOS(String id, String subCommunityId, String[] subjects) addSubCommunityList(String id, SubCommunity[] subcommunities) addSubCommunityRemoveConstraint(String id, String subCommunityId, SelectionCriteria removeConstraint) addSubCommunitySDG(String id, String subCommunityId, String[] subjects) addSubCommunitySubjects(String id, String subCommunityId, String[] subjects) addSubCommunityZenodoCommunity(String id, String subCommunityId, boolean main, String zenodocommunity) voiddeleteCommunityDatasourcesList(String id, String subCommunityId, String[] dsIdList) voiddeleteCommunityProject(String id, String subCommunityId, String projectId) voiddeleteCommunityProjectList(String id, String subCommunityId, String[] projectIdList) getCommunityDatasources(String id, String subCommunityId, Boolean deposit) getCommunityFunders(String id, String subCommunityId) org.springframework.data.domain.Page<CommunityProjectExtended>getCommunityProjects(String id, Integer page, Integer size, String subCommunityId, String funder, String searchFilter, String orderBy) getPropagationOrganizationsForCommunity(String id, String subCommunityId) getSubCommunities(String id, String subCommunityId, boolean all, String activeService) voidremoveCommunityDatasource(String id, String subCommunityId, String dsId) removePropagationOrganizationForCommunity(String id, String subCommunityId, String organizationId) voidremoveSubcommunities(String id, String[] subCommunityIdList) voidremoveSubCommunity(String id, String subCommunityId) removeSubCommunityActiveServices(String id, String subCommunityId, String[] services) removeSubCommunityAdvancedConstraint(String id, String subCommunityId) removeSubCommunityFOS(String id, String subCommunityId, String[] subjects) removeSubCommunityRemoveConstraint(String id, String subCommunityId) removeSubCommunitySDG(String id, String subCommunityId, String[] subjects) removeSubCommunitySubjects(String id, String subCommunityId, String[] subjects) removeSubCommunityZenodoCommunity(String id, String subCommunityId, boolean main, String zenodocommunity) updateSubCommunity(String id, String subCommunityId, SubCommunityWritableProperties details) Methods inherited from class eu.dnetlib.openaire.common.AbstractExporterController
handle400, handle404, handle500, prepareResponse
-
Constructor Details
-
SubCommunityApiController
public SubCommunityApiController()
-
-
Method Details
-
getSubCommunities
@GetMapping("/community/{id}/subcommunities") public List<SubCommunity> getSubCommunities(@PathVariable String id, @RequestParam(required=false) String subCommunityId, @RequestParam(required=false,defaultValue="false") boolean all, @RequestParam(required=false) String activeService) throws CommunityException - Throws:
CommunityException
-
addSubCommunity
@PostMapping("/community/{id}/subcommunities") public SubCommunity addSubCommunity(@PathVariable String id, @RequestBody SubCommunity subcommunity) throws CommunityException - Throws:
CommunityException
-
updateSubCommunity
@PostMapping("/community/{id}/subcommunities/update") public SubCommunity updateSubCommunity(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody SubCommunityWritableProperties details) throws CommunityException - Throws:
CommunityException
-
addSubCommunityList
@PostMapping("/community/{id}/subcommunitiesList") public List<SubCommunity> addSubCommunityList(@PathVariable String id, @RequestBody SubCommunity[] subcommunities) throws CommunityException - Throws:
CommunityException
-
removeSubCommunity
@DeleteMapping("/community/{id}/subcommunities") public void removeSubCommunity(@PathVariable String id, @RequestParam String subCommunityId) throws CommunityException - Throws:
CommunityException
-
removeSubcommunities
@DeleteMapping("/community/{id}/subcommunitiesList") public void removeSubcommunities(@PathVariable String id, @RequestBody String[] subCommunityIdList) throws CommunityException - Throws:
CommunityException
-
addSubCommunitySubjects
@PostMapping("/community/{id}/subcommunities/subjects") public SubCommunity addSubCommunitySubjects(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] subjects) throws CommunityException - Throws:
CommunityException
-
removeSubCommunitySubjects
@DeleteMapping("/community/{id}/subcommunities/subjects") public SubCommunity removeSubCommunitySubjects(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] subjects) throws CommunityException - Throws:
CommunityException
-
addSubCommunityFOS
@PostMapping("/community/{id}/subcommunities/fos") public SubCommunity addSubCommunityFOS(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] subjects) throws CommunityException - Throws:
CommunityException
-
removeSubCommunityFOS
@DeleteMapping("/community/{id}/subcommunities/fos") public SubCommunity removeSubCommunityFOS(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] subjects) throws CommunityException - Throws:
CommunityException
-
addSubCommunitySDG
@PostMapping("/community/{id}/subcommunities/sdg") public SubCommunity addSubCommunitySDG(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] subjects) throws CommunityException - Throws:
CommunityException
-
removeSubCommunitySDG
@DeleteMapping("/community/{id}/subcommunities/sdg") public SubCommunity removeSubCommunitySDG(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] subjects) throws CommunityException - Throws:
CommunityException
-
addASubCommunitydvancedConstraint
@PostMapping("/community/{id}/subcommunities/advancedConstraint") public SubCommunity addASubCommunitydvancedConstraint(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody SelectionCriteria advancedConstraint) throws CommunityException - Throws:
CommunityException
-
removeSubCommunityAdvancedConstraint
@DeleteMapping("/community/{id}/subcommunities/advancedConstraint") public SubCommunity removeSubCommunityAdvancedConstraint(@PathVariable String id, @RequestParam String subCommunityId) throws CommunityException - Throws:
CommunityException
-
addSubCommunityRemoveConstraint
@PostMapping("/community/{id}/subcommunities/removeConstraint") public SubCommunity addSubCommunityRemoveConstraint(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody SelectionCriteria removeConstraint) throws CommunityException - Throws:
CommunityException
-
removeSubCommunityRemoveConstraint
@DeleteMapping("/community/{id}/subcommunities/removeConstraint") public SubCommunity removeSubCommunityRemoveConstraint(@PathVariable String id, @RequestParam String subCommunityId) throws CommunityException - Throws:
CommunityException
-
addSubCommunityZenodoCommunity
@PostMapping("/community/{id}/subcommunities/zenodocommunities") public SubCommunity addSubCommunityZenodoCommunity(@PathVariable String id, @RequestParam String subCommunityId, @RequestParam(required=false,defaultValue="false") boolean main, @RequestParam String zenodocommunity) throws CommunityException - Throws:
CommunityException
-
removeSubCommunityZenodoCommunity
@DeleteMapping("/community/{id}/subcommunities/zenodocommunities") public SubCommunity removeSubCommunityZenodoCommunity(@PathVariable String id, @RequestParam String subCommunityId, @RequestParam(required=false,defaultValue="false") boolean main, @RequestParam String zenodocommunity) throws CommunityException - Throws:
CommunityException
-
getCommunityProjects
@GetMapping("/community/{id}/subcommunities/projects/{page}/{size}") public org.springframework.data.domain.Page<CommunityProjectExtended> getCommunityProjects(@PathVariable String id, @PathVariable Integer page, @PathVariable Integer size, @RequestParam(required=false) String subCommunityId, @RequestParam(required=false) String funder, @RequestParam(required=false) String searchFilter, @RequestParam(required=false) String orderBy) throws CommunityException - Throws:
CommunityException
-
addCommunityProject
@PostMapping("/community/{id}/subcommunities/projects") public CommunityProject addCommunityProject(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody CommunityProject project) throws CommunityException - Throws:
CommunityException
-
deleteCommunityProject
@DeleteMapping("/community/{id}/subcommunities/projects") public void deleteCommunityProject(@PathVariable String id, @RequestParam String subCommunityId, @RequestParam String projectId) throws CommunityException - Throws:
CommunityException
-
addCommunityProjectList
@PostMapping("/community/{id}/subcommunities/projectList") public CommunityProject[] addCommunityProjectList(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody CommunityProject[] projects) throws CommunityException - Throws:
CommunityException
-
deleteCommunityProjectList
@DeleteMapping("/community/{id}/subcommunities/projectList") public void deleteCommunityProjectList(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] projectIdList) throws CommunityException - Throws:
CommunityException
-
getCommunityFunders
@GetMapping("/community/{id}/subcommunities/funders") public List<String> getCommunityFunders(@PathVariable String id, @RequestParam String subCommunityId) throws CommunityException - Throws:
CommunityException
-
getCommunityDatasources
@GetMapping("/community/{id}/subcommunities/datasources") public List<CommunityDatasourceExtended> getCommunityDatasources(@PathVariable String id, @RequestParam String subCommunityId, @RequestParam(required=false) Boolean deposit) throws CommunityException - Throws:
CommunityException
-
addCommunityDatasource
@PostMapping("/community/{id}/subcommunities/datasources") public CommunityDatasourceExtended addCommunityDatasource(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody CommunityDatasource datasource) throws CommunityException - Throws:
CommunityException
-
addCommunityDatasourceDeposit
@PostMapping("/community/{id}/subcommunities/datasources/deposit") public CommunityDatasourceExtended addCommunityDatasourceDeposit(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody DepositionInfo info) throws CommunityException - Throws:
CommunityException
-
removeCommunityDatasource
@DeleteMapping("/community/{id}/subcommunities/datasources") public void removeCommunityDatasource(@PathVariable String id, @RequestParam String subCommunityId, @RequestParam String dsId) throws CommunityException - Throws:
CommunityException
-
addCommunityDatasourcesList
@PostMapping("/community/{id}/subcommunities/datasourcesList") public List<CommunityDatasourceExtended> addCommunityDatasourcesList(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody CommunityDatasource[] dsList) throws CommunityException - Throws:
CommunityException
-
deleteCommunityDatasourcesList
@DeleteMapping("/community/{id}/subcommunities/datasourcesList") public void deleteCommunityDatasourcesList(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] dsIdList) throws CommunityException - Throws:
CommunityException
-
getPropagationOrganizationsForCommunity
@GetMapping("/community/{id}/subcommunities/propagationOrganizations") public Set<CommunityPropagationOrganization> getPropagationOrganizationsForCommunity(@PathVariable String id, @RequestParam String subCommunityId) throws CommunityException - Throws:
CommunityException
-
addPropagationOrganizationForCommunity
@PostMapping("/community/{id}/subcommunities/propagationOrganizations") public Set<CommunityPropagationOrganization> addPropagationOrganizationForCommunity(@PathVariable String id, @RequestParam String subCommunityId, @RequestParam String organizationId, @RequestParam(required=false) String logoUrl, @RequestParam(required=false) String description, @RequestParam(required=false) Boolean subscribed) throws CommunityException - Throws:
CommunityException
-
removePropagationOrganizationForCommunity
@DeleteMapping("/community/{id}/subcommunities/propagationOrganizations") public Set<CommunityPropagationOrganization> removePropagationOrganizationForCommunity(@PathVariable String id, @RequestParam String subCommunityId, @RequestParam String organizationId) throws CommunityException - Throws:
CommunityException
-
addSubCommunityActiveServices
@PostMapping("/community/{id}/subcommunities/activeServices") public SubCommunity addSubCommunityActiveServices(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] services) throws CommunityException - Throws:
CommunityException
-
removeSubCommunityActiveServices
@DeleteMapping("/community/{id}/subcommunities/activeServices") public SubCommunity removeSubCommunityActiveServices(@PathVariable String id, @RequestParam String subCommunityId, @RequestBody String[] services) throws CommunityException - Throws:
CommunityException
-