org.molgenis.controller
Class StringValueController
java.lang.Object
org.molgenis.controller.StringValueController
@Lazy
@Controller
@RequestMapping(value="/api/v1/stringvalue")
public class StringValueController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.StringValueController.StringValueResponse> |
createStringValue(org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.StringValueController.StringValueResponse> |
createStringValueFromForm(org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
|
void |
deleteStringValue(Integer id)
|
void |
deleteStringValuePost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.StringValueController.StringValueResponse |
retrieveStringValue(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> |
retrieveStringValueCollection(EntityCollectionRequest stringValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> |
retrieveStringValueCollectionJson(EntityCollectionRequest stringValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> |
retrieveStringValueCollectionJsonPost(EntityCollectionRequest stringValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> |
retrieveStringValueCollectionPost(EntityCollectionRequest stringValueCollectionRequest,
String... expandFields)
|
org.molgenis.controller.StringValueController.StringValueResponse |
retrieveStringValueJson(Integer id,
String... expandFields)
|
void |
updateStringValue(Integer id,
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.StringValueController.StringValueResponse> |
updateStringValueFromForm(Integer id,
String _method,
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
|
void |
updateStringValueFromFormPost(Integer id,
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
|
void |
updateStringValuePost(Integer id,
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringValueController
public StringValueController()
createStringValue
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.StringValueController.StringValueResponse> createStringValue(@RequestBody
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
throws DatabaseException
- Throws:
DatabaseException
createStringValueFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.StringValueController.StringValueResponse> createStringValueFromForm(@ModelAttribute
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveStringValue
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.StringValueController.StringValueResponse retrieveStringValue(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveStringValueJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.StringValueController.StringValueResponse retrieveStringValueJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateStringValue
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateStringValue(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateStringValueFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.StringValueController.StringValueResponse> updateStringValueFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateStringValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateStringValuePost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateStringValueFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateStringValueFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.StringValueController.StringValueRequest stringValueRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteStringValue
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteStringValue(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteStringValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteStringValuePost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveStringValueCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> retrieveStringValueCollection(EntityCollectionRequest stringValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveStringValueCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> retrieveStringValueCollectionJson(EntityCollectionRequest stringValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveStringValueCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> retrieveStringValueCollectionPost(@RequestBody
EntityCollectionRequest stringValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveStringValueCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.StringValueController.StringValueResponse> retrieveStringValueCollectionJsonPost(@RequestBody
EntityCollectionRequest stringValueCollectionRequest,
@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.