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>
AAbstractFolderProperty
that is specific toOrganizationFolder
s.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description OrganizationFolderProperty()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.OrganizationFolderPropertyDescriptor
getDescriptor()
-
-
-
Method Detail
-
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 IOException
SPI 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
public OrganizationFolderPropertyDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<C extends OrganizationFolder>
- Overrides:
getDescriptor
in classcom.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C extends OrganizationFolder>
-
-