Package su.onno.ui
Class CurrentUserResolver
java.lang.Object
su.onno.ui.CurrentUserResolver
Resolves the authenticated principal to a domain catalog record via the
configured
UiIdentityLink (e.g. login -> Employee.email), so persona
UIs can greet and scope to "the current person". Falls back to the raw
username when no link is configured or no record matches.
When the identity catalog carries an avatar/image-hinted attribute
(.widget("avatar")/"image", the same rule the
comments panel uses), the resolver also reads that column so the shell can
paint the signed-in user's photo. Best-effort: no link, no avatar-hinted
column, or no stored value leaves avatarUrl null and the shell falls
back to the name-only identity block.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCurrentUserResolver(UiLayout layout, MetadataRegistry registry, FieldHintResolver fieldHints, org.jdbi.v3.core.Jdbi jdbi) -
Method Summary
-
Constructor Details
-
CurrentUserResolver
public CurrentUserResolver(UiLayout layout, MetadataRegistry registry, FieldHintResolver fieldHints, org.jdbi.v3.core.Jdbi jdbi)
-
-
Method Details
-
resolve
-