org.molgenis.controller
Class ObservationTargetController
java.lang.Object
org.molgenis.controller.ObservationTargetController
@Lazy
@Controller
@RequestMapping(value="/api/v1/observationtarget")
public class ObservationTargetController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> |
createObservationTarget(org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> |
createObservationTargetFromForm(org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
|
void |
deleteObservationTarget(Integer id)
|
void |
deleteObservationTargetPost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.ObservationTargetController.ObservationTargetResponse |
retrieveObservationTarget(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> |
retrieveObservationTargetCollection(EntityCollectionRequest observationTargetCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> |
retrieveObservationTargetCollectionJson(EntityCollectionRequest observationTargetCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> |
retrieveObservationTargetCollectionJsonPost(EntityCollectionRequest observationTargetCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> |
retrieveObservationTargetCollectionPost(EntityCollectionRequest observationTargetCollectionRequest,
String... expandFields)
|
org.molgenis.controller.ObservationTargetController.ObservationTargetResponse |
retrieveObservationTargetJson(Integer id,
String... expandFields)
|
void |
updateObservationTarget(Integer id,
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> |
updateObservationTargetFromForm(Integer id,
String _method,
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
|
void |
updateObservationTargetFromFormPost(Integer id,
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
|
void |
updateObservationTargetPost(Integer id,
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObservationTargetController
public ObservationTargetController()
createObservationTarget
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> createObservationTarget(@RequestBody
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
throws DatabaseException
- Throws:
DatabaseException
createObservationTargetFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> createObservationTargetFromForm(@ModelAttribute
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveObservationTarget
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.ObservationTargetController.ObservationTargetResponse retrieveObservationTarget(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveObservationTargetJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.ObservationTargetController.ObservationTargetResponse retrieveObservationTargetJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateObservationTarget
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateObservationTarget(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
throws DatabaseException
- Throws:
DatabaseException
updateObservationTargetFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> updateObservationTargetFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
throws DatabaseException
- Throws:
DatabaseException
updateObservationTargetPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateObservationTargetPost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
throws DatabaseException
- Throws:
DatabaseException
updateObservationTargetFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateObservationTargetFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.ObservationTargetController.ObservationTargetRequest observationTargetRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteObservationTarget
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteObservationTarget(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteObservationTargetPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteObservationTargetPost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveObservationTargetCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> retrieveObservationTargetCollection(EntityCollectionRequest observationTargetCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveObservationTargetCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> retrieveObservationTargetCollectionJson(EntityCollectionRequest observationTargetCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveObservationTargetCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> retrieveObservationTargetCollectionPost(@RequestBody
EntityCollectionRequest observationTargetCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveObservationTargetCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservationTargetController.ObservationTargetResponse> retrieveObservationTargetCollectionJsonPost(@RequestBody
EntityCollectionRequest observationTargetCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
handleEntityNotFoundException
@ExceptionHandler(value=org.molgenis.framework.db.EntityNotFoundException.class)
@ResponseStatus(value=NOT_FOUND)
public void handleEntityNotFoundException(EntityNotFoundException e)
handleDatabaseAccessException
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseAccessException.class)
@ResponseStatus(value=UNAUTHORIZED)
public void handleDatabaseAccessException(DatabaseAccessException e)
Copyright © 2013. All Rights Reserved.