public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo refTemplate) { if(refTemplate == null) throw new CodingRuntimeException("Cannot get TemplateBoLiteVo for null TemplateBoRefVo"); TemplateBo template = (TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, refTemplate.getID_TemplateBo()); return TemplateBoLiteVoAssembler.create(template); }
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template) { if (template == null || !template.getID_TemplateBoIsNotNull()) throw new DomainRuntimeException("Invalid template record"); return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo())); }
/** * WDEV-13704 * Function used to retrieve a template based on */ public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo templateRef) { if (templateRef == null || !templateRef.getID_TemplateBoIsNotNull()) return null; return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo())); }
public TemplateBoLiteVo getReportTemplateByName(String templateName) { DomainFactory factory = getDomainFactory(); String hql = "select template from TemplateBo as template where template.name =:tempName"; List <?> list = factory.find(hql,new String[]{"tempName"}, new Object[]{templateName}); if (list!=null && list.size()>0) return TemplateBoLiteVoAssembler.createTemplateBoLiteVoCollectionFromTemplateBo(list).get(0); return null; }
/** * Get required template report */ public TemplateBoLiteVo getTemplateReport(TemplateBoRefVo templateRef) { if (templateRef == null || templateRef.getID_TemplateBo() == null) return null; return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo())); }