org.molgenis.controller
Class TextValueController

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

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


Constructor Summary
TextValueController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.TextValueController.TextValueResponse> createTextValue(org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.TextValueController.TextValueResponse> createTextValueFromForm(org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
           
 void deleteTextValue(Integer id)
           
 void deleteTextValuePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.TextValueController.TextValueResponse retrieveTextValue(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.TextValueController.TextValueResponse> retrieveTextValueCollection(EntityCollectionRequest textValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.TextValueController.TextValueResponse> retrieveTextValueCollectionJson(EntityCollectionRequest textValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.TextValueController.TextValueResponse> retrieveTextValueCollectionJsonPost(EntityCollectionRequest textValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.TextValueController.TextValueResponse> retrieveTextValueCollectionPost(EntityCollectionRequest textValueCollectionRequest, String... expandFields)
           
 org.molgenis.controller.TextValueController.TextValueResponse retrieveTextValueJson(Integer id, String... expandFields)
           
 void updateTextValue(Integer id, org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.TextValueController.TextValueResponse> updateTextValueFromForm(Integer id, String _method, org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
           
 void updateTextValueFromFormPost(Integer id, org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
           
 void updateTextValuePost(Integer id, org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextValueController

public TextValueController()
Method Detail

createTextValue

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.TextValueController.TextValueResponse> createTextValue(@RequestBody
                                                                                                                                                          org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

createTextValueFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.TextValueController.TextValueResponse> createTextValueFromForm(@ModelAttribute
                                                                                                                                                                  org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
                                                                                                                               throws DatabaseException
Throws:
DatabaseException

retrieveTextValue

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

retrieveTextValueJson

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

updateTextValue

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateTextValue(@PathVariable
                                                          Integer id,
                                                          @RequestBody
                                                          org.molgenis.controller.TextValueController.TextValueRequest textValueRequest)
                     throws DatabaseException
Throws:
DatabaseException

updateTextValueFromForm

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

updateTextValuePost

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

updateTextValueFromFormPost

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

deleteTextValue

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

deleteTextValuePost

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

retrieveTextValueCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.TextValueController.TextValueResponse> retrieveTextValueCollection(EntityCollectionRequest textValueCollectionRequest,
                                                                                                                                                       @RequestParam(value="expand",required=false)
                                                                                                                                                       String... expandFields)
                                                                                                                    throws DatabaseException
Throws:
DatabaseException

retrieveTextValueCollectionJson

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

retrieveTextValueCollectionPost

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

retrieveTextValueCollectionJsonPost

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