org.molgenis.controller
Class XrefValueController

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

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


Constructor Summary
XrefValueController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.XrefValueController.XrefValueResponse> createXrefValue(org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.XrefValueController.XrefValueResponse> createXrefValueFromForm(org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
           
 void deleteXrefValue(Integer id)
           
 void deleteXrefValuePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.XrefValueController.XrefValueResponse retrieveXrefValue(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.XrefValueController.XrefValueResponse> retrieveXrefValueCollection(EntityCollectionRequest xrefValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.XrefValueController.XrefValueResponse> retrieveXrefValueCollectionJson(EntityCollectionRequest xrefValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.XrefValueController.XrefValueResponse> retrieveXrefValueCollectionJsonPost(EntityCollectionRequest xrefValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.XrefValueController.XrefValueResponse> retrieveXrefValueCollectionPost(EntityCollectionRequest xrefValueCollectionRequest, String... expandFields)
           
 org.molgenis.controller.XrefValueController.XrefValueResponse retrieveXrefValueJson(Integer id, String... expandFields)
           
 String retrieveXrefValueXrefValue(Integer id, String... expandFields)
           
 String retrieveXrefValueXrefValueJson(Integer id, String... expandFields)
           
 void updateXrefValue(Integer id, org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.XrefValueController.XrefValueResponse> updateXrefValueFromForm(Integer id, String _method, org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
           
 void updateXrefValueFromFormPost(Integer id, org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
           
 void updateXrefValuePost(Integer id, org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XrefValueController

public XrefValueController()
Method Detail

createXrefValue

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.XrefValueController.XrefValueResponse> createXrefValue(@RequestBody
                                                                                                                                                          org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

createXrefValueFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.XrefValueController.XrefValueResponse> createXrefValueFromForm(@ModelAttribute
                                                                                                                                                                  org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
                                                                                                                               throws DatabaseException
Throws:
DatabaseException

retrieveXrefValue

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

retrieveXrefValueJson

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

retrieveXrefValueXrefValue

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

retrieveXrefValueXrefValueJson

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

updateXrefValue

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateXrefValue(@PathVariable
                                                          Integer id,
                                                          @RequestBody
                                                          org.molgenis.controller.XrefValueController.XrefValueRequest xrefValueRequest)
                     throws DatabaseException
Throws:
DatabaseException

updateXrefValueFromForm

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

updateXrefValuePost

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

updateXrefValueFromFormPost

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

deleteXrefValue

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

deleteXrefValuePost

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

retrieveXrefValueCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.XrefValueController.XrefValueResponse> retrieveXrefValueCollection(EntityCollectionRequest xrefValueCollectionRequest,
                                                                                                                                                       @RequestParam(value="expand",required=false)
                                                                                                                                                       String... expandFields)
                                                                                                                    throws DatabaseException
Throws:
DatabaseException

retrieveXrefValueCollectionJson

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

retrieveXrefValueCollectionPost

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

retrieveXrefValueCollectionJsonPost

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