org.molgenis.controller
Class SampleBarcodeTypeController

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

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


Constructor Summary
SampleBarcodeTypeController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> createSampleBarcodeType(org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> createSampleBarcodeTypeFromForm(org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
           
 void deleteSampleBarcodeType(Integer id)
           
 void deleteSampleBarcodeTypePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse retrieveSampleBarcodeType(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> retrieveSampleBarcodeTypeCollection(EntityCollectionRequest sampleBarcodeTypeCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> retrieveSampleBarcodeTypeCollectionJson(EntityCollectionRequest sampleBarcodeTypeCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> retrieveSampleBarcodeTypeCollectionJsonPost(EntityCollectionRequest sampleBarcodeTypeCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> retrieveSampleBarcodeTypeCollectionPost(EntityCollectionRequest sampleBarcodeTypeCollectionRequest, String... expandFields)
           
 org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse retrieveSampleBarcodeTypeJson(Integer id, String... expandFields)
           
 void updateSampleBarcodeType(Integer id, org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> updateSampleBarcodeTypeFromForm(Integer id, String _method, org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
           
 void updateSampleBarcodeTypeFromFormPost(Integer id, org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
           
 void updateSampleBarcodeTypePost(Integer id, org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleBarcodeTypeController

public SampleBarcodeTypeController()
Method Detail

createSampleBarcodeType

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> createSampleBarcodeType(@RequestBody
                                                                                                                                                                                  org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
                                                                                                                                               throws DatabaseException
Throws:
DatabaseException

createSampleBarcodeTypeFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> createSampleBarcodeTypeFromForm(@ModelAttribute
                                                                                                                                                                                          org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
                                                                                                                                                       throws DatabaseException
Throws:
DatabaseException

retrieveSampleBarcodeType

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

retrieveSampleBarcodeTypeJson

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

updateSampleBarcodeType

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateSampleBarcodeType(@PathVariable
                                                                  Integer id,
                                                                  @RequestBody
                                                                  org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeRequest sampleBarcodeTypeRequest)
                             throws DatabaseException
Throws:
DatabaseException

updateSampleBarcodeTypeFromForm

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

updateSampleBarcodeTypePost

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

updateSampleBarcodeTypeFromFormPost

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

deleteSampleBarcodeType

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

deleteSampleBarcodeTypePost

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

retrieveSampleBarcodeTypeCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.SampleBarcodeTypeController.SampleBarcodeTypeResponse> retrieveSampleBarcodeTypeCollection(EntityCollectionRequest sampleBarcodeTypeCollectionRequest,
                                                                                                                                                                               @RequestParam(value="expand",required=false)
                                                                                                                                                                               String... expandFields)
                                                                                                                                            throws DatabaseException
Throws:
DatabaseException

retrieveSampleBarcodeTypeCollectionJson

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

retrieveSampleBarcodeTypeCollectionPost

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

retrieveSampleBarcodeTypeCollectionJsonPost

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