Enum Class 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>
,java.lang.constant.Constable
- Enclosing class:
- AddOrUpdateResourceHelper
public static enum AddOrUpdateResourceHelper.ResourceOperationMode
extends Enum<AddOrUpdateResourceHelper.ResourceOperationMode>
Possible add and update modes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAddAdd and allow renameAdd with an unzipUpdate -
Method Summary
Modifier and TypeMethodDescriptioncreatesFromRawMode
(String mode) Converts an raw input mode to the corresponding ResourceOperationModetoString()
Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
Add -
ADD_UNZIP
Add with an unzip -
ADD_RENAME
Add and allow rename -
UPDATE
Update
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<AddOrUpdateResourceHelper.ResourceOperationMode>
-
createsFromRawMode
Converts an raw input mode to the corresponding ResourceOperationMode- Parameters:
mode
- The raw mode to convert- Returns:
- the corresponding ResourceOperationMode or null if unknown
-