org.molgenis.controller
Class LongValueController

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

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


Constructor Summary
LongValueController()
           
 
Method Summary
 org.springframework.http.ResponseEntity<org.molgenis.controller.LongValueController.LongValueResponse> createLongValue(org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.LongValueController.LongValueResponse> createLongValueFromForm(org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
           
 void deleteLongValue(Integer id)
           
 void deleteLongValuePost(Integer id)
           
 void handleDatabaseAccessException(DatabaseAccessException e)
           
 void handleEntityNotFoundException(EntityNotFoundException e)
           
 org.molgenis.controller.LongValueController.LongValueResponse retrieveLongValue(Integer id, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.LongValueController.LongValueResponse> retrieveLongValueCollection(EntityCollectionRequest longValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.LongValueController.LongValueResponse> retrieveLongValueCollectionJson(EntityCollectionRequest longValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.LongValueController.LongValueResponse> retrieveLongValueCollectionJsonPost(EntityCollectionRequest longValueCollectionRequest, String... expandFields)
           
 EntityCollectionResponse<org.molgenis.controller.LongValueController.LongValueResponse> retrieveLongValueCollectionPost(EntityCollectionRequest longValueCollectionRequest, String... expandFields)
           
 org.molgenis.controller.LongValueController.LongValueResponse retrieveLongValueJson(Integer id, String... expandFields)
           
 void updateLongValue(Integer id, org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
           
 org.springframework.http.ResponseEntity<org.molgenis.controller.LongValueController.LongValueResponse> updateLongValueFromForm(Integer id, String _method, org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
           
 void updateLongValueFromFormPost(Integer id, org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
           
 void updateLongValuePost(Integer id, org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongValueController

public LongValueController()
Method Detail

createLongValue

@RequestMapping(method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.LongValueController.LongValueResponse> createLongValue(@RequestBody
                                                                                                                                                          org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
                                                                                                                       throws DatabaseException
Throws:
DatabaseException

createLongValueFromForm

@RequestMapping(method=POST,
                headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.LongValueController.LongValueResponse> createLongValueFromForm(@ModelAttribute
                                                                                                                                                                  org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
                                                                                                                               throws DatabaseException
Throws:
DatabaseException

retrieveLongValue

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

retrieveLongValueJson

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

updateLongValue

@RequestMapping(value="/{id}",
                method=PUT)
@ResponseStatus(value=OK)
public void updateLongValue(@PathVariable
                                                          Integer id,
                                                          @RequestBody
                                                          org.molgenis.controller.LongValueController.LongValueRequest longValueRequest)
                     throws DatabaseException
Throws:
DatabaseException

updateLongValueFromForm

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

updateLongValuePost

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

updateLongValueFromFormPost

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

deleteLongValue

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

deleteLongValuePost

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

retrieveLongValueCollection

@RequestMapping(method=GET)
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.LongValueController.LongValueResponse> retrieveLongValueCollection(EntityCollectionRequest longValueCollectionRequest,
                                                                                                                                                       @RequestParam(value="expand",required=false)
                                                                                                                                                       String... expandFields)
                                                                                                                    throws DatabaseException
Throws:
DatabaseException

retrieveLongValueCollectionJson

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

retrieveLongValueCollectionPost

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

retrieveLongValueCollectionJsonPost

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