org.molgenis.controller
Class MachineController

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

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


Constructor Summary
MachineController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.MachineController.MachineResponse> createMachine(org.molgenis.controller.MachineController.MachineRequest machineRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.MachineController.MachineResponse> createMachineFromForm(org.molgenis.controller.MachineController.MachineRequest machineRequest)
           
 void deleteMachine(Integer id)
           
 void deleteMachinePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.MachineController.MachineResponse retrieveMachine(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.MachineController.MachineResponse> retrieveMachineCollection(EntityCollectionRequest machineCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.MachineController.MachineResponse> retrieveMachineCollectionJson(EntityCollectionRequest machineCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.MachineController.MachineResponse> retrieveMachineCollectionJsonPost(EntityCollectionRequest machineCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.MachineController.MachineResponse> retrieveMachineCollectionPost(EntityCollectionRequest machineCollectionRequest, String... expandFields)
           
 org.molgenis.controller.MachineController.MachineResponse retrieveMachineJson(Integer id, String... expandFields)
           
 void updateMachine(Integer id, org.molgenis.controller.MachineController.MachineRequest machineRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.MachineController.MachineResponse> updateMachineFromForm(Integer id, String _method, org.molgenis.controller.MachineController.MachineRequest machineRequest)
           
 void updateMachineFromFormPost(Integer id, org.molgenis.controller.MachineController.MachineRequest machineRequest)
           
 void updateMachinePost(Integer id, org.molgenis.controller.MachineController.MachineRequest machineRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MachineController

public MachineController()
Method Detail

createMachine

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.MachineController.MachineResponse> createMachine(@RequestBody
                                                                                                                                                    org.molgenis.controller.MachineController.MachineRequest machineRequest)
                                                                                                                 throws DatabaseException
Throws:
DatabaseException

createMachineFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.MachineController.MachineResponse> createMachineFromForm(@ModelAttribute
                                                                                                                                                            org.molgenis.controller.MachineController.MachineRequest machineRequest)
                                                                                                                         throws DatabaseException
Throws:
DatabaseException

retrieveMachine

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

retrieveMachineJson

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

updateMachine

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateMachine(@PathVariable
                                                        Integer id,
                                                        @RequestBody
                                                        org.molgenis.controller.MachineController.MachineRequest machineRequest)
                   throws DatabaseException
Throws:
DatabaseException

updateMachineFromForm

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

updateMachinePost

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

updateMachineFromFormPost

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

deleteMachine

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

deleteMachinePost

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

retrieveMachineCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.MachineController.MachineResponse> retrieveMachineCollection(EntityCollectionRequest machineCollectionRequest,
                                                                                                                                                 @RequestParam(value="expand",required=false)
                                                                                                                                                 String... expandFields)
                                                                                                              throws DatabaseException
Throws:
DatabaseException

retrieveMachineCollectionJson

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

retrieveMachineCollectionPost

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

retrieveMachineCollectionJsonPost

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