@Extension public static final class ItemGroupModifier.StandardModifier extends Object implements ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>
ItemGroupModifier.Factory, ItemGroupModifier.StandardModifier| Constructor and Description |
|---|
StandardModifier() |
| Modifier and Type | Method and Description |
|---|---|
<II extends hudson.model.TopLevelItem> |
add(jenkins.model.DirectlyModifiableTopLevelItemGroup target,
II item)
Adds an item to the target.
|
<II extends hudson.model.TopLevelItem> |
canAdd(jenkins.model.DirectlyModifiableTopLevelItemGroup target,
II item)
Returns
true if the target can take the item. |
Class<jenkins.model.DirectlyModifiableTopLevelItemGroup> |
getTargetClass()
The type of group that this modifier works on.
|
void |
remove(jenkins.model.DirectlyModifiableTopLevelItemGroup target,
hudson.model.TopLevelItem item)
Removes an item from the target.
|
public Class<jenkins.model.DirectlyModifiableTopLevelItemGroup> getTargetClass()
ItemGroupModifiergetTargetClass in interface ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>public <II extends hudson.model.TopLevelItem> boolean canAdd(jenkins.model.DirectlyModifiableTopLevelItemGroup target,
II item)
ItemGroupModifiertrue if the target can take the item.canAdd in interface ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>II - the type of the item.target - the target.item - the item.true if the target can take the item.public <II extends hudson.model.TopLevelItem> II add(jenkins.model.DirectlyModifiableTopLevelItemGroup target,
II item)
throws IOException
ItemGroupModifieradd in interface ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>II - the type of the item.target - the target.item - the itemIOExceptionpublic void remove(jenkins.model.DirectlyModifiableTopLevelItemGroup target,
hudson.model.TopLevelItem item)
throws IOException
ItemGroupModifierremove in interface ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>target - the target.item - the itemIOExceptionCopyright © 2016. All rights reserved.