Class RelocationAction
java.lang.Object
com.cloudbees.hudson.plugins.folder.relocate.RelocationAction
- All Implemented Interfaces:
Action,ModelObject,IconSpec,org.kohsuke.stapler.StaplerFallback
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class RelocationAction
extends Object
implements Action, org.kohsuke.stapler.StaplerFallback, IconSpec
Does the actual work of relocating an item.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PermissionThe permission required to move an item. -
Constructor Summary
ConstructorsConstructorDescriptionRelocationAction(Item item) Creates an instance of this action.RelocationAction(Item item, RelocationUI ui) -
Method Summary
-
Field Details
-
RELOCATE
The permission required to move an item.
-
-
Constructor Details
-
RelocationAction
Creates an instance of this action.- Parameters:
item- the item that would be moved.
-
RelocationAction
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getIconClassName
- Specified by:
getIconClassNamein interfaceIconSpec
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getItem
Gets the item that would be moved.- Returns:
- the item that would be moved.
-
getUi
Getter for the UI to display in this action.- Returns:
- the UI to display in this action or
nullif not supported. - Since:
- 4.9
-
getStaplerFallback
- Specified by:
getStaplerFallbackin interfaceorg.kohsuke.stapler.StaplerFallback
-
getItemParent
Avoids a CCE caused by return type ambiguity in script access.- Returns:
Item.getParent()ofgetItem()
-