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 Details

    • WaveformsCollectionJsonController

      @Autowired public WaveformsCollectionJsonController(WaveformService waveformService)
  • 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()
    • getSharedEventStationStacksById

      @GetMapping(value="/query/shared-event-station-by-id/{id}", name="getSharedEventStationStacksById") public org.springframework.http.ResponseEntity<?> getSharedEventStationStacksById(@PathVariable Long id)
    • getActiveSharedEventStationStacksById

      @GetMapping(value="/query/active-shared-event-station-by-id/{id}", name="getActiveSharedEventStationStacksById") public org.springframework.http.ResponseEntity<?> getActiveSharedEventStationStacksById(@PathVariable Long id)
    • getUniqueEventStationStacks

      @GetMapping(value={"/query/unique-by-event-station","/query/unique-by-event-station/"}, name="getAllStacks") public org.springframework.http.ResponseEntity<?> getUniqueEventStationStacks()
    • setActiveFlagsById

      @PostMapping(value="/set-active/batch/{active}", name="setActiveFlagsById") public org.springframework.http.ResponseEntity<?> setActiveFlagsById(@PathVariable Boolean active, @Valid @RequestBody @Valid List<Long> waveformIds, org.springframework.validation.BindingResult result)
    • setActiveFlagByEventId

      @PostMapping(value="/set-active/by-event-id/{active}", name="setActiveFlagByEventId") public org.springframework.http.ResponseEntity<?> setActiveFlagByEventId(@PathVariable Boolean active, @Valid @RequestBody @Valid String eventId, org.springframework.validation.BindingResult result)
    • 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

      @GetMapping(value="/metadata/batch/{ids}", name="getBatchMetadata") public org.springframework.http.ResponseEntity<?> getBatchMetadata(@PathVariable("ids") List<Long> ids)
    • getBatch

      @GetMapping(value="/batch/{ids}", name="getBatch") public org.springframework.http.ResponseEntity<?> getBatch(@PathVariable("ids") Collection<Long> ids)
    • createBatch

      @PostMapping(value="/batch/{sessionId}", name="createBatch") public org.springframework.http.ResponseEntity<?> createBatch(@PathVariable Long sessionId, @Valid @RequestBody @Valid Set<Waveform> waveforms, org.springframework.validation.BindingResult result)
    • updateBatch

      @PutMapping(value="/batch/{sessionId}", name="updateBatch") public org.springframework.http.ResponseEntity<?> updateBatch(@PathVariable Long sessionId, @Valid @RequestBody @Valid Set<Waveform> waveforms, org.springframework.validation.BindingResult result)
    • deleteBatch

      @DeleteMapping(value="/batch/{ids}", name="deleteBatch") public org.springframework.http.ResponseEntity<?> deleteBatch(@PathVariable("ids") Collection<Long> ids)
    • getWaveformService

      public WaveformService getWaveformService()
    • setWaveformService

      public void setWaveformService(WaveformService waveformService)