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())); }
public TemplateAssociationsVo getTemplateAssociation(TemplateBoRefVo templateID) throws DomainInterfaceException { if (templateID == null) throw new CodingRuntimeException("Can not search on null user"); DomainFactory factory = getDomainFactory(); return TemplateAssociationsVoAssembler.create( TemplateAssociations.getTemplateAssociationsFromTemplate( factory, templateID.getID_TemplateBo())); }