Package org.alfresco.service.cmr.module
Enum ModuleInstallState
- java.lang.Object
-
- java.lang.Enum<ModuleInstallState>
-
- org.alfresco.service.cmr.module.ModuleInstallState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ModuleInstallState>
@AlfrescoPublicApi public enum ModuleInstallState extends java.lang.Enum<ModuleInstallState>
Enum used to indicate the install state of a module.- Author:
- Roy Wetherall
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEDThe module is disabledINSTALLEDThe module is installedUNINSTALLEDThe module has been uninstalledUNKNOWNThe state of the module is unknown
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModuleInstallStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ModuleInstallState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ModuleInstallState UNKNOWN
The state of the module is unknown
-
INSTALLED
public static final ModuleInstallState INSTALLED
The module is installed
-
DISABLED
public static final ModuleInstallState DISABLED
The module is disabled
-
UNINSTALLED
public static final ModuleInstallState UNINSTALLED
The module has been uninstalled
-
-
Method Detail
-
values
public static ModuleInstallState[] 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 (ModuleInstallState c : ModuleInstallState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModuleInstallState 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
-
-