UserProfileUiModelProvider (interface)

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

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

API

UserProfileUiModelProvider.java
interface UserProfileUiModelProvider {
  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.i.viewer.common.model.userprofile.UserProfileUiModelProviderDefault. 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).