Enum IpAddressLogStatus
- java.lang.Object
-
- java.lang.Enum<IpAddressLogStatus>
-
- org.cyclos.model.system.ipaddresses.IpAddressLogStatus
-
- All Implemented Interfaces:
Serializable,Comparable<IpAddressLogStatus>,HasMessageKey
public enum IpAddressLogStatus extends Enum<IpAddressLogStatus> implements HasMessageKey
Possible statuses of an IP address log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static IpAddressLogStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static IpAddressLogStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOWED
public static final IpAddressLogStatus ALLOWED
The address was set to always allowed
-
BLOCKED
public static final IpAddressLogStatus BLOCKED
The address was temporarily blocked
-
DENIED
public static final IpAddressLogStatus DENIED
The address was set to always denied
-
RESTORED
public static final IpAddressLogStatus RESTORED
The address was restored to normal operation
-
-
Method Detail
-
values
public static IpAddressLogStatus[] 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 (IpAddressLogStatus c : IpAddressLogStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IpAddressLogStatus 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-