Enum OrderExtensionPointEvent
- java.lang.Object
-
- java.lang.Enum<OrderExtensionPointEvent>
-
- org.cyclos.model.system.extensionpoints.OrderExtensionPointEvent
-
- All Implemented Interfaces:
Serializable,Comparable<OrderExtensionPointEvent>,ExtensionPointEvent,HasMessageKey
public enum OrderExtensionPointEvent extends Enum<OrderExtensionPointEvent> implements ExtensionPointEvent, HasMessageKey
Possible events to be handled by advertisement extension points
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANGE_STATUS
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_NEW_STATUSAttribute name for the script context: the new statusstatic StringATTR_OLD_STATUSAttribute name for the script context: the old statusstatic StringATTR_ORDERAttribute name for the script context: the orderstatic StringATTR_WAS_PENDING_BY_ADMINAttribute name for the script context: flag indicating if the order was pending by admin
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()ExtensionPointNaturenature()Returns the nature of this set of eventsstatic OrderExtensionPointEventvalueOf(String name)Returns the enum constant of this type with the specified name.static OrderExtensionPointEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.cyclos.model.system.extensionpoints.ExtensionPointEvent
name
-
-
-
-
Enum Constant Detail
-
CHANGE_STATUS
public static final OrderExtensionPointEvent CHANGE_STATUS
-
-
Field Detail
-
ATTR_ORDER
public static final String ATTR_ORDER
Attribute name for the script context: the order- See Also:
- Constant Field Values
-
ATTR_OLD_STATUS
public static final String ATTR_OLD_STATUS
Attribute name for the script context: the old status- See Also:
- Constant Field Values
-
ATTR_NEW_STATUS
public static final String ATTR_NEW_STATUS
Attribute name for the script context: the new status- See Also:
- Constant Field Values
-
ATTR_WAS_PENDING_BY_ADMIN
public static final String ATTR_WAS_PENDING_BY_ADMIN
Attribute name for the script context: flag indicating if the order was pending by admin- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OrderExtensionPointEvent[] 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 (OrderExtensionPointEvent c : OrderExtensionPointEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrderExtensionPointEvent 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
-
nature
public ExtensionPointNature nature()
Description copied from interface:ExtensionPointEventReturns the nature of this set of events- Specified by:
naturein interfaceExtensionPointEvent
-
-