/** * Gets all the {@link Item}s unordered, lazily and recursively in the {@link ItemGroup} tree * and filter them by the given type. * @since 2.93 */ default <T extends Item> Iterable<T> allItems(Class<T> type) { return Items.allItems(this, type); }
/** * Gets a read-only view of all the {@link Item}s recursively in the {@link ItemGroup} tree visible to * {@link Jenkins#getAuthentication()} without concern for the order in which items are returned. Each iteration * of the view will be "live" reflecting the items available between the time the iteration was started and the * time the iteration was completed, however if items are moved during an iteration - depending on the move - it * may be possible for such items to escape the entire iteration. * * @param root the root. * @param type the type. * @param <T> the type. * @return An {@link Iterable} for all items. * @since 2.37 */ public static <T extends Item> Iterable<T> allItems(ItemGroup root, Class<T> type) { return allItems(Jenkins.getAuthentication(), root, type); }
for (final Item child : Items.allItems(ACL.SYSTEM, (ItemGroup)rootItem, Item.class)) { final String childNew = child.getFullName(); assert childNew.startsWith(newFullName);
/** * Gets all the {@link Item}s unordered, lazily and recursively in the {@link ItemGroup} tree * and filter them by the given type. * * @since 2.37 */ public <T extends Item> Iterable<T> allItems(Class<T> type) { return Items.allItems(this, type); }
/** * Gets a read-only view of all the {@link Item}s recursively in the {@link ItemGroup} tree visible to * {@link Jenkins#getAuthentication()} without concern for the order in which items are returned. Each iteration * of the view will be "live" reflecting the items available between the time the iteration was started and the * time the iteration was completed, however if items are moved during an iteration - depending on the move - it * may be possible for such items to escape the entire iteration. * * @param root the root. * @param type the type. * @param <T> the type. * @return An {@link Iterable} for all items. * @since 2.37 */ public static <T extends Item> Iterable<T> allItems(ItemGroup root, Class<T> type) { return allItems(Jenkins.getAuthentication(), root, type); }
for (final Item child : Items.allItems(ACL.SYSTEM, (ItemGroup)rootItem, Item.class)) { final String childNew = child.getFullName(); assert childNew.startsWith(newFullName);
ITEM: for (Item g : Items.allItems(ACL.SYSTEM, instance, Item.class)) { if (g instanceof DirectlyModifiableTopLevelItemGroup) { DirectlyModifiableTopLevelItemGroup itemGroup = (DirectlyModifiableTopLevelItemGroup) g;