use of hudson.model.Item in project blueocean-plugin by jenkinsci.
the class FavoriteContainerImpl method iterator.
@Override
public Iterator<BlueFavorite> iterator() {
List<BlueFavorite> favorites = new ArrayList<>();
Jenkins j = Jenkins.getInstance();
for (final Item favorite : Favorites.getFavorites(user.user)) {
if (favorite instanceof AbstractFolder) {
continue;
}
BlueFavorite blueFavorite = FavoriteUtil.getFavorite(favorite);
if (blueFavorite != null) {
favorites.add(blueFavorite);
}
}
return favorites.iterator();
}
use of hudson.model.Item in project blueocean-plugin by jenkinsci.
the class PipelineContainerImpl method get.
@Override
public BluePipeline get(String name) {
Item item;
item = itemGroup.getItem(name);
if (item == null) {
throw new ServiceException.NotFoundException(String.format("Pipeline %s not found", name));
}
return BluePipelineFactory.getPipelineInstance(item, this);
}
Aggregations