org.molgenis.controller
Class PanelController
java.lang.Object
org.molgenis.controller.PanelController
@Lazy
@Controller
@RequestMapping(value="/api/v1/panel")
public class PanelController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.PanelController.PanelResponse> |
createPanel(org.molgenis.controller.PanelController.PanelRequest panelRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.PanelController.PanelResponse> |
createPanelFromForm(org.molgenis.controller.PanelController.PanelRequest panelRequest)
|
void |
deletePanel(Integer id)
|
void |
deletePanelPost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.PanelController.PanelResponse |
retrievePanel(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> |
retrievePanelCollection(EntityCollectionRequest panelCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> |
retrievePanelCollectionJson(EntityCollectionRequest panelCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> |
retrievePanelCollectionJsonPost(EntityCollectionRequest panelCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> |
retrievePanelCollectionPost(EntityCollectionRequest panelCollectionRequest,
String... expandFields)
|
org.molgenis.controller.PanelController.PanelResponse |
retrievePanelJson(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> |
retrievePanelMrefIndividuals(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> |
retrievePanelMrefIndividualsJson(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
String |
retrievePanelXrefPanelType(Integer id,
String... expandFields)
|
String |
retrievePanelXrefPanelTypeJson(Integer id,
String... expandFields)
|
String |
retrievePanelXrefSpecies(Integer id,
String... expandFields)
|
String |
retrievePanelXrefSpeciesJson(Integer id,
String... expandFields)
|
void |
updatePanel(Integer id,
org.molgenis.controller.PanelController.PanelRequest panelRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.PanelController.PanelResponse> |
updatePanelFromForm(Integer id,
String _method,
org.molgenis.controller.PanelController.PanelRequest panelRequest)
|
void |
updatePanelFromFormPost(Integer id,
org.molgenis.controller.PanelController.PanelRequest panelRequest)
|
void |
updatePanelPost(Integer id,
org.molgenis.controller.PanelController.PanelRequest panelRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PanelController
public PanelController()
createPanel
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PanelController.PanelResponse> createPanel(@RequestBody
org.molgenis.controller.PanelController.PanelRequest panelRequest)
throws DatabaseException
- Throws:
DatabaseException
createPanelFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PanelController.PanelResponse> createPanelFromForm(@ModelAttribute
org.molgenis.controller.PanelController.PanelRequest panelRequest)
throws DatabaseException
- Throws:
DatabaseException
retrievePanel
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.PanelController.PanelResponse retrievePanel(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.PanelController.PanelResponse retrievePanelJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelXrefPanelType
@RequestMapping(value="/{id}/panelType",
method=GET)
public String retrievePanelXrefPanelType(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelXrefPanelTypeJson
@RequestMapping(value="/{id}/panelType",
method=GET,
params="format=json",
produces="application/json")
public String retrievePanelXrefPanelTypeJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelXrefSpecies
@RequestMapping(value="/{id}/species",
method=GET)
public String retrievePanelXrefSpecies(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelXrefSpeciesJson
@RequestMapping(value="/{id}/species",
method=GET,
params="format=json",
produces="application/json")
public String retrievePanelXrefSpeciesJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelMrefIndividuals
@RequestMapping(value="/{id}/individuals",
method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrievePanelMrefIndividuals(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelMrefIndividualsJson
@RequestMapping(value="/{id}/individuals",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrievePanelMrefIndividualsJson(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updatePanel
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updatePanel(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.PanelController.PanelRequest panelRequest)
throws DatabaseException
- Throws:
DatabaseException
updatePanelFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PanelController.PanelResponse> updatePanelFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.PanelController.PanelRequest panelRequest)
throws DatabaseException
- Throws:
DatabaseException
updatePanelPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updatePanelPost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.PanelController.PanelRequest panelRequest)
throws DatabaseException
- Throws:
DatabaseException
updatePanelFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updatePanelFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.PanelController.PanelRequest panelRequest)
throws DatabaseException
- Throws:
DatabaseException
deletePanel
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deletePanel(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deletePanelPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deletePanelPost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> retrievePanelCollection(EntityCollectionRequest panelCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> retrievePanelCollectionJson(EntityCollectionRequest panelCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> retrievePanelCollectionPost(@RequestBody
EntityCollectionRequest panelCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrievePanelCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PanelController.PanelResponse> retrievePanelCollectionJsonPost(@RequestBody
EntityCollectionRequest panelCollectionRequest,
@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.