@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension(ordinal=-1000.0) public final class StandardHandler extends RelocationHandler
AbstractItem and TopLevelItem into a DirectlyModifiableTopLevelItemGroup.RelocationHandler.HandlingMode| Constructor and Description |
|---|
StandardHandler() |
| Modifier and Type | Method and Description |
|---|---|
RelocationHandler.HandlingMode |
applicability(hudson.model.Item item)
Checks quickly whether this handler might be able to move a given item.
|
org.kohsuke.stapler.HttpResponse |
handle(hudson.model.Item item,
hudson.model.ItemGroup<?> destination,
AtomicReference<hudson.model.Item> newItem,
List<? extends RelocationHandler> chain)
Possibly handles redirecting an item.
|
List<? extends hudson.model.ItemGroup<?>> |
validDestinations(hudson.model.Item item)
Gathers a list of possible destinations to which an item may be moved.
|
public RelocationHandler.HandlingMode applicability(hudson.model.Item item)
RelocationHandlerapplicability in class RelocationHandleritem - an item which the user wishes to movepublic org.kohsuke.stapler.HttpResponse handle(hudson.model.Item item,
hudson.model.ItemGroup<?> destination,
AtomicReference<hudson.model.Item> newItem,
List<? extends RelocationHandler> chain)
throws IOException,
InterruptedException
RelocationHandlerhandle in class RelocationHandleritem - an item which the user wishes to movedestination - the location the user wishes to move it tonewItem - if moving succeeds, set this to the new item (typically same object as item)chain - zero or more remaining handlers which could be delegated to (may call this method on the first and pass in the rest of the chain)Failure if the move is known to not be able to proceed, or a custom response such as a redirect, or a delegated response from the first handler in the chain, or null if no HTTP response is warranted or possibleIOException - if the move was attempted but failedInterruptedException - if the move was attempted but was interruptedpublic List<? extends hudson.model.ItemGroup<?>> validDestinations(hudson.model.Item item)
RelocationHandlervalidDestinations in class RelocationHandleritem - an item which the user wishes to moveCopyright © 2016. All rights reserved.