Package com.logicaldoc.core
Enum RunLevel
- java.lang.Object
-
- java.lang.Enum<RunLevel>
-
- com.logicaldoc.core.RunLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<RunLevel>
public enum RunLevel extends Enum<RunLevel>
Represents an operative status of the whole application. Different aspects are enabled depending on the current runlevel.- Since:
- 7.6.4
- Author:
- Marco Meschieri - LogicalDOC
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
aspectEnabled(String aspect)
static RunLevel
current()
static RunLevel
fromString(String event)
static List<String>
getAspects()
boolean
isBulkload()
boolean
isDefault()
boolean
isDemo()
boolean
isDevel()
void
setAspect(String aspect, boolean enabled)
String
toString()
static RunLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static RunLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static RunLevel[] 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 (RunLevel c : RunLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RunLevel 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
-
current
public static RunLevel current()
-
aspectEnabled
public boolean aspectEnabled(String aspect)
-
setAspect
public void setAspect(String aspect, boolean enabled)
-
isDefault
public boolean isDefault()
-
isDemo
public boolean isDemo()
-
isBulkload
public boolean isBulkload()
-
isDevel
public boolean isDevel()
-
-