PrecedingParamsPolicy (enum)
The policies for calculating the defaults of parameters if it has preceding parameters (isn’t the first parameter, in other words).
API
enum PrecedingParamsPolicy {
AS_CONFIGURED (1)
PRESERVE_CHANGES (2)
RESET (3)
NOT_SPECIFIED (4)
}
1 | AS_CONFIGURED
The policy to use should be as per the preceding defaults policy configured in |
2 | PRESERVE_CHANGES
If an end-user has changed this parameter’s value, then do not overwrite the value when an earlier parameter changes. |
3 | RESET
If a previous parameter is changed, then reset this parameter to its default, even if the end-user has changed the value of this parameter previously. |
4 | NOT_SPECIFIED
Ignore the value provided by this annotation (meaning that the framework will keep searching, in meta annotations or superclasses/interfaces). |
Members
AS_CONFIGURED
The policy to use should be as per the preceding defaults policy configured in application.properties
.
If no defaults policy is configured, then default to the PrecedingParamsPolicy#RESET RESET policy.
PRESERVE_CHANGES
If an end-user has changed this parameter’s value, then do not overwrite the value when an earlier parameter changes.
*WARNING* : If the parameter is constrained by dependent choices, then these will _not_ be re-evaluated. The validation for the action should make sure that the parameter argument is validated correctly.