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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RelocationUIRetrieves theRelocationUIto 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 booleanisApplicableTo(Class<? extends Item> itemClass) Checks if thisRelocationUIis applicable to the specified type of item.abstract booleanisAvailable(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:
getIconClassNamein 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.RELOCATEpermission.- Parameters:
item- the item being checked.- Returns:
trueif the UI is available for the current user on the specified item.
-
isApplicableTo
Checks if thisRelocationUIis applicable to the specified type of item.- Parameters:
itemClass- the type of item.- Returns:
trueif this UI is applicable to the specified type of item.- See Also:
-
for_
Retrieves theRelocationUIto use for the specified item.- Parameters:
item- the item.- Returns:
- the
RelocationUIto use ornull
-