Package org.silverpeas.core.selection
Enum SelectionContext.Reason
- java.lang.Object
-
- java.lang.Enum<SelectionContext.Reason>
-
- org.silverpeas.core.selection.SelectionContext.Reason
-
- All Implemented Interfaces:
Serializable
,Comparable<SelectionContext.Reason>
- Enclosing class:
- SelectionContext
public static enum SelectionContext.Reason extends Enum<SelectionContext.Reason>
Reason about the selection of a resource by a user.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SelectionContext.Reason
valueOf(String name)
Returns the enum constant of this type with the specified name.static SelectionContext.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSFER
public static final SelectionContext.Reason TRANSFER
Transfer information about the resource to perform some tasks. Default reason.
-
COPY
public static final SelectionContext.Reason COPY
Copy the resource in another location in Silverpeas.
-
MOVE
public static final SelectionContext.Reason MOVE
Move the resource in another location in Silverpeas.
-
-
Method Detail
-
values
public static SelectionContext.Reason[] 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 (SelectionContext.Reason c : SelectionContext.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SelectionContext.Reason 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
-
-