Class DefaultRelocationUI

    • Constructor Detail

      • DefaultRelocationUI

        public DefaultRelocationUI()
    • Method Detail

      • isAvailable

        public boolean isAvailable​(Item item)
        Checks if the relocation operation is currently available for the specific item (as Jenkins.getAuthentication() if the user is a factor). You can assume that the current user has RelocationAction.RELOCATE permission.
        Specified by:
        isAvailable in class RelocationUI
        Parameters:
        item - the item being checked.
        Returns:
        true if the UI is available for the current user on the specified item.
      • listDestinations

        public Collection<ItemGroup<?>> listDestinations​(Item item)
        List of destinations that the item can be moved to by the current user.
        Parameters:
        item - the item.
        Returns:
        the list of destinations that the item can be moved to by the current user.
      • doMove

        public org.kohsuke.stapler.HttpResponse doMove​(org.kohsuke.stapler.StaplerRequest req,
                                                       @AncestorInPath
                                                       Item item,
                                                       @QueryParameter
                                                       String destination)
                                                throws IOException,
                                                       InterruptedException
        Does the move.
        Parameters:
        req - the request.
        item - the item
        destination - the destination.
        Returns:
        the response.
        Throws:
        IOException - if things go wrong.
        InterruptedException - if interrupted.