private FormMenuActionsDeniedVoCollection getActionsDenied() { FormMenuActionsDeniedVoCollection result = new FormMenuActionsDeniedVoCollection(); for(int x = 0; x < form.lyrRights().tabActionsDenied().treActions().getNodes().size(); x++) { TreeNode formNode = form.lyrRights().tabActionsDenied().treActions().getNodes().get(x); AppFormVo formValue = (AppFormVo)formNode.getValue(); MenuActionVoCollection actions = new MenuActionVoCollection(); for(int y = 0; y < formNode.getNodes().size(); y++) { TreeNode itemNode = formNode.getNodes().get(y); if(itemNode.getValue() != null) { actions.add((MenuActionVo)itemNode.getValue()); } } if(actions.size() > 0) { FormMenuActionsDeniedVo item = new FormMenuActionsDeniedVo(); item.setForm(formValue); item.setMenuActions(actions); result.add(item); } } return result; }
private void populateMenuActions(FormMenuActionsDeniedVoCollection formMenuActionsDenied) { form.lyrRights().tabActionsDenied().treActions().clear(); if(formMenuActionsDenied != null) { for (FormMenuActionsDeniedVo item : formMenuActionsDenied) { addMenuActions(item); } } }