public ims.emergency.vo.AtteandanceReqContrJobSettingsVo getConfiguration(ims.admin.vo.ConfiguredJobVo configuredJobVo) { if(configuredJobVo == null) throw new CodingRuntimeException("Invalid job"); DomainFactory factory = getDomainFactory(); AttendanceReqContServiceSettings bo = AttendanceReqContServiceSettings.getAttendanceReqContServiceSettingsFromConfiguredJob(factory, configuredJobVo.getBoId()); return AtteandanceReqContrJobSettingsVoAssembler.create(bo); }
public ims.emergency.vo.AtteandanceReqContrJobSettingsVo saveConfiguration(ims.emergency.vo.AtteandanceReqContrJobSettingsVo configurationVo) throws ims.domain.exceptions.StaleObjectException { if(configurationVo == null) throw new CodingRuntimeException("Invalid configuration"); if(!configurationVo.isValidated()) throw new CodingRuntimeException("Configuration not validated"); DomainFactory factory = getDomainFactory(); AttendanceReqContServiceSettings bo = AtteandanceReqContrJobSettingsVoAssembler.extractAttendanceReqContServiceSettings(factory, configurationVo); getDomainFactory().save(bo); return AtteandanceReqContrJobSettingsVoAssembler.create(bo); }