Package jenkins.branch
Class OrganizationFolderProperty<C extends OrganizationFolder>
java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C>
jenkins.branch.OrganizationFolderProperty<C>
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
- Direct Known Subclasses:
OrganizationChildHealthMetricsProperty
,OrganizationChildOrphanedItemsProperty
,OrganizationChildTriggersProperty
public abstract class OrganizationFolderProperty<C extends OrganizationFolder>
extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C>
A
AbstractFolderProperty
that is specific to OrganizationFolder
s.-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
applyDecoration
(MultiBranchProject<?, ?> child, TaskListener listener) Performs an idempotent application of this property's decoration to the supplied child.protected abstract void
decorate
(MultiBranchProject<?, ?> child, TaskListener listener) SPI for performing an idempotent application of this property's decoration to the supplied child.Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, reconfigure, setOwner
-
Constructor Details
-
OrganizationFolderProperty
public OrganizationFolderProperty()
-
-
Method Details
-
applyDecoration
public final void applyDecoration(@NonNull MultiBranchProject<?, ?> child, @NonNull TaskListener listener) Performs an idempotent application of this property's decoration to the supplied child. If the child is already correctly decorated then the child will be unchanged. Must be called in the context of aBulkChange
that covers the supplied child.- Parameters:
child
- the child to decorate.listener
- a listener to log any commentary to.
-
decorate
protected abstract 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.- 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 aBulkChange
contains the child.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<C extends OrganizationFolder>
- Overrides:
getDescriptor
in classcom.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C extends OrganizationFolder>
-