public ims.emergency.vo.AttendanceReqContractSettingsVo saveConfiguration(ims.emergency.vo.AttendanceReqContractSettingsVo record) throws ims.domain.exceptions.StaleObjectException { if(record == null) throw new CodingRuntimeException("Invalid configuration"); if(!record.isValidated()) throw new CodingRuntimeException("Configuration not validated"); DomainFactory factory = getDomainFactory(); AttendanceReqContractSettings bo = AttendanceReqContractSettingsVoAssembler.extractAttendanceReqContractSettings(factory, record); getDomainFactory().save(bo); return AttendanceReqContractSettingsVoAssembler.create(bo); }
public ims.emergency.vo.AttendanceReqContractSettingsVo getConfiguration(ConfiguredJobRefVo configuredJob) { if(configuredJob == null) throw new CodingRuntimeException("Invalid job"); DomainFactory factory = getDomainFactory(); AttendanceReqContractSettings bo = AttendanceReqContractSettings.getAttendanceReqContractSettingsFromConfiguredJob(factory, configuredJob.getBoId()); return AttendanceReqContractSettingsVoAssembler.create(bo); }
private AttendanceReqContractSettingsVo getJobDetails() { AttendanceReqContractSettings doAttendanceReqContractSettings = AttendanceReqContractSettings.getAttendanceReqContractSettingsFromConfiguredJob(getDomainFactory(), super.getConfiguredJob().getConfiguredScheduledJobID()); return AttendanceReqContractSettingsVoAssembler.create(doAttendanceReqContractSettings); }