Class ThinBackupMgmtLink

java.lang.Object
hudson.model.ManagementLink
org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject

@Extension public class ThinBackupMgmtLink extends ManagementLink
A backup solution for Hudson. Backs up configuration files from Hudson and its jobs.

Originally based on the Backup plugin by Vincent Sellier, Manufacture Fran�aise des Pneumatiques Michelin, Romain Seguy, et.al. Subsequently heavily modified.

  • Constructor Details

    • ThinBackupMgmtLink

      public ThinBackupMgmtLink()
  • Method Details

    • getDisplayName

      public String getDisplayName()
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
      Specified by:
      getIconFileName in class ManagementLink
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
      Specified by:
      getUrlName in class ManagementLink
    • getDescription

      public String getDescription()
      Overrides:
      getDescription in class ManagementLink
    • doBackupManual

      @POST public void doBackupManual(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException
      Throws:
      IOException
    • doRestore

      @POST public void doRestore(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("restoreBackupFrom") String restoreBackupFrom, @QueryParameter("restoreNextBuildNumber") String restoreNextBuildNumber, @QueryParameter("restorePlugins") String restorePlugins) throws IOException
      Throws:
      IOException
    • getConfiguration

      public ThinBackupPluginImpl getConfiguration()
    • getAvailableBackups

      public List<String> getAvailableBackups()
    • doFillBackupItems

      @POST public ListBoxModel doFillBackupItems()
    • getCategory

      @NonNull public ManagementLink.Category getCategory()
      Name of the category for this management link. Exists so that plugins with core dependency pre-dating the version when this was introduced can define a category.

      Overrides:
      getCategory in class ManagementLink
      Returns:
      name of the desired category, one of the enum values of Category, e.g. STATUS.
      Since:
      2.226