@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class RelocationAction extends Object implements hudson.model.Action, org.kohsuke.stapler.StaplerFallback, org.jenkins.ui.icon.IconSpec
| Modifier and Type | Class and Description |
|---|---|
static class |
RelocationAction.TransientActionFactoryImpl
Makes sure that
Items have the action. |
| Modifier and Type | Field and Description |
|---|---|
static hudson.security.Permission |
RELOCATE
The permission required to move an item.
|
| Constructor and Description |
|---|
RelocationAction(hudson.model.Item item)
Creates an instance of this action.
|
RelocationAction(hudson.model.Item item,
RelocationUI ui) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName() |
String |
getIconClassName() |
String |
getIconFileName() |
hudson.model.Item |
getItem()
Gets the item that would be moved.
|
hudson.model.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 hudson.security.Permission RELOCATE
public RelocationAction(@Nonnull hudson.model.Item item)
item - the item that would be moved.public RelocationAction(@Nonnull hudson.model.Item item, @Nonnull RelocationUI ui)
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getIconClassName()
getIconClassName in interface org.jenkins.ui.icon.IconSpecpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic hudson.model.Item getItem()
@CheckForNull public RelocationUI getUi()
null if not supported.public Object getStaplerFallback()
getStaplerFallback in interface org.kohsuke.stapler.StaplerFallbackpublic hudson.model.ItemGroup<?> getItemParent()
Item.getParent() of getItem()Copyright © 2016–2017. All rights reserved.