Interface RoleChooserHelper

  • All Known Implementing Classes:
    DefaultRoleChooserHelper

    public interface RoleChooserHelper
    The interface describes operations needed to determine if the Role Chooser should be displayed for current user. The functionality is needed in the widget itself but also in places that must adjust their behaviour in case Role Chooser is displayed (for example deep links should be triggered only after the role is chosen).
    • Method Detail

      • isRoleSelectorContainerContainerVisible

        boolean isRoleSelectorContainerContainerVisible()
        Returns:
        true in case the widget set on 'MAIN_SLOT' has the SETTING_ENABLE_ALTERNATIVE_CONTAINER set to true or the setting is set to AUTO and the user has multiple has multiple roles and the widget has a role selector assigned
      • isRoleSelectorContainerContainerVisible

        boolean isRoleSelectorContainerContainerVisible​(WidgetInstance widgetInstance)
        Parameters:
        widgetInstance - root widget for which the checks should be done
        Returns:
        true in case the SETTING_ENABLE_ALTERNATIVE_CONTAINER is set to true or the setting is set to AUTO and the user has multiple has multiple roles and the widget has a role selector assigned
      • isMultiRoleUser

        boolean isMultiRoleUser​(java.lang.String user)
        Parameters:
        user - the user for which the check should be done
        Returns:
        true if the user has more than one authority group assigned