Enum Class ProcessingStatus
java.lang.Object
java.lang.Enum<ProcessingStatus>
com.jalios.jcms.fileprocessor.processingmanagement.ProcessingStatus
- All Implemented Interfaces:
Serializable,Comparable<ProcessingStatus>,Constable
Processing and Indexing status
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessingStatusget(int code) Retrieve the ProcessingStatus corresponding to the specified ProcessingStatus's codefinal intgetCode()Retrieve an internal and unique integer for this ProcessingStatus, suitable for serializationfinal StringRetrieve an I18Ned string describing this ProcessingStatusfinal booleanCheck if this status a blacklisting status (either globally or partially)static ProcessingStatusmergeStatuses(EnumSet<ProcessingStatus> statuses) Retrieve the worst status from the specified onesstatic ProcessingStatusReturns the enum constant of this class with the specified name.static ProcessingStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORED
-
SUCCESSFUL
-
DELETED
-
ERROR
-
PARTIALLY_BLACKLISTED
-
GLOBALLY_BLACKLISTED
-
POSTPONED
-
IN_PROGRESS
-
-
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
-
get
Retrieve the ProcessingStatus corresponding to the specified ProcessingStatus's code- Parameters:
code- the interger value as returned bygetCode()- Returns:
- the corresponding ProcessingStatus instance of ProcessingStatus.IGNORED if none could be found for the specified code.
-
getCode
public final int getCode()Retrieve an internal and unique integer for this ProcessingStatus, suitable for serialization- Returns:
- an unique integer describing this status
- See Also:
-
getText
Retrieve an I18Ned string describing this ProcessingStatus- Parameters:
lang- the ISO-639 language code in which to retrieve the ProcessingStatus description- Returns:
- a description of this ProcessingStatus
-
isBlacklisted
public final boolean isBlacklisted()Check if this status a blacklisting status (either globally or partially)- Returns:
- true if this is status is a blacklisting status, false otherwise
-
mergeStatuses
Retrieve the worst status from the specified ones- Parameters:
statuses- an set of ProcessingStatus- Returns:
- return the worst ProcessingStatus, or ProcessingStatus.IGNORED if the specified set was empty
-