Package org.cyclos.model.users.products
Enum ProductLevel
- java.lang.Object
-
- java.lang.Enum<ProductLevel>
-
- org.cyclos.model.users.products.ProductLevel
-
- All Implemented Interfaces:
Serializable,Comparable<ProductLevel>,HasMessageKey
public enum ProductLevel extends Enum<ProductLevel> implements HasMessageKey
Enumerates possible levels for assigned products
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GROUPGROUP_SETINDIVIDUAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static EnumMessageKeyResolver<ProductLevel>resolverForAssignConfirm()Returns anEnumMessageKeyResolverfor translations on the confirmation of product assignstatic EnumMessageKeyResolver<ProductLevel>resolverForAssignedMessage()Returns anEnumMessageKeyResolverfor translations on the message displayed after assigningstatic EnumMessageKeyResolver<ProductLevel>resolverForUnassignMessage()Returns anEnumMessageKeyResolverfor translations on the message displayed after unassigningstatic ProductLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static ProductLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDIVIDUAL
public static final ProductLevel INDIVIDUAL
-
GROUP
public static final ProductLevel GROUP
-
GROUP_SET
public static final ProductLevel GROUP_SET
-
-
Method Detail
-
values
public static ProductLevel[] 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 (ProductLevel c : ProductLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProductLevel 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
-
resolverForAssignConfirm
public static EnumMessageKeyResolver<ProductLevel> resolverForAssignConfirm()
Returns anEnumMessageKeyResolverfor translations on the confirmation of product assign
-
resolverForAssignedMessage
public static EnumMessageKeyResolver<ProductLevel> resolverForAssignedMessage()
Returns anEnumMessageKeyResolverfor translations on the message displayed after assigning
-
resolverForUnassignMessage
public static EnumMessageKeyResolver<ProductLevel> resolverForUnassignMessage()
Returns anEnumMessageKeyResolverfor translations on the message displayed after unassigning
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-