org.molgenis.controller
Class DateValueController
java.lang.Object
org.molgenis.controller.DateValueController
@Lazy
@Controller
@RequestMapping(value="/api/v1/datevalue")
public class DateValueController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.DateValueController.DateValueResponse> |
createDateValue(org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.DateValueController.DateValueResponse> |
createDateValueFromForm(org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
|
void |
deleteDateValue(Integer id)
|
void |
deleteDateValuePost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.DateValueController.DateValueResponse |
retrieveDateValue(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> |
retrieveDateValueCollection(EntityCollectionRequest dateValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> |
retrieveDateValueCollectionJson(EntityCollectionRequest dateValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> |
retrieveDateValueCollectionJsonPost(EntityCollectionRequest dateValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> |
retrieveDateValueCollectionPost(EntityCollectionRequest dateValueCollectionRequest,
String... expandFields)
|
org.molgenis.controller.DateValueController.DateValueResponse |
retrieveDateValueJson(Integer id,
String... expandFields)
|
void |
updateDateValue(Integer id,
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.DateValueController.DateValueResponse> |
updateDateValueFromForm(Integer id,
String _method,
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
|
void |
updateDateValueFromFormPost(Integer id,
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
|
void |
updateDateValuePost(Integer id,
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateValueController
public DateValueController()
createDateValue
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.DateValueController.DateValueResponse> createDateValue(@RequestBody
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
throws DatabaseException
- Throws:
DatabaseException
createDateValueFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.DateValueController.DateValueResponse> createDateValueFromForm(@ModelAttribute
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateValue
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.DateValueController.DateValueResponse retrieveDateValue(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateValueJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.DateValueController.DateValueResponse retrieveDateValueJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateDateValue
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateDateValue(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateDateValueFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.DateValueController.DateValueResponse> updateDateValueFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateDateValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateDateValuePost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateDateValueFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateDateValueFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.DateValueController.DateValueRequest dateValueRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteDateValue
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteDateValue(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteDateValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteDateValuePost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateValueCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> retrieveDateValueCollection(EntityCollectionRequest dateValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateValueCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> retrieveDateValueCollectionJson(EntityCollectionRequest dateValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateValueCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> retrieveDateValueCollectionPost(@RequestBody
EntityCollectionRequest dateValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateValueCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateValueController.DateValueResponse> retrieveDateValueCollectionJsonPost(@RequestBody
EntityCollectionRequest dateValueCollectionRequest,
@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.