Enum AddOrUpdateResourceHelper.ResourceOperationMode
- java.lang.Object
-
- java.lang.Enum<AddOrUpdateResourceHelper.ResourceOperationMode>
-
- org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceHelper.ResourceOperationMode
-
- All Implemented Interfaces:
Serializable
,Comparable<AddOrUpdateResourceHelper.ResourceOperationMode>
- Enclosing class:
- AddOrUpdateResourceHelper
public static enum AddOrUpdateResourceHelper.ResourceOperationMode extends Enum<AddOrUpdateResourceHelper.ResourceOperationMode>
Possible add and update modes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
AddADD_RENAME
Add and allow renameADD_UNZIP
Add with an unzipUPDATE
Update
-
Constructor Summary
Constructors Modifier Constructor Description private
ResourceOperationMode(String mode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddOrUpdateResourceHelper.ResourceOperationMode
createsFromRawMode(String mode)
Converts an raw input mode to the corresponding ResourceOperationModeString
toString()
static AddOrUpdateResourceHelper.ResourceOperationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static AddOrUpdateResourceHelper.ResourceOperationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final AddOrUpdateResourceHelper.ResourceOperationMode ADD
Add
-
ADD_UNZIP
public static final AddOrUpdateResourceHelper.ResourceOperationMode ADD_UNZIP
Add with an unzip
-
ADD_RENAME
public static final AddOrUpdateResourceHelper.ResourceOperationMode ADD_RENAME
Add and allow rename
-
UPDATE
public static final AddOrUpdateResourceHelper.ResourceOperationMode UPDATE
Update
-
-
Constructor Detail
-
ResourceOperationMode
private ResourceOperationMode(String mode)
-
-
Method Detail
-
values
public static AddOrUpdateResourceHelper.ResourceOperationMode[] 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 (AddOrUpdateResourceHelper.ResourceOperationMode c : AddOrUpdateResourceHelper.ResourceOperationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddOrUpdateResourceHelper.ResourceOperationMode 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<AddOrUpdateResourceHelper.ResourceOperationMode>
-
createsFromRawMode
public static AddOrUpdateResourceHelper.ResourceOperationMode createsFromRawMode(String mode)
Converts an raw input mode to the corresponding ResourceOperationMode- Parameters:
mode
- The raw mode to convert- Returns:
- the corresponding ResourceOperationMode or null if unknown
-
-