@Lazy @Controller @RequestMapping(value="/api/v1/studydatarequest") public class StudyDataRequestController extends Object
| Constructor and Description |
|---|
StudyDataRequestController() |
@RequestMapping(method=POST) @ResponseBody public org.springframework.http.ResponseEntity<org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse> createStudyDataRequest(@RequestBody org.molgenis.controller.StudyDataRequestController.StudyDataRequestRequest studyDataRequestRequest) throws DatabaseException
DatabaseException@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse> createStudyDataRequestFromForm(@ModelAttribute
org.molgenis.controller.StudyDataRequestController.StudyDataRequestRequest studyDataRequestRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse retrieveStudyDataRequest(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse retrieveStudyDataRequestJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@InitBinder public void binder(org.springframework.web.bind.WebDataBinder binder)
@RequestMapping(value="/{id}/dataSet",
method=GET)
public String retrieveStudyDataRequestXrefDataSet(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/dataSet",
method=GET,
params="format=json",
produces="application/json")
public String retrieveStudyDataRequestXrefDataSetJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/molgenisUser",
method=GET)
public String retrieveStudyDataRequestXrefMolgenisUser(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/molgenisUser",
method=GET,
params="format=json",
produces="application/json")
public String retrieveStudyDataRequestXrefMolgenisUserJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/features",
method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservableFeatureController.ObservableFeatureResponse> retrieveStudyDataRequestMrefFeatures(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/features",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservableFeatureController.ObservableFeatureResponse> retrieveStudyDataRequestMrefFeaturesJson(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateStudyDataRequest(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.StudyDataRequestController.StudyDataRequestRequest studyDataRequestRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse> updateStudyDataRequestFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.StudyDataRequestController.StudyDataRequestRequest studyDataRequestRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateStudyDataRequestPost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.StudyDataRequestController.StudyDataRequestRequest studyDataRequestRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateStudyDataRequestFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.StudyDataRequestController.StudyDataRequestRequest studyDataRequestRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteStudyDataRequest(@PathVariable
Integer id)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteStudyDataRequestPost(@PathVariable
Integer id)
throws DatabaseException
DatabaseException@RequestMapping(method=GET) @ResponseBody public EntityCollectionResponse<org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse> retrieveStudyDataRequestCollection(EntityCollectionRequest studyDataRequestCollectionRequest, @RequestParam(value="expand",required=false) String... expandFields) throws DatabaseException
DatabaseException@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse> retrieveStudyDataRequestCollectionJson(EntityCollectionRequest studyDataRequestCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse> retrieveStudyDataRequestCollectionPost(@RequestBody
EntityCollectionRequest studyDataRequestCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.StudyDataRequestController.StudyDataRequestResponse> retrieveStudyDataRequestCollectionJsonPost(@RequestBody
EntityCollectionRequest studyDataRequestCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@ExceptionHandler(value=org.molgenis.framework.db.EntityNotFoundException.class) @ResponseStatus(value=NOT_FOUND) @ResponseBody public ErrorMessageResponse handleEntityNotFoundException(EntityNotFoundException e)
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleDatabaseException(DatabaseException e)
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseAccessException.class) @ResponseStatus(value=UNAUTHORIZED) @ResponseBody public ErrorMessageResponse handleDatabaseAccessException(DatabaseAccessException e)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2013. All Rights Reserved.