Interface ItemGroupModifier<G extends ItemGroup<I>,I extends TopLevelItem>
-
- Type Parameters:
G- the type of item group.I- the type of item,
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
ItemGroupModifier.StandardModifier
@Deprecated public interface ItemGroupModifier<G extends ItemGroup<I>,I extends TopLevelItem> extends ExtensionPoint
Deprecated.UseDirectlyModifiableTopLevelItemGroupinstead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classItemGroupModifier.FactoryDeprecated.A factory for creatingItemGroupModifierinstances.static classItemGroupModifier.StandardModifierDeprecated.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <II extends I>
IIadd(G target, II item)Deprecated.Adds an item to the target.<II extends I>
booleancanAdd(G target, II item)Deprecated.Returnstrueif the target can take the item.Class<G>getTargetClass()Deprecated.The type of group that this modifier works on.voidremove(G target, I item)Deprecated.Removes an item from the target.
-
-
-
Method Detail
-
getTargetClass
Class<G> getTargetClass()
Deprecated.The type of group that this modifier works on.- Returns:
- the type of group that this modifier works on.
-
canAdd
<II extends I> boolean canAdd(G target, II item)
Deprecated.Returnstrueif the target can take the item.- Type Parameters:
II- the type of the item.- Parameters:
target- the target.item- the item.- Returns:
trueif the target can take the item.
-
add
<II extends I> II add(G target, II item) throws IOException
Deprecated.Adds an item to the target.- Type Parameters:
II- the type of the item.- Parameters:
target- the target.item- the item- Returns:
- the item instance within the target, may be the same instance as the passed in parameter or may be a new instance, depending on the target container.
- Throws:
IOException- if the addition could not be completed.
-
remove
void remove(G target, I item) throws IOException
Deprecated.Removes an item from the target.- Parameters:
target- the target.item- the item- Throws:
IOException- if the removal could not be completed.
-
-