return operationSchedules;
}
@Override
public ResourceOperationSchedule getResourceOperationSchedule(Subject whoami, int scheduleId) {
OperationScheduleEntity operationScheduleEntity = entityManager.find(OperationScheduleEntity.class, scheduleId);
try {
ResourceOperationSchedule resourceOperationSchedule = getResourceOperationSchedule(whoami,
operationScheduleEntity.getJobId().toString());
return resourceOperationSchedule;
} catch (SchedulerException e) {
throw new RuntimeException("Failed to retrieve ResourceOperationSchedule with id [" + scheduleId + "].", e);
}
}