@Override public int hashCode() { return getJobId().hashCode(); }
@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); } }
@Override public GroupOperationSchedule getGroupOperationSchedule(Subject whoami, int scheduleId) { OperationScheduleEntity operationScheduleEntity = entityManager.find(OperationScheduleEntity.class, scheduleId); try { GroupOperationSchedule groupOperationSchedule = getGroupOperationSchedule(whoami, operationScheduleEntity .getJobId().toString()); return groupOperationSchedule; } catch (SchedulerException e) { throw new RuntimeException("Failed to retrieve GroupOperationSchedule with id [" + scheduleId + "].", e); } }