Enum RelocationHandler.HandlingMode
- java.lang.Object
-
- java.lang.Enum<RelocationHandler.HandlingMode>
-
- com.cloudbees.hudson.plugins.folder.relocate.RelocationHandler.HandlingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RelocationHandler.HandlingMode>
- Enclosing class:
- RelocationHandler
public static enum RelocationHandler.HandlingMode extends Enum<RelocationHandler.HandlingMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RelocationHandler.HandlingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RelocationHandler.HandlingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HANDLE
public static final RelocationHandler.HandlingMode HANDLE
Can in general handle the actual move.RelocationHandler.handle(hudson.model.Item, hudson.model.ItemGroup<?>, java.util.concurrent.atomic.AtomicReference<hudson.model.Item>, java.util.List<? extends com.cloudbees.hudson.plugins.folder.relocate.RelocationHandler>)
andRelocationHandler.validDestinations(hudson.model.Item)
may both be called.
-
DELEGATE
public static final RelocationHandler.HandlingMode DELEGATE
May only delegate to another handler.RelocationHandler.handle(hudson.model.Item, hudson.model.ItemGroup<?>, java.util.concurrent.atomic.AtomicReference<hudson.model.Item>, java.util.List<? extends com.cloudbees.hudson.plugins.folder.relocate.RelocationHandler>)
may be called, but notRelocationHandler.validDestinations(hudson.model.Item)
.
-
SKIP
public static final RelocationHandler.HandlingMode SKIP
Skips this item entirely. NeitherRelocationHandler.handle(hudson.model.Item, hudson.model.ItemGroup<?>, java.util.concurrent.atomic.AtomicReference<hudson.model.Item>, java.util.List<? extends com.cloudbees.hudson.plugins.folder.relocate.RelocationHandler>)
norRelocationHandler.validDestinations(hudson.model.Item)
should be called.
-
-
Method Detail
-
values
public static RelocationHandler.HandlingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RelocationHandler.HandlingMode c : RelocationHandler.HandlingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RelocationHandler.HandlingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-