Class WaveformsCollectionJsonController
java.lang.Object
gov.llnl.gnem.apps.coda.common.application.web.WaveformsCollectionJsonController
@RestController
@CrossOrigin
@RequestMapping(value={"/api/v1/waveforms","/api/v1/waveforms/"},
name="WaveformsCollectionJsonController",
produces="application/json")
public class WaveformsCollectionJsonController
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
createBatch
(Long sessionId, @Valid Set<Waveform> waveforms, org.springframework.validation.BindingResult result) org.springframework.http.ResponseEntity<?>
deleteBatch
(Collection<Long> ids) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
getBatch
(Collection<Long> ids) org.springframework.http.ResponseEntity<?>
getBatchMetadata
(List<Long> ids) org.springframework.http.ResponseEntity<?>
getByExampleAllMatching
(Waveform waveform, org.springframework.validation.BindingResult result) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
setActiveFlagByEventId
(Boolean active, @Valid String eventId, org.springframework.validation.BindingResult result) org.springframework.http.ResponseEntity<?>
setActiveFlagByStationName
(Boolean active, @Valid String stationName, org.springframework.validation.BindingResult result) org.springframework.http.ResponseEntity<?>
setActiveFlagByStationNameAndEventId
(Boolean active, @Valid String stationName, @Valid String eventId, org.springframework.validation.BindingResult result) org.springframework.http.ResponseEntity<?>
setActiveFlagsById
(Boolean active, @Valid List<Long> waveformIds, org.springframework.validation.BindingResult result) void
setWaveformService
(WaveformService waveformService) org.springframework.http.ResponseEntity<?>
updateBatch
(Long sessionId, @Valid Set<Waveform> waveforms, org.springframework.validation.BindingResult result)
-
Constructor Details
-
WaveformsCollectionJsonController
-
-
Method Details
-
getByExampleAllMatching
@PostMapping(value={"/query/all","/query/all/"}, name="getByExampleAllMatching") public org.springframework.http.ResponseEntity<?> getByExampleAllMatching(@RequestBody Waveform waveform, org.springframework.validation.BindingResult result) -
getAllStacks
@GetMapping(value={"/query/stacks","/query/stacks/"}, name="getAllStacks") public org.springframework.http.ResponseEntity<?> getAllStacks() -
getAllActiveStacks
@GetMapping(value={"/query/active-stacks","/query/active-stacks/"}, name="getAllActiveStacks") public org.springframework.http.ResponseEntity<?> getAllActiveStacks() -
getUniqueEventStationStacks
@GetMapping(value={"/query/unique-by-event-station","/query/unique-by-event-station/"}, name="getAllStacks") public org.springframework.http.ResponseEntity<?> getUniqueEventStationStacks() -
setActiveFlagsById
-
setActiveFlagByEventId
-
setActiveFlagByStationName
@PostMapping(value="/set-active/by-station-name/{active}", name="setActiveFlagByStationName") public org.springframework.http.ResponseEntity<?> setActiveFlagByStationName(@PathVariable Boolean active, @Valid @RequestBody @Valid String stationName, org.springframework.validation.BindingResult result) -
setActiveFlagByStationNameAndEventId
@PostMapping(value="/set-active/by-station-name-and-event-id/{active}", name="setActiveFlagByStationNameAndEventId") public org.springframework.http.ResponseEntity<?> setActiveFlagByStationNameAndEventId(@PathVariable Boolean active, @Valid @RequestBody @Valid String stationName, @Valid @RequestBody @Valid String eventId, org.springframework.validation.BindingResult result) -
getBatchMetadata
-
getBatch
@GetMapping(value="/batch/{ids}", name="getBatch") public org.springframework.http.ResponseEntity<?> getBatch(@PathVariable("ids") Collection<Long> ids) -
createBatch
-
updateBatch
-
deleteBatch
@DeleteMapping(value="/batch/{ids}", name="deleteBatch") public org.springframework.http.ResponseEntity<?> deleteBatch(@PathVariable("ids") Collection<Long> ids) -
getWaveformService
-
setWaveformService
-