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
Modifier and TypeClassDescriptionstatic class
PropertyMigration.Migrator<F extends com.cloudbees.hudson.plugins.folder.AbstractFolder<?>,
P extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<F>> static class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
apply
(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) static void
applyAll
(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) final boolean
canApply()
final boolean
abstract org.jvnet.localizer.Localizable
final String
final String
final String
final String
final int
hashCode()
final boolean
isApplicable
(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) protected boolean
Whether thisPropertyMigration
is enabled.final boolean
final boolean
-
Constructor Details
-
PropertyMigration
-
-
Method Details
-
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
-
getPluginDisplayName
-
getPluginInstallId
-
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) -
equals
-
hashCode
public final int hashCode() -
applyAll
public static void applyAll(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
-