@MethodFilter public List<String> getViewComponentIds() { User user = Common.getUser(); List<String> result = new ArrayList<String>(); for (ViewComponent vc : user.getView().getViewComponents()) result.add(vc.getId()); return result; }
private ViewComponent getViewComponent(View view, String viewComponentId) { for (ViewComponent viewComponent : view.getViewComponents()) { if (viewComponent.getId().equals(viewComponentId)) return viewComponent; } return null; }