private void setReadWriteForEpisEnd() { INavigationNode val = (INavigationNode) form.treNav().getValue(); AppNavAccessRightsVo rights = new AppNavAccessRightsVo(); rights.setAccessForEPISE(FormReadWrite.WRITE); val.setAccessRightsNode(rights); populateTree(form.getLocalContext().getSelectedNav()); }
private void setReadOnlyForEpisEnd() { INavigationNode val = (INavigationNode) form.treNav().getValue(); AppNavAccessRightsVo rights = new AppNavAccessRightsVo(); if (val.getAccessRightsNode() == null) rights.setAccessForEPISE(FormReadWrite.READ); else if (val.getAccessRightsNode().getAccessForEPISE().equals(FormReadWrite.READ)) rights.setAccessForEPISE(FormReadWrite.WRITE); else rights.setAccessForEPISE(FormReadWrite.READ); val.setAccessRightsNode(rights); populateTree(form.getLocalContext().getSelectedNav()); }
/** * */ private void setReadWriteForRIP() { INavigationNode val = (INavigationNode) form.treNav().getValue(); AppNavAccessRightsVo rights = new AppNavAccessRightsVo(); rights.setAccessForRIP(FormReadWrite.WRITE); val.setAccessRightsNode(rights); populateTree(form.getLocalContext().getSelectedNav()); }
private void setReadOnlyForRIP() { INavigationNode val = (INavigationNode) form.treNav().getValue(); AppNavAccessRightsVo rights = new AppNavAccessRightsVo(); if (val.getAccessRightsNode() == null) rights.setAccessForRIP(FormReadWrite.READ); else if (val.getAccessRightsNode().getAccessForRIP().equals(FormReadWrite.READ)) rights.setAccessForRIP(FormReadWrite.WRITE); else rights.setAccessForRIP(FormReadWrite.READ); val.setAccessRightsNode(rights); populateTree(form.getLocalContext().getSelectedNav()); }
private void setReadWrite() { /* * This is only used when operating on group menus. For leaf items the * SetReadOnly menu options is reused */ INavigationNode val = (INavigationNode) form.treNav().getValue(); AppNavAccessRightsVo rights = new AppNavAccessRightsVo(); rights.setReadOnly(false); val.setAccessRightsNode(rights); populateTree(form.getLocalContext().getSelectedNav()); }
private void setReadOnly() { INavigationNode val = (INavigationNode) form.treNav().getValue(); AppNavAccessRightsVo rights = new AppNavAccessRightsVo(); rights.setReadOnly(true); val.setAccessRightsNode(rights); populateTree(form.getLocalContext().getSelectedNav()); }