private PrintLocationConfigVo getPrintLocationConfiguration(Location hosp) { if(hosp != null) { ResultsPrintingConfig impl = (ResultsPrintingConfig) getDomainImpl(ResultsPrintingConfigImpl.class); return impl.getPrintLocationConfigByLocation(new LocationRefVo(hosp.getId(),hosp.getVersion())); } return null; }
/** * savePrintLocationConfigCollection */ public void savePrintLocationConfigCollection(PrintLocationConfigVoCollection voCollPrintLocConfig) throws StaleObjectException { if (voCollPrintLocConfig == null) throw new CodingRuntimeException("voCollPrintLocConfig is null in method savePrintLocationConfigCollection"); for(PrintLocationConfigVo voPrintLocConf : voCollPrintLocConfig) getDomainFactory().save(PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory(), voPrintLocConf)); }
/** * */ public PrintLocationConfigVo getPrintLocationConfigByLocation(LocationRefVo location) { if (location == null || location.getID_Location() == null) throw new CodingRuntimeException("location is null or id not provided in method getPrintLocationConfigByLocation"); ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf = ims.core.admin.domain.objects.PrintLocationConfig.getPrintLocationConfigFromSite(getDomainFactory(), location.getBoId()); if(doPrintLocConf != null) return PrintLocationConfigVoAssembler.create(doPrintLocConf); return null; }