Enum ContentRepositoryModel.Status
- java.lang.Object
-
- java.lang.Enum<ContentRepositoryModel.Status>
-
- com.gentics.contentnode.rest.model.ContentRepositoryModel.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentRepositoryModel.Status>
- Enclosing class:
- ContentRepositoryModel
public static enum ContentRepositoryModel.Status extends Enum<ContentRepositoryModel.Status>
Possible Check Status values
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
Get the status codestatic ContentRepositoryModel.Status
from(int code)
Transform status code into Statusstatic ContentRepositoryModel.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentRepositoryModel.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
unchecked
public static final ContentRepositoryModel.Status unchecked
Check was never done
-
error
public static final ContentRepositoryModel.Status error
Check produced an error
-
ok
public static final ContentRepositoryModel.Status ok
Check was ok
-
running
public static final ContentRepositoryModel.Status running
Check is currently running (in background)
-
queued
public static final ContentRepositoryModel.Status queued
Check is queued to run in background
-
-
Method Detail
-
values
public static ContentRepositoryModel.Status[] 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 (ContentRepositoryModel.Status c : ContentRepositoryModel.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentRepositoryModel.Status 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
-
code
public int code()
Get the status code- Returns:
- code
-
from
public static ContentRepositoryModel.Status from(int code)
Transform status code into Status- Parameters:
code
- code- Returns:
- Status instance
-
-