org.molgenis.controller
Class DateTimeValueController
java.lang.Object
org.molgenis.controller.DateTimeValueController
@Lazy
@Controller
@RequestMapping(value="/api/v1/datetimevalue")
public class DateTimeValueController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> |
createDateTimeValue(org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> |
createDateTimeValueFromForm(org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
|
void |
deleteDateTimeValue(Integer id)
|
void |
deleteDateTimeValuePost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.DateTimeValueController.DateTimeValueResponse |
retrieveDateTimeValue(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> |
retrieveDateTimeValueCollection(EntityCollectionRequest dateTimeValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> |
retrieveDateTimeValueCollectionJson(EntityCollectionRequest dateTimeValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> |
retrieveDateTimeValueCollectionJsonPost(EntityCollectionRequest dateTimeValueCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> |
retrieveDateTimeValueCollectionPost(EntityCollectionRequest dateTimeValueCollectionRequest,
String... expandFields)
|
org.molgenis.controller.DateTimeValueController.DateTimeValueResponse |
retrieveDateTimeValueJson(Integer id,
String... expandFields)
|
void |
updateDateTimeValue(Integer id,
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> |
updateDateTimeValueFromForm(Integer id,
String _method,
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
|
void |
updateDateTimeValueFromFormPost(Integer id,
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
|
void |
updateDateTimeValuePost(Integer id,
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateTimeValueController
public DateTimeValueController()
createDateTimeValue
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> createDateTimeValue(@RequestBody
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
throws DatabaseException
- Throws:
DatabaseException
createDateTimeValueFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> createDateTimeValueFromForm(@ModelAttribute
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateTimeValue
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.DateTimeValueController.DateTimeValueResponse retrieveDateTimeValue(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateTimeValueJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.DateTimeValueController.DateTimeValueResponse retrieveDateTimeValueJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateDateTimeValue
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateDateTimeValue(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateDateTimeValueFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> updateDateTimeValueFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateDateTimeValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateDateTimeValuePost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
throws DatabaseException
- Throws:
DatabaseException
updateDateTimeValueFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateDateTimeValueFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.DateTimeValueController.DateTimeValueRequest dateTimeValueRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteDateTimeValue
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteDateTimeValue(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteDateTimeValuePost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteDateTimeValuePost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateTimeValueCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> retrieveDateTimeValueCollection(EntityCollectionRequest dateTimeValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateTimeValueCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> retrieveDateTimeValueCollectionJson(EntityCollectionRequest dateTimeValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateTimeValueCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> retrieveDateTimeValueCollectionPost(@RequestBody
EntityCollectionRequest dateTimeValueCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveDateTimeValueCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.DateTimeValueController.DateTimeValueResponse> retrieveDateTimeValueCollectionJsonPost(@RequestBody
EntityCollectionRequest dateTimeValueCollectionRequest,
@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.