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 ClassesModifier and TypeClassDescriptionstatic classPropertyMigration.Migrator<F extends com.cloudbees.hudson.plugins.folder.AbstractFolder<?>,P extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<F>> static classNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidapply(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) static voidapplyAll(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) final booleancanApply()final booleanabstract org.jvnet.localizer.Localizablefinal Stringfinal Stringfinal Stringfinal Stringfinal inthashCode()final booleanisApplicable(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) protected booleanWhether thisPropertyMigrationis enabled.final booleanfinal 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 thisPropertyMigrationis enabled. If it is enabled, and a correspondingPropertyMigration.Migratorextension is available, the migration will be applied automatically. If it is enabled, and no correspondingPropertyMigration.Migratorextension 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
PropertyMigrationis 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)
-