class SchedulerJobServiceImpl implements SchedulerJobService {

	@Override
	public void updateExploratorySchedulerData(String user, String project, String exploratoryName, SchedulerJobDTO dto) {
		validateExploratoryStatus(user, project, exploratoryName);
		populateDefaultSchedulerValues(dto);
		log.debug("Updating exploratory {} for user {} with new scheduler job data: {}...", exploratoryName, user,
				dto);
		exploratoryDAO.updateSchedulerDataForUserAndExploratory(user, project, exploratoryName, dto);

		if (!dto.inactivityScheduler() && dto.isSyncStartRequired()) {
			shareSchedulerJobDataToSparkClusters(user, project, exploratoryName, dto);
		} else if (!dto.inactivityScheduler()) {
			computationalDAO.updateSchedulerSyncFlag(user, project, exploratoryName, dto.isSyncStartRequired());
		}
	}

}