Enum ProcessingStatus
- java.lang.Object
-
- java.lang.Enum<ProcessingStatus>
-
- com.jalios.jcms.fileprocessor.processingmanagement.ProcessingStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProcessingStatus>
public enum ProcessingStatus extends java.lang.Enum<ProcessingStatus>
Processing and Indexing status
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETED
ERROR
GLOBALLY_BLACKLISTED
IGNORED
PARTIALLY_BLACKLISTED
POSTPONED
SUCCESSFUL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProcessingStatus
get(int code)
Retrieve the ProcessingStatus corresponding to the specified ProcessingStatus's codeint
getCode()
Retrieve an internal and unique integer for this ProcessingStatus, suitable for serializationjava.lang.String
getText(java.lang.String lang)
Retrieve an I18Ned string describing this ProcessingStatusboolean
isBlacklisted()
Check if this status a blacklisting status (either globally or partially)static ProcessingStatus
mergeStatuses(java.util.EnumSet<ProcessingStatus> statuses)
Retrieve the worst status from the specified onesstatic ProcessingStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProcessingStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORED
public static final ProcessingStatus IGNORED
-
SUCCESSFUL
public static final ProcessingStatus SUCCESSFUL
-
DELETED
public static final ProcessingStatus DELETED
-
ERROR
public static final ProcessingStatus ERROR
-
PARTIALLY_BLACKLISTED
public static final ProcessingStatus PARTIALLY_BLACKLISTED
-
GLOBALLY_BLACKLISTED
public static final ProcessingStatus GLOBALLY_BLACKLISTED
-
POSTPONED
public static final ProcessingStatus POSTPONED
-
-
Method Detail
-
values
public static ProcessingStatus[] 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 (ProcessingStatus c : ProcessingStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessingStatus 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
-
get
public static ProcessingStatus get(int code)
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:
get(int)
-
getText
public final java.lang.String getText(java.lang.String lang)
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
public static ProcessingStatus mergeStatuses(java.util.EnumSet<ProcessingStatus> statuses)
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
-
-