org.molgenis.controller
Class SampleBarcodeController

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

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


Constructor Summary
SampleBarcodeController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> createSampleBarcode(org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> createSampleBarcodeFromForm(org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
           
 void deleteSampleBarcode(Integer id)
           
 void deleteSampleBarcodePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse retrieveSampleBarcode(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> retrieveSampleBarcodeCollection(EntityCollectionRequest sampleBarcodeCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> retrieveSampleBarcodeCollectionJson(EntityCollectionRequest sampleBarcodeCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> retrieveSampleBarcodeCollectionJsonPost(EntityCollectionRequest sampleBarcodeCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> retrieveSampleBarcodeCollectionPost(EntityCollectionRequest sampleBarcodeCollectionRequest, String... expandFields)
           
 org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse retrieveSampleBarcodeJson(Integer id, String... expandFields)
           
 String retrieveSampleBarcodeXrefSampleBarcodeType(Integer id, String... expandFields)
           
 String retrieveSampleBarcodeXrefSampleBarcodeTypeJson(Integer id, String... expandFields)
           
 void updateSampleBarcode(Integer id, org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> updateSampleBarcodeFromForm(Integer id, String _method, org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
           
 void updateSampleBarcodeFromFormPost(Integer id, org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
           
 void updateSampleBarcodePost(Integer id, org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleBarcodeController

public SampleBarcodeController()
Method Detail

createSampleBarcode

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> createSampleBarcode(@RequestBody
                                                                                                                                                                      org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
                                                                                                                                   throws DatabaseException
Throws:
DatabaseException

createSampleBarcodeFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> createSampleBarcodeFromForm(@ModelAttribute
                                                                                                                                                                              org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
                                                                                                                                           throws DatabaseException
Throws:
DatabaseException

retrieveSampleBarcode

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

retrieveSampleBarcodeJson

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

retrieveSampleBarcodeXrefSampleBarcodeType

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

retrieveSampleBarcodeXrefSampleBarcodeTypeJson

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

updateSampleBarcode

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateSampleBarcode(@PathVariable
                                                              Integer id,
                                                              @RequestBody
                                                              org.molgenis.controller.SampleBarcodeController.SampleBarcodeRequest sampleBarcodeRequest)
                         throws DatabaseException
Throws:
DatabaseException

updateSampleBarcodeFromForm

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

updateSampleBarcodePost

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

updateSampleBarcodeFromFormPost

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

deleteSampleBarcode

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

deleteSampleBarcodePost

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

retrieveSampleBarcodeCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.SampleBarcodeController.SampleBarcodeResponse> retrieveSampleBarcodeCollection(EntityCollectionRequest sampleBarcodeCollectionRequest,
                                                                                                                                                                   @RequestParam(value="expand",required=false)
                                                                                                                                                                   String... expandFields)
                                                                                                                                throws DatabaseException
Throws:
DatabaseException

retrieveSampleBarcodeCollectionJson

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

retrieveSampleBarcodeCollectionPost

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

retrieveSampleBarcodeCollectionJsonPost

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