org.molgenis.controller
Class PersonRoleController

java.lang.Object
  extended by org.molgenis.controller.PersonRoleController

@Lazy
@Controller
@RequestMapping(value="/api/v1/personrole")
public class PersonRoleController
extends Object


Constructor Summary
PersonRoleController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.PersonRoleController.PersonRoleResponse> createPersonRole(org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.PersonRoleController.PersonRoleResponse> createPersonRoleFromForm(org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
           
 void deletePersonRole(Integer id)
           
 void deletePersonRolePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.PersonRoleController.PersonRoleResponse retrievePersonRole(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollection(EntityCollectionRequest personRoleCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollectionJson(EntityCollectionRequest personRoleCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollectionJsonPost(EntityCollectionRequest personRoleCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollectionPost(EntityCollectionRequest personRoleCollectionRequest, String... expandFields)
           
 org.molgenis.controller.PersonRoleController.PersonRoleResponse retrievePersonRoleJson(Integer id, String... expandFields)
           
 String retrievePersonRoleXrefOntology(Integer id, String... expandFields)
           
 String retrievePersonRoleXrefOntologyJson(Integer id, String... expandFields)
           
 void updatePersonRole(Integer id, org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.PersonRoleController.PersonRoleResponse> updatePersonRoleFromForm(Integer id, String _method, org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
           
 void updatePersonRoleFromFormPost(Integer id, org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
           
 void updatePersonRolePost(Integer id, org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonRoleController

public PersonRoleController()
Method Detail

createPersonRole

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PersonRoleController.PersonRoleResponse> createPersonRole(@RequestBody
                                                                                                                                                             org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
                                                                                                                          throws DatabaseException
Throws:
DatabaseException

createPersonRoleFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PersonRoleController.PersonRoleResponse> createPersonRoleFromForm(@ModelAttribute
                                                                                                                                                                     org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
                                                                                                                                  throws DatabaseException
Throws:
DatabaseException

retrievePersonRole

@RequestMapping(value="/{id}",
                method=GET)
@ResponseBody
public org.molgenis.controller.PersonRoleController.PersonRoleResponse retrievePersonRole(@PathVariable
                                                                                                                      Integer id,
                                                                                                                      @RequestParam(value="expand",required=false)
                                                                                                                      String... expandFields)
                                                                                   throws DatabaseException
Throws:
DatabaseException

retrievePersonRoleJson

@RequestMapping(value="/{id}",
                method=GET,
                params="format=json",
                produces="application/json")
@ResponseBody
public org.molgenis.controller.PersonRoleController.PersonRoleResponse retrievePersonRoleJson(@PathVariable
                                                                                                                          Integer id,
                                                                                                                          @RequestParam(value="expand",required=false)
                                                                                                                          String... expandFields)
                                                                                       throws DatabaseException
Throws:
DatabaseException

retrievePersonRoleXrefOntology

@RequestMapping(value="/{id}/ontology",
                method=GET)
public String retrievePersonRoleXrefOntology(@PathVariable
                                                            Integer id,
                                                            @RequestParam(value="expand",required=false)
                                                            String... expandFields)
                                      throws DatabaseException
Throws:
DatabaseException

retrievePersonRoleXrefOntologyJson

@RequestMapping(value="/{id}/ontology",
                method=GET,
                params="format=json",
                produces="application/json")
public String retrievePersonRoleXrefOntologyJson(@PathVariable
                                                                Integer id,
                                                                @RequestParam(value="expand",required=false)
                                                                String... expandFields)
                                          throws DatabaseException
Throws:
DatabaseException

updatePersonRole

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updatePersonRole(@PathVariable
                                                           Integer id,
                                                           @RequestBody
                                                           org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
                      throws DatabaseException
Throws:
DatabaseException

updatePersonRoleFromForm

@RequestMapping(value="/{id}",
                method=PUT,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PersonRoleController.PersonRoleResponse> updatePersonRoleFromForm(@PathVariable
                                                                                                                                                                     Integer id,
                                                                                                                                                                     @PathVariable
                                                                                                                                                                     String _method,
                                                                                                                                                                     @ModelAttribute
                                                                                                                                                                     org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
                                                                                                                                  throws DatabaseException
Throws:
DatabaseException

updatePersonRolePost

@RequestMapping(value="/{id}",
                method=POST,
                params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updatePersonRolePost(@PathVariable
                                                               Integer id,
                                                               @RequestBody
                                                               org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
                          throws DatabaseException
Throws:
DatabaseException

updatePersonRoleFromFormPost

@RequestMapping(value="/{id}",
                method=POST,
                params="_method=PUT",
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updatePersonRoleFromFormPost(@PathVariable
                                                                       Integer id,
                                                                       @ModelAttribute
                                                                       org.molgenis.controller.PersonRoleController.PersonRoleRequest personRoleRequest)
                                  throws DatabaseException
Throws:
DatabaseException

deletePersonRole

@RequestMapping(value="/{id}",
                method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deletePersonRole(@PathVariable
                                                           Integer id)
                      throws DatabaseException
Throws:
DatabaseException

deletePersonRolePost

@RequestMapping(value="/{id}",
                method=POST,
                params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deletePersonRolePost(@PathVariable
                                                               Integer id)
                          throws DatabaseException
Throws:
DatabaseException

retrievePersonRoleCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollection(EntityCollectionRequest personRoleCollectionRequest,
                                                                                                                                                          @RequestParam(value="expand",required=false)
                                                                                                                                                          String... expandFields)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

retrievePersonRoleCollectionJson

@RequestMapping(method=GET,
                params="format=json",
                produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollectionJson(EntityCollectionRequest personRoleCollectionRequest,
                                                                                                                                                              @RequestParam(value="expand",required=false)
                                                                                                                                                              String... expandFields)
                                                                                                                           throws DatabaseException
Throws:
DatabaseException

retrievePersonRoleCollectionPost

@RequestMapping(method=POST,
                params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollectionPost(@RequestBody
                                                                                                                                                              EntityCollectionRequest personRoleCollectionRequest,
                                                                                                                                                              @RequestParam(value="expand",required=false)
                                                                                                                                                              String... expandFields)
                                                                                                                           throws DatabaseException
Throws:
DatabaseException

retrievePersonRoleCollectionJsonPost

@RequestMapping(method=POST,
                params={"_method=GET","format=json"},
                produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PersonRoleController.PersonRoleResponse> retrievePersonRoleCollectionJsonPost(@RequestBody
                                                                                                                                                                  EntityCollectionRequest personRoleCollectionRequest,
                                                                                                                                                                  @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.