public enum AttributePermissionVariant extends java.lang.Enum<AttributePermissionVariant> implements com.haulmont.chile.core.datatypes.impl.EnumClass<java.lang.Integer>
Enum Constant and Description |
---|
HIDE
Hide
|
MODIFY
Full access
|
NOTSET
Permission not selected
|
READ_ONLY
Read-only
|
Modifier and Type | Method and Description |
---|---|
static AttributePermissionVariant |
fromId(java.lang.Integer id) |
java.lang.String |
getColor() |
java.lang.Integer |
getId() |
static AttributePermissionVariant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttributePermissionVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributePermissionVariant MODIFY
public static final AttributePermissionVariant READ_ONLY
public static final AttributePermissionVariant HIDE
public static final AttributePermissionVariant NOTSET
public static AttributePermissionVariant[] values()
for (AttributePermissionVariant c : AttributePermissionVariant.values()) System.out.println(c);
public static AttributePermissionVariant valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Integer getId()
getId
in interface com.haulmont.chile.core.datatypes.impl.EnumClass<java.lang.Integer>
public java.lang.String getColor()
public static AttributePermissionVariant fromId(java.lang.Integer id)