Enum AuthorizationExtensionPointEvent
- java.lang.Object
-
- java.lang.Enum<AuthorizationExtensionPointEvent>
-
- org.cyclos.model.system.extensionpoints.AuthorizationExtensionPointEvent
-
- All Implemented Interfaces:
Serializable,Comparable<AuthorizationExtensionPointEvent>,ExtensionPointEvent,HasMessageKey
public enum AuthorizationExtensionPointEvent extends Enum<AuthorizationExtensionPointEvent> implements ExtensionPointEvent, HasMessageKey
Possible events to be handled by authorization extension points
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_COMMENTAttribute name for the script contextstatic StringATTR_CURRENT_LEVELAttribute name for the script contextstatic StringATTR_NEXT_LEVELAttribute name for the script contextstatic StringATTR_TRANSACTIONAttribute name for the script context
-
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 AuthorizationExtensionPointEventvalueOf(String name)Returns the enum constant of this type with the specified name.static AuthorizationExtensionPointEvent[]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
-
AUTHORIZE
public static final AuthorizationExtensionPointEvent AUTHORIZE
-
DENY
public static final AuthorizationExtensionPointEvent DENY
-
CANCEL
public static final AuthorizationExtensionPointEvent CANCEL
-
EXPIRE
public static final AuthorizationExtensionPointEvent EXPIRE
-
-
Field Detail
-
ATTR_TRANSACTION
public static final String ATTR_TRANSACTION
Attribute name for the script context- See Also:
- Constant Field Values
-
ATTR_CURRENT_LEVEL
public static final String ATTR_CURRENT_LEVEL
Attribute name for the script context- See Also:
- Constant Field Values
-
ATTR_NEXT_LEVEL
public static final String ATTR_NEXT_LEVEL
Attribute name for the script context- See Also:
- Constant Field Values
-
ATTR_COMMENT
public static final String ATTR_COMMENT
Attribute name for the script context- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static AuthorizationExtensionPointEvent[] 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 (AuthorizationExtensionPointEvent c : AuthorizationExtensionPointEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationExtensionPointEvent 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
-
-