@RestController @CrossOrigin(origins="*") public class CuratorController extends Object
| Constructor and Description |
|---|
CuratorController() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteCurators(String pid)
Delete all curators for a spedific community.
|
Curator |
getCuratorById()
Return Curator info of logged in user.
|
List<CuratorResponse> |
getCurators(String pid)
Return a list with curator for a specific community
|
Curator |
insertCurator(Curator curator)
Create or update a curator, base on Curator object given on Request Body.
|
@RequestMapping(value="/{pid}/curator",
method=GET)
public List<CuratorResponse> getCurators(@PathVariable
String pid)
pid - @PreAuthorize(value="isAuthenticated()")
@RequestMapping(value="/curator",
method=GET)
public Curator getCuratorById()
@PreAuthorize(value="isAuthenticated()")
@RequestMapping(value="/curator",
method=POST)
public Curator insertCurator(@RequestBody
Curator curator)
curator - @PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
@RequestMapping(value="/{pid}/curator",
method=DELETE)
public void deleteCurators(@PathVariable
String pid)
pid - Copyright © 2022. All rights reserved.