Class 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:
    Serialized Form
    • Constructor Detail

      • Categories

        public Categories()
    • Method Detail

      • getItems

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

        public void generateResponse​(org.kohsuke.stapler.StaplerRequest req,
                                     org.kohsuke.stapler.StaplerResponse rsp,
                                     Object node)
                              throws IOException,
                                     javax.servlet.ServletException
        Specified by:
        generateResponse in interface org.kohsuke.stapler.HttpResponse
        Throws:
        IOException
        javax.servlet.ServletException
      • getItem

        @CheckForNull
        public Category getItem​(@NonNull
                                String id)