Package fr.gouv.vitam.common.model
Enum Class LocalFileAction
- All Implemented Interfaces:
Serializable
,Comparable<LocalFileAction>
,Constable
Enum LocalFileAction
Different constants handling local file after ingest
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDELETE : the local file will be deletedMOVE : the local file will be moved to the directory successfulUploadDir/failedUploadDir entered in ingest-external.confNONE : the local file will not be moved or deleted (default option if no corresponding value found) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalFileAction
getLocalFileAction
(String value) Returns Enum from valuegetValue()
static LocalFileAction
Returns the enum constant of this class with the specified name.static LocalFileAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DELETE
DELETE : the local file will be deleted -
MOVE
MOVE : the local file will be moved to the directory successfulUploadDir/failedUploadDir entered in ingest-external.conf -
NONE
NONE : the local file will not be moved or deleted (default option if no corresponding value found)
-
-
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
-
getValue
- Returns:
- value of after upload action in String format
-
getLocalFileAction
Returns Enum from value- Parameters:
value
- of the after upload action in String format- Returns:
- LocalFileAction
-