Class OrphanedItemStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<OrphanedItemStrategy>
-
- com.cloudbees.hudson.plugins.folder.computed.OrphanedItemStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<OrphanedItemStrategy>
- Direct Known Subclasses:
DefaultOrphanedItemStrategy
public abstract class OrphanedItemStrategy extends AbstractDescribableImpl<OrphanedItemStrategy> implements ExtensionPoint
A strategy for removing children after they are no longer indexed by an owningComputedFolder
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description OrphanedItemStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description OrphanedItemStrategyDescriptor
getDescriptor()
abstract <I extends TopLevelItem>
Collection<I>orphanedItems(ComputedFolder<I> owner, Collection<I> orphaned, TaskListener listener)
parameters and return value as inComputedFolder.orphanedItems(java.util.Collection<I>, hudson.model.TaskListener)
-
-
-
Method Detail
-
orphanedItems
public abstract <I extends TopLevelItem> Collection<I> orphanedItems(ComputedFolder<I> owner, Collection<I> orphaned, TaskListener listener) throws IOException, InterruptedException
parameters and return value as inComputedFolder.orphanedItems(java.util.Collection<I>, hudson.model.TaskListener)
- Type Parameters:
I
- the type of item.- Parameters:
owner
- the owning folder.orphaned
- a nonempty set of items which no longer are supposed to be herelistener
- the listener to report decisions to.- Returns:
- any subset of
orphaned
, representing those children which ought to be removed from the folder now; items not listed will be left alone for the time - Throws:
IOException
- if there was an I/O issue processing the items.InterruptedException
- if interrupted while processing the items.
-
getDescriptor
public OrphanedItemStrategyDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<OrphanedItemStrategy>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<OrphanedItemStrategy>
-
-