/** * Returns true if the user can access the specified node, or one of the nodes below it * * <p>the specified nodes * * @param node * @param user * @param mode * @return */ private boolean canAccessChild(SecureTreeNode node, Authentication user, AccessMode mode) { if (node.canAccess(user, mode)) { return true; } for (SecureTreeNode child : node.getChildren().values()) { if (canAccessChild(child, user, mode)) { return true; } } return false; }
List<Filter> exceptions = new ArrayList<>(); for (Map.Entry<String, SecureTreeNode> entry : root.getChildren().entrySet()) { String wsName = entry.getKey(); SecureTreeNode node = entry.getValue(); for (Map.Entry<String, SecureTreeNode> wsEntry : root.getChildren().entrySet()) { String wsName = wsEntry.getKey(); SecureTreeNode wsNode = wsEntry.getValue(); wsNode.getChildren().entrySet()) { String layerName = layerEntry.getKey(); SecureTreeNode layerNode = layerEntry.getValue(); List<Filter> exceptions = new ArrayList<>(); for (Map.Entry<String, SecureTreeNode> entry : root.getChildren().entrySet()) { String wsName = entry.getKey(); SecureTreeNode node = entry.getValue();