org.molgenis.controller
Class CategoricalValueController
java.lang.Object
org.molgenis.controller.CategoricalValueController
@Lazy
@Controller
@RequestMapping(value="/api/v1/categoricalvalue")
public class CategoricalValueController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> |
createCategoricalValue(org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> |
createCategoricalValueFromForm(org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
|
void |
deleteCategoricalValue(Integer id)
|
void |
deleteCategoricalValuePost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.CategoricalValueController.CategoricalValueResponse |
retrieveCategoricalValue(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> |
retrieveCategoricalValueCollection(EntityCollectionRequest categoricalValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> |
retrieveCategoricalValueCollectionJson(EntityCollectionRequest categoricalValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> |
retrieveCategoricalValueCollectionJsonPost(EntityCollectionRequest categoricalValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> |
retrieveCategoricalValueCollectionPost(EntityCollectionRequest categoricalValueCollectionRequest,
String... expandFields)
|
org.molgenis.controller.CategoricalValueController.CategoricalValueResponse |
retrieveCategoricalValueJson(Integer id,
String... expandFields)
|
String |
retrieveCategoricalValueXrefValue(Integer id,
String... expandFields)
|
String |
retrieveCategoricalValueXrefValueJson(Integer id,
String... expandFields)
|
void |
updateCategoricalValue(Integer id,
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> |
updateCategoricalValueFromForm(Integer id,
String _method,
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
|
void |
updateCategoricalValueFromFormPost(Integer id,
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
|
void |
updateCategoricalValuePost(Integer id,
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategoricalValueController
public CategoricalValueController()
createCategoricalValue
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> createCategoricalValue(@RequestBody
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
throws DatabaseException
- Throws:
DatabaseException
createCategoricalValueFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> createCategoricalValueFromForm(@ModelAttribute
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValue
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.CategoricalValueController.CategoricalValueResponse retrieveCategoricalValue(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValueJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.CategoricalValueController.CategoricalValueResponse retrieveCategoricalValueJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValueXrefValue
@RequestMapping(value="/{id}/value",
method=GET)
public String retrieveCategoricalValueXrefValue(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValueXrefValueJson
@RequestMapping(value="/{id}/value",
method=GET,
params="format=json",
produces="application/json")
public String retrieveCategoricalValueXrefValueJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateCategoricalValue
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateCategoricalValue(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateCategoricalValueFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> updateCategoricalValueFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateCategoricalValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateCategoricalValuePost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateCategoricalValueFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateCategoricalValueFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.CategoricalValueController.CategoricalValueRequest categoricalValueRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteCategoricalValue
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteCategoricalValue(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteCategoricalValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteCategoricalValuePost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValueCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> retrieveCategoricalValueCollection(EntityCollectionRequest categoricalValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValueCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> retrieveCategoricalValueCollectionJson(EntityCollectionRequest categoricalValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValueCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> retrieveCategoricalValueCollectionPost(@RequestBody
EntityCollectionRequest categoricalValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveCategoricalValueCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CategoricalValueController.CategoricalValueResponse> retrieveCategoricalValueCollectionJsonPost(@RequestBody
EntityCollectionRequest categoricalValueCollectionRequest,
@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.