You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _versions/3.15/guides/qute-reference.adoc
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2955,10 +2955,9 @@ If there is a message bundle method that accepts a single parameter of an enum t
2955
2955
@Message <1>
2956
2956
String methodName(MyEnum enum);
2957
2957
----
2958
-
<1> The value is intentionally not provided. There's also no key for the method in a localized file.
2959
-
2960
-
Then it receives a generated template:
2958
+
<1> The value is intentionally not provided. There's also no key/value pair for this method in a localized file.
2961
2959
2960
+
Then it receives a generated template like:
2962
2961
[source,html]
2963
2962
----
2964
2963
{#when enumParamName}
@@ -2967,15 +2966,27 @@ Then it receives a generated template:
2967
2966
{/when}
2968
2967
----
2969
2968
2970
-
Furthermore, a special message method is generated for each enum constant. Finally, each localized file must contain keys and values for all constant message keys:
2969
+
Furthermore, a special message method is generated for each enum constant.
2970
+
Finally, each localized file must contain keys and values for all enum constants:
2971
2971
2972
2972
[source,poperties]
2973
2973
----
2974
2974
methodName_CONSTANT1=Value 1
2975
2975
methodName_CONSTANT2=Value 2
2976
2976
----
2977
2977
2978
-
In a template, an enum constant can be localized with a message bundle method like `{msg:methodName(enumConstant)}`.
2978
+
// We need to escape the first underscore
2979
+
// See https://docs.asciidoctor.org/asciidoc/latest/subs/prevent/
2980
+
[IMPORTANT]
2981
+
.Message keys for enum constants
2982
+
====
2983
+
By default, the message key consists of the method name followed by the `\_` separator and the constant name.
2984
+
If any constant name of a particular enum contains the `_` or the `$` character then the `\_$` separator must be used for all message keys for this enum instead.
2985
+
For example, `methodName_$CONSTANT_1=Value 1` or `methodName_$CONSTANT$1=Value 1`.
2986
+
A constant of a localized enum may not contain the `_$` separator.
2987
+
====
2988
+
2989
+
In a template, the localized message for an enum constant can be obtained with a message bundle method like `{msg:methodName(enumConstant)}`.
2979
2990
2980
2991
TIP: There is also <<convenient-annotation-for-enums,`@TemplateEnum`>> - a convenient annotation to access enum constants in a template.
The `elytron-security-ldap` extension requires a dir-context and an identity-mapping with at least one attribute-mapping to authenticate the user and its identity.
179
179
180
+
=== Map LDAP groups to `SecurityIdentity` roles
181
+
182
+
Previously described application configuration showed how to map `CN` attribute of the LDAP Distinguished Name group to a Quarkus `SecurityIdentity` role.
183
+
More specifically, the `standardRole` CN was mapped to a `SecurityIdentity` role and thus allowed access to the `UserResource#me` endpoint.
184
+
However, required `SecurityIdentity` roles may differ between applications and you may need to map LDAP groups to local `SecurityIdentity` roles like in the example below:
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.3.0/reference/programmatic-api.html[programmatic API] is present, including Mutiny support, and integrated with the declarative, annotation-based API.
608
+
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.4.2/reference/programmatic-api.html[programmatic API] is present, including Mutiny support, and integrated with the declarative, annotation-based API.
609
609
You can use the `FaultTolerance` and `MutinyFaultTolerance` APIs out of the box.
610
610
611
611
Support for Kotlin is present (assuming you use the Quarkus extension for Kotlin), so you can guard your `suspend` functions with fault tolerance annotations.
0 commit comments