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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.ManagementLink
LIST
-
-
Constructor Summary
Constructors Constructor Description ThinBackupMgmtLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doBackupManual(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp)
ListBoxModel
doFillBackupItems()
void
doRestore(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp, String restoreBackupFrom, String restoreNextBuildNumber, String restorePlugins)
List<String>
getAvailableBackups()
ManagementLink.Category
getCategory()
Name of the category for this management link.ThinBackupPluginImpl
getConfiguration()
String
getDescription()
String
getDisplayName()
String
getIconFileName()
String
getUrlName()
-
Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getDescription
public String getDescription()
- Overrides:
getDescription
in classManagementLink
-
doBackupManual
@POST public void doBackupManual(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
- Throws:
IOException
-
doRestore
@POST public void doRestore(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("restoreBackupFrom") String restoreBackupFrom, @QueryParameter("restoreNextBuildNumber") String restoreNextBuildNumber, @QueryParameter("restorePlugins") String restorePlugins) throws IOException
- Throws:
IOException
-
getConfiguration
public ThinBackupPluginImpl getConfiguration()
-
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 classManagementLink
- Returns:
- name of the desired category, one of the enum values of Category, e.g.
STATUS
. - Since:
- 2.226
-
-