Package org.silverpeas.core.process
Enum ProcessType
- java.lang.Object
-
- java.lang.Enum<ProcessType>
-
- org.silverpeas.core.process.ProcessType
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessType>
public enum ProcessType extends Enum<ProcessType>
This enumeration represents different types of process. At each type of process is associated a type of check. By this mechanism, the API is able to know which types of checkings have to be done for a chaining process execution.- Author:
- Yohann Chastagnier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA
the process is oriented on data manipulations (database transactions for example)FILESYSTEM
the process is oriented on file system manipulations (photo creations for example)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ProcessCheckType>
getCheckTypesToProcess()
static ProcessType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATA
public static final ProcessType DATA
the process is oriented on data manipulations (database transactions for example)
-
FILESYSTEM
public static final ProcessType FILESYSTEM
the process is oriented on file system manipulations (photo creations for example)
-
-
Method Detail
-
values
public static ProcessType[] 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 (ProcessType c : ProcessType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessType 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
-
getCheckTypesToProcess
public List<ProcessCheckType> getCheckTypesToProcess()
-
-