/** * getConfiguration */ public ims.admin.vo.DocumentConversionSettingsVo getConfiguration(ims.admin.vo.ConfiguredJobVo configuredJob) { if(configuredJob == null) throw new CodingRuntimeException("Invalid job"); DomainFactory factory = getDomainFactory(); DocumentConversionSettings bo = DocumentConversionSettings.getDocumentConversionSettingsFromConfiguredJob(factory, configuredJob.getBoId()); return DocumentConversionSettingsVoAssembler.create(bo); }
/** * saveConfiguration */ public ims.admin.vo.DocumentConversionSettingsVo saveConfiguration(ims.admin.vo.DocumentConversionSettingsVo configuration) throws ims.domain.exceptions.StaleObjectException { if(configuration == null) throw new CodingRuntimeException("Invalid configuration"); if(!configuration.isValidated()) throw new CodingRuntimeException("Configuration not validated"); DomainFactory factory = getDomainFactory(); DocumentConversionSettings bo = DocumentConversionSettingsVoAssembler.extractDocumentConversionSettings(factory, configuration); getDomainFactory().save(bo); return DocumentConversionSettingsVoAssembler.create(bo); }