class AlertServiceImpl extends RootTransactionalService implements AlertService {

    @Override
    public ServiceResult<List<AlertResource>> findAllVisibleByType(AlertType type) {
        return serviceSuccess(simpleMap(alertRepository.findAllVisibleByType(type, now()), alertMapper::mapToResource));
    }

}