/** * Saves the given report template and valueobject relationship */ public ims.admin.vo.ReportTemplateBoRefVo saveAssignedTemplates(ims.admin.vo.ReportTemplateBoRefVo reference) throws ims.domain.exceptions.StaleObjectException { DomainFactory factory = getDomainFactory(); ReportTemplateBoRef domRep = ReportTemplateBoRefVoAssembler.extractReportTemplateBoRef(factory, reference); factory.save(domRep); return ReportTemplateBoRefVoAssembler.create(domRep); }
/** * Returns the template assigned to the currently selected Business Object */ public ims.admin.vo.ReportTemplateBoRefVo getAssignedTemplate(String businessObject) { ReportTemplateBoRef domRep = ReportTemplateBoRef.getReportTemplateBoRefFromBusinessObj(getDomainFactory(), businessObject); return ReportTemplateBoRefVoAssembler.create(domRep); }
public ReportTemplateBoRefVoCollection listAssignedTemplates() { return ReportTemplateBoRefVoAssembler.createReportTemplateBoRefVoCollectionFromReportTemplateBoRef( getDomainFactory().find("from ReportTemplateBoRef")); }