Package su.onno.ui

Class CurrentUserResolver

java.lang.Object
su.onno.ui.CurrentUserResolver

public class CurrentUserResolver extends Object
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.