private void checkIfEditViewCorrectShouldBeHidden(CareContextListVo voCareContext) { if (form.getGlobalContext().Core.getCurrentCareContext() == null || (voCareContext != null && form.getGlobalContext().Core.getCurrentCareContext() != null && ! form.getGlobalContext().Core.getCurrentCareContext().equals(voCareContext))) { form.getContextMenus().Clinical.getExtendedClinicalNotesCORRECTItem().setVisible(false); form.getContextMenus().Clinical.getExtendedClinicalNotesEDITItem().setVisible(false); form.getContextMenus().Clinical.getExtendedClinicalNotesCONFIRMEDItem().setVisible(false); } }
public CareContextListVo getCareContextList(Integer id) { if(id == null) throw new CodingRuntimeException("null id passed to getCareContextList !"); DomainFactory factory = getDomainFactory(); CareContext boCareContext = (CareContext)factory.getDomainObject(CareContext.class, id); return CareContextListVoAssembler.create(boCareContext); }