Package fr.gouv.vitam.common.model
Enum LocalFileAction
- java.lang.Object
-
- java.lang.Enum<LocalFileAction>
-
- fr.gouv.vitam.common.model.LocalFileAction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LocalFileAction>
public enum LocalFileAction extends java.lang.Enum<LocalFileAction>
Enum LocalFileAction Different constants handling local file after ingest
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE
DELETE : the local file will be deletedMOVE
MOVE : the local file will be moved to the directory successfulUploadDir/failedUploadDir entered in ingest-external.confNONE
NONE : the local file will not be moved or deleted (default option if no corresponding value found)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalFileAction
getLocalFileAction(java.lang.String value)
Returns Enum from valuejava.lang.String
getValue()
static LocalFileAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LocalFileAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELETE
public static final LocalFileAction DELETE
DELETE : the local file will be deleted
-
MOVE
public static final LocalFileAction MOVE
MOVE : the local file will be moved to the directory successfulUploadDir/failedUploadDir entered in ingest-external.conf
-
NONE
public static final LocalFileAction NONE
NONE : the local file will not be moved or deleted (default option if no corresponding value found)
-
-
Method Detail
-
values
public static LocalFileAction[] 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 (LocalFileAction c : LocalFileAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocalFileAction valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
- Returns:
- value of after upload action in String format
-
getLocalFileAction
public static LocalFileAction getLocalFileAction(java.lang.String value)
Returns Enum from value- Parameters:
value
- of the after upload action in String format- Returns:
- LocalFileAction
-
-