Class RelocationUI
java.lang.Object
com.cloudbees.hudson.plugins.folder.relocate.RelocationUI
- All Implemented Interfaces:
ExtensionPoint
,IconSpec
- Direct Known Subclasses:
DefaultRelocationUI
Extension point to provide a pluggable UI for moving
Item
instances.- Since:
- 4.9
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RelocationUI
Retrieves theRelocationUI
to use for the specified item.TheAction.getDisplayName()
to present for this UI.TheAction.getIconFileName()
to present for this UI.TheAction.getUrlName()
to present for this UI.abstract boolean
isApplicableTo
(Class<? extends Item> itemClass) Checks if thisRelocationUI
is applicable to the specified type of item.abstract boolean
isAvailable
(Item item) Checks if the relocation operation is currently available for the specific item (asJenkins.getAuthentication()
if the user is a factor).
-
Constructor Details
-
RelocationUI
public RelocationUI()
-
-
Method Details
-
getDisplayName
TheAction.getDisplayName()
to present for this UI.- Returns:
- the
Action.getDisplayName()
to present for this UI, nevernull
- See Also:
-
getUrlName
TheAction.getUrlName()
to present for this UI.- Returns:
- the
Action.getUrlName()
to present for this UI, nevernull
- See Also:
-
getIconFileName
TheAction.getIconFileName()
to present for this UI.- Returns:
- the
Action.getIconFileName()
to present for this UI, nevernull
- See Also:
-
getIconClassName
- Specified by:
getIconClassName
in interfaceIconSpec
-
isAvailable
Checks if the relocation operation is currently available for the specific item (asJenkins.getAuthentication()
if the user is a factor). You can assume that the current user hasRelocationAction.RELOCATE
permission.- Parameters:
item
- the item being checked.- Returns:
true
if the UI is available for the current user on the specified item.
-
isApplicableTo
Checks if thisRelocationUI
is applicable to the specified type of item.- Parameters:
itemClass
- the type of item.- Returns:
true
if this UI is applicable to the specified type of item.- See Also:
-
for_
Retrieves theRelocationUI
to use for the specified item.- Parameters:
item
- the item.- Returns:
- the
RelocationUI
to use ornull
-