Module ch.ralscha.extdirectspring
Enum Class ExtDirectMethodType
- All Implemented Interfaces:
Serializable,Comparable<ExtDirectMethodType>,Constable
Enumeration of all possible remote method types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies a method that handles a form load.Specifies a method that handles a form post (with or without upload).Specifies a method that handles a form post with a Json payloadSpecifies a method that handles polling.Specifies a simple remote method.Specifies a simple remote method with named parameters.Specifies a method that handles create, update or destroy calls from DirectStore.Specifies a method that handles read calls from DirectStore.Specifies a method that handles read calls from TreeLoader or TreeStore -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanChecks if the annotated method contains non supported annotation properties and contains non supported parameters and/or parameter annotations.static ExtDirectMethodTypeReturns the enum constant of this class with the specified name.static ExtDirectMethodType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
Specifies a simple remote method. This type of method can have any parameter and any return type but must not contain a parameter with @RequestParam annotated. -
SIMPLE_NAMED
Specifies a simple remote method with named parameters. This type of method can have any parameter and any return type. -
FORM_LOAD
Specifies a method that handles a form load. -
STORE_READ
Specifies a method that handles read calls from DirectStore. -
STORE_MODIFY
Specifies a method that handles create, update or destroy calls from DirectStore. -
FORM_POST
Specifies a method that handles a form post (with or without upload). A FORM_POST method must not return anything. This type of method must be annotated with @RequestMapping. @RequestMapping must contain a value and a method of type RequestMethod.POST. This kind of method must be member of a bean annotated with @Controller. -
TREE_LOAD
Specifies a method that handles read calls from TreeLoader or TreeStore -
POLL
Specifies a method that handles polling. -
FORM_POST_JSON
Specifies a method that handles a form post with a Json payload
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isValid
Checks if the annotated method contains non supported annotation properties and contains non supported parameters and/or parameter annotations. Method logs warnings and errors. Check is running during startup of the application. If return value is false the method is not registered and cannot be called from the client.- Parameters:
beanAndMethodName- Name of the bean and method for logging purpose. e.g. 'bean.methodname'clazz- The class where the method is member ofmethod- The annotated method- Returns:
- true if the method does not contains any errors.
-