Class CustomFolderIcon.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<com.cloudbees.hudson.plugins.folder.FolderIcon>
com.cloudbees.hudson.plugins.folder.FolderIconDescriptor
jenkins.plugins.foldericon.CustomFolderIcon.DescriptorImpl
All Implemented Interfaces:
Saveable, OnMaster
Enclosing class:
CustomFolderIcon

@Extension public static class CustomFolderIcon.DescriptorImpl extends com.cloudbees.hudson.plugins.folder.FolderIconDescriptor
The Descriptor.
Author:
strangelookingnerd
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<com.cloudbees.hudson.plugins.folder.FolderIcon>
    • isApplicable

      public boolean isApplicable(Class<? extends com.cloudbees.hudson.plugins.folder.AbstractFolder> folderType)
      Overrides:
      isApplicable in class com.cloudbees.hudson.plugins.folder.FolderIconDescriptor
    • doUploadIcon

      public org.kohsuke.stapler.HttpResponse doUploadIcon(org.kohsuke.stapler.StaplerRequest req, @AncestorInPath Item item)
      Uploads an icon.
      Parameters:
      req - the request containing the file
      item - the item to configure
      Returns:
      the filename or an error message
    • doCleanup

      public org.kohsuke.stapler.HttpResponse doCleanup(org.kohsuke.stapler.StaplerRequest req) throws InterruptedException, IOException
      Cleanup unused icons.
      Parameters:
      req - the request
      Returns:
      OK
      Throws:
      InterruptedException - if there is a file handling error
      IOException - if there is a file handling error