org.molgenis.controller
Class InstituteController

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

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


Constructor Summary
InstituteController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.InstituteController.InstituteResponse> createInstitute(org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.InstituteController.InstituteResponse> createInstituteFromForm(org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
           
 void deleteInstitute(Integer id)
           
 void deleteInstitutePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.InstituteController.InstituteResponse retrieveInstitute(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.InstituteController.InstituteResponse> retrieveInstituteCollection(EntityCollectionRequest instituteCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.InstituteController.InstituteResponse> retrieveInstituteCollectionJson(EntityCollectionRequest instituteCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.InstituteController.InstituteResponse> retrieveInstituteCollectionJsonPost(EntityCollectionRequest instituteCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.InstituteController.InstituteResponse> retrieveInstituteCollectionPost(EntityCollectionRequest instituteCollectionRequest, String... expandFields)
           
 org.molgenis.controller.InstituteController.InstituteResponse retrieveInstituteJson(Integer id, String... expandFields)
           
 void updateInstitute(Integer id, org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.InstituteController.InstituteResponse> updateInstituteFromForm(Integer id, String _method, org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
           
 void updateInstituteFromFormPost(Integer id, org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
           
 void updateInstitutePost(Integer id, org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstituteController

public InstituteController()
Method Detail

createInstitute

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.InstituteController.InstituteResponse> createInstitute(@RequestBody
                                                                                                                                                          org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

createInstituteFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.InstituteController.InstituteResponse> createInstituteFromForm(@ModelAttribute
                                                                                                                                                                  org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
                                                                                                                               throws DatabaseException
Throws:
DatabaseException

retrieveInstitute

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

retrieveInstituteJson

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

updateInstitute

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateInstitute(@PathVariable
                                                          Integer id,
                                                          @RequestBody
                                                          org.molgenis.controller.InstituteController.InstituteRequest instituteRequest)
                     throws DatabaseException
Throws:
DatabaseException

updateInstituteFromForm

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

updateInstitutePost

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

updateInstituteFromFormPost

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

deleteInstitute

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

deleteInstitutePost

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

retrieveInstituteCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.InstituteController.InstituteResponse> retrieveInstituteCollection(EntityCollectionRequest instituteCollectionRequest,
                                                                                                                                                       @RequestParam(value="expand",required=false)
                                                                                                                                                       String... expandFields)
                                                                                                                    throws DatabaseException
Throws:
DatabaseException

retrieveInstituteCollectionJson

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

retrieveInstituteCollectionPost

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

retrieveInstituteCollectionJsonPost

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