Class SensitivityController

java.lang.Object
app.valuationcontrol.webservice.model.sensitivity.SensitivityController

@RestController public class SensitivityController extends Object
  • Constructor Details

    • SensitivityController

      @Autowired public SensitivityController(XLHandleManager xlHandleManager, EntityService entityService, Events events)
      Initializes the Sensitivity controller and establish link to database
  • Method Details

    • addSensitivity

      @PostMapping("/api/model/{modelId}/sensitivity") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<Long> addSensitivity(@PathVariable("modelId") Model model, @Valid @RequestBody @Valid SensitivityData sensitivityData, Principal principal)
    • updateSensitivity

      @PutMapping("/api/model/{modelId}/sensitivity/{sensitivityId}") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<String> updateSensitivity(@PathVariable("modelId") Model model, @PathVariable("sensitivityId") Sensitivity existingSensitivity, @Valid @RequestBody @Valid SensitivityData sensitivityData, Principal principal)
    • deleteSensitivity

      @DeleteMapping("/api/model/{modelId}/sensitivity/{sensitivityId}") @PreAuthorize("authentication.principal.hasModelRole(#model,\'EDITOR\')") public org.springframework.http.ResponseEntity<String> deleteSensitivity(@PathVariable("modelId") Model model, @PathVariable("sensitivityId") Sensitivity sensitivity, Principal principal)
    • runSensitivities

      @PostMapping("/api/model/{modelId}/sensitivity/run") @PreAuthorize("authentication.principal.hasModelRole(#model,\'READER\')") public org.springframework.http.ResponseEntity<String> runSensitivities(@PathVariable("modelId") Model model, @RequestParam("scenario_number") Integer scenarioNumber, Principal principal)