org.molgenis.controller
Class ProtocolController
java.lang.Object
org.molgenis.controller.ProtocolController
@Lazy
@Controller
@RequestMapping(value="/api/v1/protocol")
public class ProtocolController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.ProtocolController.ProtocolResponse> |
createProtocol(org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.ProtocolController.ProtocolResponse> |
createProtocolFromForm(org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
|
void |
deleteProtocol(Integer id)
|
void |
deleteProtocolPost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.ProtocolController.ProtocolResponse |
retrieveProtocol(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> |
retrieveProtocolCollection(EntityCollectionRequest protocolCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> |
retrieveProtocolCollectionJson(EntityCollectionRequest protocolCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> |
retrieveProtocolCollectionJsonPost(EntityCollectionRequest protocolCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> |
retrieveProtocolCollectionPost(EntityCollectionRequest protocolCollectionRequest,
String... expandFields)
|
org.molgenis.controller.ProtocolController.ProtocolResponse |
retrieveProtocolJson(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ObservableFeatureController.ObservableFeatureResponse> |
retrieveProtocolMrefFeatures(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ObservableFeatureController.ObservableFeatureResponse> |
retrieveProtocolMrefFeaturesJson(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> |
retrieveProtocolMrefSubprotocols(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> |
retrieveProtocolMrefSubprotocolsJson(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
String |
retrieveProtocolXrefProtocolType(Integer id,
String... expandFields)
|
String |
retrieveProtocolXrefProtocolTypeJson(Integer id,
String... expandFields)
|
void |
updateProtocol(Integer id,
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.ProtocolController.ProtocolResponse> |
updateProtocolFromForm(Integer id,
String _method,
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
|
void |
updateProtocolFromFormPost(Integer id,
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
|
void |
updateProtocolPost(Integer id,
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProtocolController
public ProtocolController()
createProtocol
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ProtocolController.ProtocolResponse> createProtocol(@RequestBody
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
throws DatabaseException
- Throws:
DatabaseException
createProtocolFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ProtocolController.ProtocolResponse> createProtocolFromForm(@ModelAttribute
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocol
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.ProtocolController.ProtocolResponse retrieveProtocol(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.ProtocolController.ProtocolResponse retrieveProtocolJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolXrefProtocolType
@RequestMapping(value="/{id}/protocolType",
method=GET)
public String retrieveProtocolXrefProtocolType(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolXrefProtocolTypeJson
@RequestMapping(value="/{id}/protocolType",
method=GET,
params="format=json",
produces="application/json")
public String retrieveProtocolXrefProtocolTypeJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolMrefSubprotocols
@RequestMapping(value="/{id}/subprotocols",
method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> retrieveProtocolMrefSubprotocols(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolMrefSubprotocolsJson
@RequestMapping(value="/{id}/subprotocols",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> retrieveProtocolMrefSubprotocolsJson(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolMrefFeatures
@RequestMapping(value="/{id}/features",
method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservableFeatureController.ObservableFeatureResponse> retrieveProtocolMrefFeatures(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolMrefFeaturesJson
@RequestMapping(value="/{id}/features",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ObservableFeatureController.ObservableFeatureResponse> retrieveProtocolMrefFeaturesJson(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateProtocol
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateProtocol(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
throws DatabaseException
- Throws:
DatabaseException
updateProtocolFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ProtocolController.ProtocolResponse> updateProtocolFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
throws DatabaseException
- Throws:
DatabaseException
updateProtocolPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateProtocolPost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
throws DatabaseException
- Throws:
DatabaseException
updateProtocolFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateProtocolFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.ProtocolController.ProtocolRequest protocolRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteProtocol
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteProtocol(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteProtocolPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteProtocolPost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> retrieveProtocolCollection(EntityCollectionRequest protocolCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> retrieveProtocolCollectionJson(EntityCollectionRequest protocolCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> retrieveProtocolCollectionPost(@RequestBody
EntityCollectionRequest protocolCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProtocolCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProtocolController.ProtocolResponse> retrieveProtocolCollectionJsonPost(@RequestBody
EntityCollectionRequest protocolCollectionRequest,
@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.