org.molgenis.controller
Class ProjectController
java.lang.Object
org.molgenis.controller.ProjectController
@Lazy
@Controller
@RequestMapping(value="/api/v1/project")
public class ProjectController
- extends Object
|
Method Summary |
org.springframework.http.ResponseEntity<org.molgenis.controller.ProjectController.ProjectResponse> |
createProject(org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.ProjectController.ProjectResponse> |
createProjectFromForm(org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
|
void |
deleteProject(Integer id)
|
void |
deleteProjectPost(Integer id)
|
void |
handleDatabaseAccessException(DatabaseAccessException e)
|
void |
handleEntityNotFoundException(EntityNotFoundException e)
|
org.molgenis.controller.ProjectController.ProjectResponse |
retrieveProject(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> |
retrieveProjectCollection(EntityCollectionRequest projectCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> |
retrieveProjectCollectionJson(EntityCollectionRequest projectCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> |
retrieveProjectCollectionJsonPost(EntityCollectionRequest projectCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> |
retrieveProjectCollectionPost(EntityCollectionRequest projectCollectionRequest,
String... expandFields)
|
org.molgenis.controller.ProjectController.ProjectResponse |
retrieveProjectJson(Integer id,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.NgsUserController.NgsUserResponse> |
retrieveProjectMrefProjectAnalist(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
EntityCollectionResponse<org.molgenis.controller.NgsUserController.NgsUserResponse> |
retrieveProjectMrefProjectAnalistJson(Integer id,
EntityCollectionRequest entityCollectionRequest,
String... expandFields)
|
String |
retrieveProjectXrefPrepKit(Integer id,
String... expandFields)
|
String |
retrieveProjectXrefPrepKitJson(Integer id,
String... expandFields)
|
String |
retrieveProjectXrefProjectCustomer(Integer id,
String... expandFields)
|
String |
retrieveProjectXrefProjectCustomerJson(Integer id,
String... expandFields)
|
String |
retrieveProjectXrefResultShippedTo(Integer id,
String... expandFields)
|
String |
retrieveProjectXrefResultShippedToJson(Integer id,
String... expandFields)
|
String |
retrieveProjectXrefResultShippedUser(Integer id,
String... expandFields)
|
String |
retrieveProjectXrefResultShippedUserJson(Integer id,
String... expandFields)
|
void |
updateProject(Integer id,
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
|
org.springframework.http.ResponseEntity<org.molgenis.controller.ProjectController.ProjectResponse> |
updateProjectFromForm(Integer id,
String _method,
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
|
void |
updateProjectFromFormPost(Integer id,
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
|
void |
updateProjectPost(Integer id,
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectController
public ProjectController()
createProject
@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ProjectController.ProjectResponse> createProject(@RequestBody
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
throws DatabaseException
- Throws:
DatabaseException
createProjectFromForm
@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ProjectController.ProjectResponse> createProjectFromForm(@ModelAttribute
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
throws DatabaseException
- Throws:
DatabaseException
retrieveProject
@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.ProjectController.ProjectResponse retrieveProject(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectJson
@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.ProjectController.ProjectResponse retrieveProjectJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefProjectCustomer
@RequestMapping(value="/{id}/projectCustomer",
method=GET)
public String retrieveProjectXrefProjectCustomer(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefProjectCustomerJson
@RequestMapping(value="/{id}/projectCustomer",
method=GET,
params="format=json",
produces="application/json")
public String retrieveProjectXrefProjectCustomerJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefPrepKit
@RequestMapping(value="/{id}/prepKit",
method=GET)
public String retrieveProjectXrefPrepKit(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefPrepKitJson
@RequestMapping(value="/{id}/prepKit",
method=GET,
params="format=json",
produces="application/json")
public String retrieveProjectXrefPrepKitJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefResultShippedUser
@RequestMapping(value="/{id}/resultShippedUser",
method=GET)
public String retrieveProjectXrefResultShippedUser(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefResultShippedUserJson
@RequestMapping(value="/{id}/resultShippedUser",
method=GET,
params="format=json",
produces="application/json")
public String retrieveProjectXrefResultShippedUserJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefResultShippedTo
@RequestMapping(value="/{id}/resultShippedTo",
method=GET)
public String retrieveProjectXrefResultShippedTo(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectXrefResultShippedToJson
@RequestMapping(value="/{id}/resultShippedTo",
method=GET,
params="format=json",
produces="application/json")
public String retrieveProjectXrefResultShippedToJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectMrefProjectAnalist
@RequestMapping(value="/{id}/projectAnalist",
method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.NgsUserController.NgsUserResponse> retrieveProjectMrefProjectAnalist(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectMrefProjectAnalistJson
@RequestMapping(value="/{id}/projectAnalist",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.NgsUserController.NgsUserResponse> retrieveProjectMrefProjectAnalistJson(@PathVariable
Integer id,
EntityCollectionRequest entityCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
updateProject
@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updateProject(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
throws DatabaseException
- Throws:
DatabaseException
updateProjectFromForm
@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.ProjectController.ProjectResponse> updateProjectFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
throws DatabaseException
- Throws:
DatabaseException
updateProjectPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updateProjectPost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
throws DatabaseException
- Throws:
DatabaseException
updateProjectFromFormPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateProjectFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.ProjectController.ProjectRequest projectRequest)
throws DatabaseException
- Throws:
DatabaseException
deleteProject
@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deleteProject(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
deleteProjectPost
@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deleteProjectPost(@PathVariable
Integer id)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectCollection
@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> retrieveProjectCollection(EntityCollectionRequest projectCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectCollectionJson
@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> retrieveProjectCollectionJson(EntityCollectionRequest projectCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectCollectionPost
@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> retrieveProjectCollectionPost(@RequestBody
EntityCollectionRequest projectCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
- Throws:
DatabaseException
retrieveProjectCollectionJsonPost
@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.ProjectController.ProjectResponse> retrieveProjectCollectionJsonPost(@RequestBody
EntityCollectionRequest projectCollectionRequest,
@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.