Class Categories

java.lang.Object
jenkins.model.item_category.Categories
All Implemented Interfaces:
Serializable, org.kohsuke.stapler.HttpResponse

@ExportedBean @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class Categories extends Object implements org.kohsuke.stapler.HttpResponse, Serializable
It is a logic representation of a set of Category. This class is not thread-safe.
Since:
2.0
See Also:
  • Constructor Details

    • Categories

      public Categories()
  • Method Details

    • getItems

      @Exported(name="categories") public List<Category> getItems()
    • generateResponse

      public void generateResponse(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, Object node) throws IOException, jakarta.servlet.ServletException
      Specified by:
      generateResponse in interface org.kohsuke.stapler.HttpResponse
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getItem

      @CheckForNull public Category getItem(@NonNull String id)