org.molgenis.controller
Class CategoryController

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

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


Constructor Summary
CategoryController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.CategoryController.CategoryResponse> createCategory(org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.CategoryController.CategoryResponse> createCategoryFromForm(org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
           
 void deleteCategory(Integer id)
           
 void deleteCategoryPost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.CategoryController.CategoryResponse retrieveCategory(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CategoryController.CategoryResponse> retrieveCategoryCollection(EntityCollectionRequest categoryCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CategoryController.CategoryResponse> retrieveCategoryCollectionJson(EntityCollectionRequest categoryCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CategoryController.CategoryResponse> retrieveCategoryCollectionJsonPost(EntityCollectionRequest categoryCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.CategoryController.CategoryResponse> retrieveCategoryCollectionPost(EntityCollectionRequest categoryCollectionRequest, String... expandFields)
           
 org.molgenis.controller.CategoryController.CategoryResponse retrieveCategoryJson(Integer id, String... expandFields)
           
 String retrieveCategoryXrefDefinition(Integer id, String... expandFields)
           
 String retrieveCategoryXrefDefinitionJson(Integer id, String... expandFields)
           
 String retrieveCategoryXrefObservableFeature(Integer id, String... expandFields)
           
 String retrieveCategoryXrefObservableFeatureJson(Integer id, String... expandFields)
           
 void updateCategory(Integer id, org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.CategoryController.CategoryResponse> updateCategoryFromForm(Integer id, String _method, org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
           
 void updateCategoryFromFormPost(Integer id, org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
           
 void updateCategoryPost(Integer id, org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryController

public CategoryController()
Method Detail

createCategory

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CategoryController.CategoryResponse> createCategory(@RequestBody
                                                                                                                                                       org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
                                                                                                                    throws DatabaseException
Throws:
DatabaseException

createCategoryFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.CategoryController.CategoryResponse> createCategoryFromForm(@ModelAttribute
                                                                                                                                                               org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
                                                                                                                            throws DatabaseException
Throws:
DatabaseException

retrieveCategory

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

retrieveCategoryJson

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

retrieveCategoryXrefObservableFeature

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

retrieveCategoryXrefObservableFeatureJson

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

retrieveCategoryXrefDefinition

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

retrieveCategoryXrefDefinitionJson

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

updateCategory

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateCategory(@PathVariable
                                                         Integer id,
                                                         @RequestBody
                                                         org.molgenis.controller.CategoryController.CategoryRequest categoryRequest)
                    throws DatabaseException
Throws:
DatabaseException

updateCategoryFromForm

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

updateCategoryPost

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

updateCategoryFromFormPost

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

deleteCategory

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

deleteCategoryPost

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

retrieveCategoryCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.CategoryController.CategoryResponse> retrieveCategoryCollection(EntityCollectionRequest categoryCollectionRequest,
                                                                                                                                                    @RequestParam(value="expand",required=false)
                                                                                                                                                    String... expandFields)
                                                                                                                 throws DatabaseException
Throws:
DatabaseException

retrieveCategoryCollectionJson

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

retrieveCategoryCollectionPost

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

retrieveCategoryCollectionJsonPost

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