Package jenkins.branch
Class OrganizationChildOrphanedItemsProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C>
jenkins.branch.OrganizationFolderProperty<OrganizationFolder>
jenkins.branch.OrganizationChildOrphanedItemsProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
public class OrganizationChildOrphanedItemsProperty
extends OrganizationFolderProperty<OrganizationFolder>
Configures the
OrphanedItemStrategy to use for children of a OrganizationFolder.- Since:
- 2.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur descriptor.static final classSpecial marker class to flag copying the parent strategy.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner -
Constructor Summary
ConstructorsConstructorDescriptionOrganizationChildOrphanedItemsProperty(com.cloudbees.hudson.plugins.folder.computed.OrphanedItemStrategy strategy) Our constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecorate(MultiBranchProject<?, ?> child, TaskListener listener) SPI for performing an idempotent application of this property's decoration to the supplied child.com.cloudbees.hudson.plugins.folder.computed.OrphanedItemStrategyReturns the strategy we enforce.Creates a new default instance of this property.Methods inherited from class jenkins.branch.OrganizationFolderProperty
applyDecoration, getDescriptorMethods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, reconfigure, reconfigure, setOwner
-
Constructor Details
-
OrganizationChildOrphanedItemsProperty
@DataBoundConstructor public OrganizationChildOrphanedItemsProperty(com.cloudbees.hudson.plugins.folder.computed.OrphanedItemStrategy strategy) Our constructor.- Parameters:
strategy- the OrphanedItemStrategy to be applied to this property
-
-
Method Details
-
newDefaultInstance
Creates a new default instance of this property.- Returns:
- a new default instance of this property.
-
getStrategy
public com.cloudbees.hudson.plugins.folder.computed.OrphanedItemStrategy getStrategy()Returns the strategy we enforce.- Returns:
- the strategy we enforce.
-
decorate
protected void decorate(@NonNull MultiBranchProject<?, ?> child, @NonNull TaskListener listener) throws IOExceptionSPI for performing an idempotent application of this property's decoration to the supplied child. If the child is already correctly decorated then the child must be unchanged.- Specified by:
decoratein classOrganizationFolderProperty<OrganizationFolder>- Parameters:
child- the child to decorate.listener- a listener to log any commentary to.- Throws:
IOException- as a convenience to implementations as some of the expected changes may call methods that could throw this but shouldn't because of the API's requirement that aBulkChangecontains the child.
-