Class WaveformServiceImpl
java.lang.Object
gov.llnl.gnem.apps.coda.common.service.impl.WaveformServiceImpl
- All Implemented Interfaces:
BaseService<Waveform,
,Long> WaveformService
-
Constructor Summary
ConstructorDescriptionWaveformServiceImpl
(WaveformRepository waveformRepository, SpectraMeasurementRepository spectraMeasurementRepository, SpectraCalculator spectraCalc, SyntheticRepository syntheticRepository, SharedFrequencyBandParametersRepository sfbRepository, SiteFrequencyBandParametersRepository siteParamsRepository, VelocityConfigurationRepository velocityConfigRepository, NotificationService notificationService) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
void
void
findAll()
findAllActiveStacksByEventIdAndStationNames
(String eventId, List<String> stationNames) findAllMetadata
(List<Long> ids) findEventById
(String eventId) findOneForUpdate
(Long id) getAllActiveStacksInStationNames
(List<String> stationNames) getByExampleAllDistinctMatching
(Waveform waveform) getByMatchingKeys
(Station station, String eventId, Double lowFrequency, Double highFrequency) setActiveFlagByEventId
(String eventId, boolean active) setActiveFlagByStationName
(String stationName, boolean active) setActiveFlagByStationNameAndEventId
(String stationName, String eventId, boolean active) setActiveFlagForIds
(List<Long> selectedWaveforms, boolean active) void
setWaveformRepository
(WaveformRepository waveformRepository) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.llnl.gnem.apps.coda.common.service.api.BaseService
deleteAll
-
Constructor Details
-
Method Details
-
getWaveformRepository
-
setWaveformRepository
-
delete
- Specified by:
delete
in interfaceBaseService<Waveform,
Long>
-
save
- Specified by:
save
in interfaceBaseService<Waveform,
Long>
-
delete
- Specified by:
delete
in interfaceBaseService<Waveform,
Long>
-
save
- Specified by:
save
in interfaceBaseService<Waveform,
Long>
-
findOne
- Specified by:
findOne
in interfaceBaseService<Waveform,
Long>
-
findOneForUpdate
- Specified by:
findOneForUpdate
in interfaceBaseService<Waveform,
Long>
-
findAll
- Specified by:
findAll
in interfaceBaseService<Waveform,
Long>
-
findAllMetadata
- Specified by:
findAllMetadata
in interfaceWaveformService
-
findAll
- Specified by:
findAll
in interfaceBaseService<Waveform,
Long>
-
count
public long count()- Specified by:
count
in interfaceBaseService<Waveform,
Long>
-
getEntityType
-
getIdType
-
update
- Specified by:
update
in interfaceWaveformService
-
update
- Specified by:
update
in interfaceWaveformService
-
getAllActiveStacks
- Specified by:
getAllActiveStacks
in interfaceWaveformService
-
getAllStacks
- Specified by:
getAllStacks
in interfaceWaveformService
-
findAllActiveStacksByEventIdAndStationNames
public List<Waveform> findAllActiveStacksByEventIdAndStationNames(String eventId, List<String> stationNames) - Specified by:
findAllActiveStacksByEventIdAndStationNames
in interfaceWaveformService
-
getAllActiveStacksInStationNames
- Specified by:
getAllActiveStacksInStationNames
in interfaceWaveformService
-
getByExampleAllDistinctMatching
- Specified by:
getByExampleAllDistinctMatching
in interfaceWaveformService
-
getUniqueEventStationStacks
- Specified by:
getUniqueEventStationStacks
in interfaceWaveformService
-
findEventById
- Specified by:
findEventById
in interfaceWaveformService
-
setActiveFlagForIds
- Specified by:
setActiveFlagForIds
in interfaceWaveformService
-
setActiveFlagByEventId
- Specified by:
setActiveFlagByEventId
in interfaceWaveformService
-
setActiveFlagByStationName
- Specified by:
setActiveFlagByStationName
in interfaceWaveformService
-
setActiveFlagByStationNameAndEventId
public List<Long> setActiveFlagByStationNameAndEventId(String stationName, String eventId, boolean active) - Specified by:
setActiveFlagByStationNameAndEventId
in interfaceWaveformService
-
getUniqueEventIds
- Specified by:
getUniqueEventIds
in interfaceWaveformService
-
getByMatchingKeys
public Waveform getByMatchingKeys(Station station, String eventId, Double lowFrequency, Double highFrequency) - Specified by:
getByMatchingKeys
in interfaceWaveformService
-