org.molgenis.controller
Class HtmlValueController

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

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


Constructor Summary
HtmlValueController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.HtmlValueController.HtmlValueResponse> createHtmlValue(org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.HtmlValueController.HtmlValueResponse> createHtmlValueFromForm(org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
           
 void deleteHtmlValue(Integer id)
           
 void deleteHtmlValuePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.HtmlValueController.HtmlValueResponse retrieveHtmlValue(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.HtmlValueController.HtmlValueResponse> retrieveHtmlValueCollection(EntityCollectionRequest htmlValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.HtmlValueController.HtmlValueResponse> retrieveHtmlValueCollectionJson(EntityCollectionRequest htmlValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.HtmlValueController.HtmlValueResponse> retrieveHtmlValueCollectionJsonPost(EntityCollectionRequest htmlValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.HtmlValueController.HtmlValueResponse> retrieveHtmlValueCollectionPost(EntityCollectionRequest htmlValueCollectionRequest, String... expandFields)
           
 org.molgenis.controller.HtmlValueController.HtmlValueResponse retrieveHtmlValueJson(Integer id, String... expandFields)
           
 void updateHtmlValue(Integer id, org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.HtmlValueController.HtmlValueResponse> updateHtmlValueFromForm(Integer id, String _method, org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
           
 void updateHtmlValueFromFormPost(Integer id, org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
           
 void updateHtmlValuePost(Integer id, org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlValueController

public HtmlValueController()
Method Detail

createHtmlValue

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.HtmlValueController.HtmlValueResponse> createHtmlValue(@RequestBody
                                                                                                                                                          org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

createHtmlValueFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.HtmlValueController.HtmlValueResponse> createHtmlValueFromForm(@ModelAttribute
                                                                                                                                                                  org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
                                                                                                                               throws DatabaseException
Throws:
DatabaseException

retrieveHtmlValue

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

retrieveHtmlValueJson

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

updateHtmlValue

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateHtmlValue(@PathVariable
                                                          Integer id,
                                                          @RequestBody
                                                          org.molgenis.controller.HtmlValueController.HtmlValueRequest htmlValueRequest)
                     throws DatabaseException
Throws:
DatabaseException

updateHtmlValueFromForm

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

updateHtmlValuePost

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

updateHtmlValueFromFormPost

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

deleteHtmlValue

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

deleteHtmlValuePost

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

retrieveHtmlValueCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.HtmlValueController.HtmlValueResponse> retrieveHtmlValueCollection(EntityCollectionRequest htmlValueCollectionRequest,
                                                                                                                                                       @RequestParam(value="expand",required=false)
                                                                                                                                                       String... expandFields)
                                                                                                                    throws DatabaseException
Throws:
DatabaseException

retrieveHtmlValueCollectionJson

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

retrieveHtmlValueCollectionPost

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

retrieveHtmlValueCollectionJsonPost

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