Module org.elasticsearch.security
Enum Class SecuritySystemIndices.SecurityMainIndexMappingVersion
java.lang.Object
java.lang.Enum<SecuritySystemIndices.SecurityMainIndexMappingVersion>
org.elasticsearch.xpack.security.support.SecuritySystemIndices.SecurityMainIndexMappingVersion
- All Implemented Interfaces:
Serializable,Comparable<SecuritySystemIndices.SecurityMainIndexMappingVersion>,Constable,VersionId<SecuritySystemIndices.SecurityMainIndexMappingVersion>
- Enclosing class:
SecuritySystemIndices
public static enum SecuritySystemIndices.SecurityMainIndexMappingVersion
extends Enum<SecuritySystemIndices.SecurityMainIndexMappingVersion>
implements VersionId<SecuritySystemIndices.SecurityMainIndexMappingVersion>
Every change to the mapping of .security index must be versioned. When adding a new mapping version:
- pick the next largest version ID - this will automatically become the new
latest()version - add your mapping change in
SecuritySystemIndices.getMainIndexMappings(SecurityMainIndexMappingVersion)conditionally to a new version - make sure to set old latest version to "prior system index descriptors" in
SecuritySystemIndices.getSecurityMainIndexDescriptor()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMapping for global manage role privilegeThe mapping was changed to add new text description and remote_cluster fields.Initial .security index mapping version. -
Method Summary
-
Enum Constant Details
-
INITIAL
Initial .security index mapping version. -
ADD_REMOTE_CLUSTER_AND_DESCRIPTION_FIELDS
public static final SecuritySystemIndices.SecurityMainIndexMappingVersion ADD_REMOTE_CLUSTER_AND_DESCRIPTION_FIELDSThe mapping was changed to add new text description and remote_cluster fields. -
ADD_MANAGE_ROLES_PRIVILEGE
public static final SecuritySystemIndices.SecurityMainIndexMappingVersion ADD_MANAGE_ROLES_PRIVILEGEMapping for global manage role privilege
-
-
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
-
id
public int id()- Specified by:
idin interfaceVersionId<SecuritySystemIndices.SecurityMainIndexMappingVersion>
-
latest
-