org.molgenis.controller
Class IndividualController

java.lang.Object
  extended by org.molgenis.controller.IndividualController

@Lazy
@Controller
@RequestMapping(value="/api/v1/individual")
public class IndividualController
extends Object


Constructor Summary
IndividualController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.IndividualController.IndividualResponse> createIndividual(org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.IndividualController.IndividualResponse> createIndividualFromForm(org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
           
 void deleteIndividual(Integer id)
           
 void deleteIndividualPost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.IndividualController.IndividualResponse retrieveIndividual(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollection(EntityCollectionRequest individualCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollectionJson(EntityCollectionRequest individualCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollectionJsonPost(EntityCollectionRequest individualCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollectionPost(EntityCollectionRequest individualCollectionRequest, String... expandFields)
           
 org.molgenis.controller.IndividualController.IndividualResponse retrieveIndividualJson(Integer id, String... expandFields)
           
 String retrieveIndividualXrefFather(Integer id, String... expandFields)
           
 String retrieveIndividualXrefFatherJson(Integer id, String... expandFields)
           
 String retrieveIndividualXrefMother(Integer id, String... expandFields)
           
 String retrieveIndividualXrefMotherJson(Integer id, String... expandFields)
           
 void updateIndividual(Integer id, org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.IndividualController.IndividualResponse> updateIndividualFromForm(Integer id, String _method, org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
           
 void updateIndividualFromFormPost(Integer id, org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
           
 void updateIndividualPost(Integer id, org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualController

public IndividualController()
Method Detail

createIndividual

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.IndividualController.IndividualResponse> createIndividual(@RequestBody
                                                                                                                                                             org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
                                                                                                                          throws DatabaseException
Throws:
DatabaseException

createIndividualFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.IndividualController.IndividualResponse> createIndividualFromForm(@ModelAttribute
                                                                                                                                                                     org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
                                                                                                                                  throws DatabaseException
Throws:
DatabaseException

retrieveIndividual

@RequestMapping(value="/{id}",
                method=GET)
@ResponseBody
public org.molgenis.controller.IndividualController.IndividualResponse retrieveIndividual(@PathVariable
                                                                                                                      Integer id,
                                                                                                                      @RequestParam(value="expand",required=false)
                                                                                                                      String... expandFields)
                                                                                   throws DatabaseException
Throws:
DatabaseException

retrieveIndividualJson

@RequestMapping(value="/{id}",
                method=GET,
                params="format=json",
                produces="application/json")
@ResponseBody
public org.molgenis.controller.IndividualController.IndividualResponse retrieveIndividualJson(@PathVariable
                                                                                                                          Integer id,
                                                                                                                          @RequestParam(value="expand",required=false)
                                                                                                                          String... expandFields)
                                                                                       throws DatabaseException
Throws:
DatabaseException

retrieveIndividualXrefMother

@RequestMapping(value="/{id}/mother",
                method=GET)
public String retrieveIndividualXrefMother(@PathVariable
                                                          Integer id,
                                                          @RequestParam(value="expand",required=false)
                                                          String... expandFields)
                                    throws DatabaseException
Throws:
DatabaseException

retrieveIndividualXrefMotherJson

@RequestMapping(value="/{id}/mother",
                method=GET,
                params="format=json",
                produces="application/json")
public String retrieveIndividualXrefMotherJson(@PathVariable
                                                              Integer id,
                                                              @RequestParam(value="expand",required=false)
                                                              String... expandFields)
                                        throws DatabaseException
Throws:
DatabaseException

retrieveIndividualXrefFather

@RequestMapping(value="/{id}/father",
                method=GET)
public String retrieveIndividualXrefFather(@PathVariable
                                                          Integer id,
                                                          @RequestParam(value="expand",required=false)
                                                          String... expandFields)
                                    throws DatabaseException
Throws:
DatabaseException

retrieveIndividualXrefFatherJson

@RequestMapping(value="/{id}/father",
                method=GET,
                params="format=json",
                produces="application/json")
public String retrieveIndividualXrefFatherJson(@PathVariable
                                                              Integer id,
                                                              @RequestParam(value="expand",required=false)
                                                              String... expandFields)
                                        throws DatabaseException
Throws:
DatabaseException

updateIndividual

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateIndividual(@PathVariable
                                                           Integer id,
                                                           @RequestBody
                                                           org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
                      throws DatabaseException
Throws:
DatabaseException

updateIndividualFromForm

@RequestMapping(value="/{id}",
                method=PUT,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.IndividualController.IndividualResponse> updateIndividualFromForm(@PathVariable
                                                                                                                                                                     Integer id,
                                                                                                                                                                     @PathVariable
                                                                                                                                                                     String _method,
                                                                                                                                                                     @ModelAttribute
                                                                                                                                                                     org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
                                                                                                                                  throws DatabaseException
Throws:
DatabaseException

updateIndividualPost

@RequestMapping(value="/{id}",
                method=POST,
                params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateIndividualPost(@PathVariable
                                                               Integer id,
                                                               @RequestBody
                                                               org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
                          throws DatabaseException
Throws:
DatabaseException

updateIndividualFromFormPost

@RequestMapping(value="/{id}",
                method=POST,
                params="_method=PUT",
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateIndividualFromFormPost(@PathVariable
                                                                       Integer id,
                                                                       @ModelAttribute
                                                                       org.molgenis.controller.IndividualController.IndividualRequest individualRequest)
                                  throws DatabaseException
Throws:
DatabaseException

deleteIndividual

@RequestMapping(value="/{id}",
                method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteIndividual(@PathVariable
                                                           Integer id)
                      throws DatabaseException
Throws:
DatabaseException

deleteIndividualPost

@RequestMapping(value="/{id}",
                method=POST,
                params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteIndividualPost(@PathVariable
                                                               Integer id)
                          throws DatabaseException
Throws:
DatabaseException

retrieveIndividualCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollection(EntityCollectionRequest individualCollectionRequest,
                                                                                                                                                          @RequestParam(value="expand",required=false)
                                                                                                                                                          String... expandFields)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

retrieveIndividualCollectionJson

@RequestMapping(method=GET,
                params="format=json",
                produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollectionJson(EntityCollectionRequest individualCollectionRequest,
                                                                                                                                                              @RequestParam(value="expand",required=false)
                                                                                                                                                              String... expandFields)
                                                                                                                           throws DatabaseException
Throws:
DatabaseException

retrieveIndividualCollectionPost

@RequestMapping(method=POST,
                params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollectionPost(@RequestBody
                                                                                                                                                              EntityCollectionRequest individualCollectionRequest,
                                                                                                                                                              @RequestParam(value="expand",required=false)
                                                                                                                                                              String... expandFields)
                                                                                                                           throws DatabaseException
Throws:
DatabaseException

retrieveIndividualCollectionJsonPost

@RequestMapping(method=POST,
                params={"_method=GET","format=json"},
                produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.IndividualController.IndividualResponse> retrieveIndividualCollectionJsonPost(@RequestBody
                                                                                                                                                                  EntityCollectionRequest individualCollectionRequest,
                                                                                                                                                                  @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.