@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()
ItemGroupModifier
getTargetClass
in interface ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>
public <II extends hudson.model.TopLevelItem> boolean canAdd(jenkins.model.DirectlyModifiableTopLevelItemGroup target, II item)
ItemGroupModifier
true
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
ItemGroupModifier
add
in interface ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>
II
- the type of the item.target
- the target.item
- the itemIOException
public void remove(jenkins.model.DirectlyModifiableTopLevelItemGroup target, hudson.model.TopLevelItem item) throws IOException
ItemGroupModifier
remove
in interface ItemGroupModifier<jenkins.model.DirectlyModifiableTopLevelItemGroup,hudson.model.TopLevelItem>
target
- the target.item
- the itemIOException
Copyright © 2016–2017. All rights reserved.