Package jenkins.branch
Class PropertyMigration<F extends com.cloudbees.hudson.plugins.folder.AbstractFolder<?>,P extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<F>>
- java.lang.Object
-
- jenkins.branch.PropertyMigration<F,P>
-
- Type Parameters:
F
- the type of folder to which the migration is scoped.P
- the type of property to which the migration applies.
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
NoTriggerOrganizationFolderProperty.PropertyMigrationImpl
public abstract class PropertyMigration<F extends com.cloudbees.hudson.plugins.folder.AbstractFolder<?>,P extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<F>> extends Object implements ExtensionPoint
An extension point that captures the need for a complex migration of a folder property into some other configuration of the containing folder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyMigration.Migrator<F extends com.cloudbees.hudson.plugins.folder.AbstractFolder<?>,P extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<F>>
static class
PropertyMigration.MonitorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
apply(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
static void
applyAll(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
boolean
canApply()
boolean
equals(Object o)
abstract org.jvnet.localizer.Localizable
getDescription()
String
getPluginDisplayName()
String
getPluginInstallId()
String
getPluginName()
String
getPluginVersion()
int
hashCode()
boolean
isApplicable(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
protected boolean
isEnabled()
Whether thisPropertyMigration
is enabled.boolean
isPendingRestart()
boolean
isPluginUpgrade()
-
-
-
Method Detail
-
isApplicable
public final boolean isApplicable(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
-
canApply
public final boolean canApply()
-
isEnabled
protected boolean isEnabled()
Whether thisPropertyMigration
is enabled. If it is enabled, and a correspondingPropertyMigration.Migrator
extension is available, the migration will be applied automatically. If it is enabled, and no correspondingPropertyMigration.Migrator
extension is available, then an admin monitor will be shown suggested that the user install or update a plugin that provides the migration. If it is disabled, then neither of these things will happen.- Returns:
- true if this
PropertyMigration
is enabled, false if it is disabled.
-
getPluginName
public final String getPluginName()
-
getPluginDisplayName
public final String getPluginDisplayName()
-
getPluginInstallId
public final String getPluginInstallId()
-
getPluginVersion
public final String getPluginVersion()
-
isPendingRestart
public final boolean isPendingRestart()
-
isPluginUpgrade
public final boolean isPluginUpgrade()
-
getDescription
public abstract org.jvnet.localizer.Localizable getDescription()
-
apply
public final void apply(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
-
applyAll
public static void applyAll(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
-
-