org.molgenis.controller
Class BoolValueController

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

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


Constructor Summary
BoolValueController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.BoolValueController.BoolValueResponse> createBoolValue(org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.BoolValueController.BoolValueResponse> createBoolValueFromForm(org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
           
 void deleteBoolValue(Integer id)
           
 void deleteBoolValuePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.BoolValueController.BoolValueResponse retrieveBoolValue(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.BoolValueController.BoolValueResponse> retrieveBoolValueCollection(EntityCollectionRequest boolValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.BoolValueController.BoolValueResponse> retrieveBoolValueCollectionJson(EntityCollectionRequest boolValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.BoolValueController.BoolValueResponse> retrieveBoolValueCollectionJsonPost(EntityCollectionRequest boolValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.BoolValueController.BoolValueResponse> retrieveBoolValueCollectionPost(EntityCollectionRequest boolValueCollectionRequest, String... expandFields)
           
 org.molgenis.controller.BoolValueController.BoolValueResponse retrieveBoolValueJson(Integer id, String... expandFields)
           
 void updateBoolValue(Integer id, org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.BoolValueController.BoolValueResponse> updateBoolValueFromForm(Integer id, String _method, org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
           
 void updateBoolValueFromFormPost(Integer id, org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
           
 void updateBoolValuePost(Integer id, org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoolValueController

public BoolValueController()
Method Detail

createBoolValue

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.BoolValueController.BoolValueResponse> createBoolValue(@RequestBody
                                                                                                                                                          org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

createBoolValueFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.BoolValueController.BoolValueResponse> createBoolValueFromForm(@ModelAttribute
                                                                                                                                                                  org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
                                                                                                                               throws DatabaseException
Throws:
DatabaseException

retrieveBoolValue

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

retrieveBoolValueJson

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

updateBoolValue

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateBoolValue(@PathVariable
                                                          Integer id,
                                                          @RequestBody
                                                          org.molgenis.controller.BoolValueController.BoolValueRequest boolValueRequest)
                     throws DatabaseException
Throws:
DatabaseException

updateBoolValueFromForm

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

updateBoolValuePost

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

updateBoolValueFromFormPost

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

deleteBoolValue

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

deleteBoolValuePost

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

retrieveBoolValueCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.BoolValueController.BoolValueResponse> retrieveBoolValueCollection(EntityCollectionRequest boolValueCollectionRequest,
                                                                                                                                                       @RequestParam(value="expand",required=false)
                                                                                                                                                       String... expandFields)
                                                                                                                    throws DatabaseException
Throws:
DatabaseException

retrieveBoolValueCollectionJson

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

retrieveBoolValueCollectionPost

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

retrieveBoolValueCollectionJsonPost

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