ImpersonateMenu

Provides the UI to allow a current user to be impersonated.

All of the actions provided here are restricted to PROTOTYPE mode only; this feature is not intended for production use as it would imply a large security hole !

API

ImpersonateMenu.java
class ImpersonateMenu {
  // deliberately not part of isis.applib
public static final String LOGICAL_TYPE_NAME;
  void impersonate(final String userName)     (1)
  boolean hideImpersonate()
  String disableImpersonate()
  void impersonateWithRoles(final String userName, final List<String> roleNames, final String multiTenancyToken)     (2)
  boolean hideImpersonateWithRoles()
  String disableImpersonateWithRoles()
  List<String> choices0ImpersonateWithRoles()
  List<String> choices1ImpersonateWithRoles(final String userName)
  List<String> default1ImpersonateWithRoles(final String userName)
  String default2ImpersonateWithRoles(final String userName, final List<String> roleNames)
}
1 impersonate(String)

Simple implementation that is surfaced if there is no advisor.

2 impersonateWithRoles(String, List, String)

Impersonate a selected user, either using their current roles or with a specific set of roles.

Members

impersonate(String)

Simple implementation that is surfaced if there is no advisor.

impersonateWithRoles(String, List, String)

Impersonate a selected user, either using their current roles or with a specific set of roles.

This more sophisticated implementation is only available if there is an ImpersonateMenuAdvisor implementation to provide the choices.