[keycloak-dev] Making ServerInfoAdminResource::ENUMS mutable

Dmitry Telegin mitya at cargosoft.ru
Fri Oct 14 01:09:58 EDT 2016


Hi,

After KEYCLOAK-3618 is (hopefully) resolved, providers will have an
ability to log admin events with custom ResourceType. However, custom
values won't show in the Events - Admin Events - Filter - Resource
Types dropdown (fortunately, the values can still be typed in
directly).
The values in the dropdown reflect
org.keycloak.services.resources.admin.info.ServerInfoAdminResource::ENU
MS content. How about making it mutable, so that providers could
register provider-specific values? These could be some two methods: one
taking (String, String[]) to add values to existing enum maps, another
one taking (Class... enums) to register completely different enums for
provider's private needs.

What do you think?
Dmitry


More information about the keycloak-dev mailing list