org.molgenis.controller
Class CharacteristicController

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

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


Constructor Summary
CharacteristicController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.CharacteristicController.CharacteristicResponse> createCharacteristic(org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.CharacteristicController.CharacteristicResponse> createCharacteristicFromForm(org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
           
 void deleteCharacteristic(Integer id)
           
 void deleteCharacteristicPost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.CharacteristicController.CharacteristicResponse retrieveCharacteristic(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CharacteristicController.CharacteristicResponse> retrieveCharacteristicCollection(EntityCollectionRequest characteristicCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CharacteristicController.CharacteristicResponse> retrieveCharacteristicCollectionJson(EntityCollectionRequest characteristicCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CharacteristicController.CharacteristicResponse> retrieveCharacteristicCollectionJsonPost(EntityCollectionRequest characteristicCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CharacteristicController.CharacteristicResponse> retrieveCharacteristicCollectionPost(EntityCollectionRequest characteristicCollectionRequest, String... expandFields)
           
 org.molgenis.controller.CharacteristicController.CharacteristicResponse retrieveCharacteristicJson(Integer id, String... expandFields)
           
 void updateCharacteristic(Integer id, org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.CharacteristicController.CharacteristicResponse> updateCharacteristicFromForm(Integer id, String _method, org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
           
 void updateCharacteristicFromFormPost(Integer id, org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
           
 void updateCharacteristicPost(Integer id, org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacteristicController

public CharacteristicController()
Method Detail

createCharacteristic

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CharacteristicController.CharacteristicResponse> createCharacteristic(@RequestBody
                                                                                                                                                                         org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
                                                                                                                                      throws DatabaseException
Throws:
DatabaseException

createCharacteristicFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CharacteristicController.CharacteristicResponse> createCharacteristicFromForm(@ModelAttribute
                                                                                                                                                                                 org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
                                                                                                                                              throws DatabaseException
Throws:
DatabaseException

retrieveCharacteristic

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

retrieveCharacteristicJson

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

updateCharacteristic

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateCharacteristic(@PathVariable
                                                               Integer id,
                                                               @RequestBody
                                                               org.molgenis.controller.CharacteristicController.CharacteristicRequest characteristicRequest)
                          throws DatabaseException
Throws:
DatabaseException

updateCharacteristicFromForm

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

updateCharacteristicPost

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

updateCharacteristicFromFormPost

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

deleteCharacteristic

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

deleteCharacteristicPost

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

retrieveCharacteristicCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CharacteristicController.CharacteristicResponse> retrieveCharacteristicCollection(EntityCollectionRequest characteristicCollectionRequest,
                                                                                                                                                                      @RequestParam(value="expand",required=false)
                                                                                                                                                                      String... expandFields)
                                                                                                                                   throws DatabaseException
Throws:
DatabaseException

retrieveCharacteristicCollectionJson

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

retrieveCharacteristicCollectionPost

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

retrieveCharacteristicCollectionJsonPost

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