@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class RelocationAction extends Object implements Action, org.kohsuke.stapler.StaplerFallback, org.jenkins.ui.icon.IconSpec
Modifier and Type | Class and Description |
---|---|
static class |
RelocationAction.TransientActionFactoryImpl
Makes sure that
Item s have the action. |
Modifier and Type | Field and Description |
---|---|
static Permission |
RELOCATE
The permission required to move an item.
|
Constructor and Description |
---|
RelocationAction(Item item)
Creates an instance of this action.
|
RelocationAction(Item item,
RelocationUI ui) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName() |
String |
getIconClassName() |
String |
getIconFileName() |
Item |
getItem()
Gets the item that would be moved.
|
ItemGroup<?> |
getItemParent()
Avoids a CCE caused by return type ambiguity in script access.
|
Object |
getStaplerFallback() |
RelocationUI |
getUi()
Getter for the UI to display in this action.
|
String |
getUrlName() |
public static final Permission RELOCATE
public RelocationAction(@Nonnull Item item)
item
- the item that would be moved.public RelocationAction(@Nonnull Item item, @Nonnull RelocationUI ui)
public String getIconFileName()
getIconFileName
in interface Action
public String getIconClassName()
getIconClassName
in interface org.jenkins.ui.icon.IconSpec
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public String getUrlName()
getUrlName
in interface Action
public Item getItem()
@CheckForNull public RelocationUI getUi()
null
if not supported.public Object getStaplerFallback()
getStaplerFallback
in interface org.kohsuke.stapler.StaplerFallback
public ItemGroup<?> getItemParent()
Item.getParent()
of getItem()
Copyright © 2016–2020. All rights reserved.