class DefaultAdminService implements AdminService {

    @Override
    public Collection<JobConfiguration> getJobConfigurationsByJobName(final String jobName) {
        try {
            return this.jobConfigurationRepository.getJobConfigurations(jobName,
                    this.springBatchLightminCoreConfigurationProperties.getApplicationName());
        } catch (final NoSuchJobException | NoSuchJobConfigurationException e) {
            final String message = "No Job with name: " + jobName + " is registered";
            log.error(message);
            throw new SpringBatchLightminApplicationException(e, message);
        }
    }

    public  DefaultAdminService(final JobConfigurationRepository jobConfigurationRepository,
                               final SchedulerService schedulerService,
                               final ListenerService listenerService,
                               final SpringBatchLightminCoreConfigurationProperties springBatchLightminCoreConfigurationProperties
    );

}