org.molgenis.controller
Class CapturingKitController
java.lang.Object
org.molgenis.controller.CapturingKitController
@Lazy
@Controller
@RequestMapping(value="/api/v1/capturingkit")
public class CapturingKitController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.CapturingKitController.CapturingKitResponse> |
createCapturingKit(org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.CapturingKitController.CapturingKitResponse> |
createCapturingKitFromForm(org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
|
void |
deleteCapturingKit(Integer id)
|
void |
deleteCapturingKitPost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.CapturingKitController.CapturingKitResponse |
retrieveCapturingKit(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> |
retrieveCapturingKitCollection(EntityCollectionRequest capturingKitCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> |
retrieveCapturingKitCollectionJson(EntityCollectionRequest capturingKitCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> |
retrieveCapturingKitCollectionJsonPost(EntityCollectionRequest capturingKitCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> |
retrieveCapturingKitCollectionPost(EntityCollectionRequest capturingKitCollectionRequest,
String... expandFields)
|
org.molgenis.controller.CapturingKitController.CapturingKitResponse |
retrieveCapturingKitJson(Integer id,
String... expandFields)
|
void |
updateCapturingKit(Integer id,
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.CapturingKitController.CapturingKitResponse> |
updateCapturingKitFromForm(Integer id,
String _method,
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
|
void |
updateCapturingKitFromFormPost(Integer id,
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
|
void |
updateCapturingKitPost(Integer id,
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapturingKitController
public CapturingKitController()
createCapturingKit
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CapturingKitController.CapturingKitResponse> createCapturingKit(@RequestBody
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
throws DatabaseException
- Throws:
DatabaseException
createCapturingKitFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CapturingKitController.CapturingKitResponse> createCapturingKitFromForm(@ModelAttribute
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveCapturingKit
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.CapturingKitController.CapturingKitResponse retrieveCapturingKit(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCapturingKitJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.CapturingKitController.CapturingKitResponse retrieveCapturingKitJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateCapturingKit
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateCapturingKit(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
throws DatabaseException
- Throws:
DatabaseException
updateCapturingKitFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CapturingKitController.CapturingKitResponse> updateCapturingKitFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
throws DatabaseException
- Throws:
DatabaseException
updateCapturingKitPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateCapturingKitPost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
throws DatabaseException
- Throws:
DatabaseException
updateCapturingKitFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateCapturingKitFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.CapturingKitController.CapturingKitRequest capturingKitRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteCapturingKit
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteCapturingKit(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteCapturingKitPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteCapturingKitPost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveCapturingKitCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> retrieveCapturingKitCollection(EntityCollectionRequest capturingKitCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCapturingKitCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> retrieveCapturingKitCollectionJson(EntityCollectionRequest capturingKitCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCapturingKitCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> retrieveCapturingKitCollectionPost(@RequestBody
EntityCollectionRequest capturingKitCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCapturingKitCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CapturingKitController.CapturingKitResponse> retrieveCapturingKitCollectionJsonPost(@RequestBody
EntityCollectionRequest capturingKitCollectionRequest,
@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.