UserProfileUiService

Returns a UI model to represent the currently logged in user.

This is backed by the org.apache.causeway.applib.services.user.UserMemento obtained from UserService#currentUser() API, but could be presented in various ways.

API

UserProfileUiService.java
interface UserProfileUiService {
  UserProfileUiModel userProfile()     (1)
}
1 userProfile()

A UI model to represent the currently logged in user.

Members

userProfile()

A UI model to represent the currently logged in user.

Implementation

The framework provides a default implementation of this service, o.a.c.viewer.common.model.userprofile.UserProfileUiServiceDefault. This returns the user profile name based upon whether the real name is available, and whether the user is currently being impersonated.

Usage within the framework

This service provides the ability for the domain application to return supplementary metadata about the current user.

The Web UI (Wicket viewer) provides an implementation to customize the appearance of the tertiary "Me" menu bar (top right).